Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005963/0.005963, allocations: 101.6 kB / 15.73 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001203/0.001203, allocations: 190.1 kB / 16.67 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.408/1.408, allocations: 205.1 MB / 222.6 MB, free: 4.5 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001153/0.001153, allocations: 54.55 kB / 326.6 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09264/0.0938, allocations: 46.63 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.01365/0.1075, allocations: 12.82 MB / 386 MB, free: 4.43 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007906/0.1154, allocations: 4.287 MB / 390.3 MB, free: 132 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002093/0.1176, allocations: 63.75 kB / 390.4 MB, free: 68 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002797/0.1204, allocations: 0.9785 MB / 391.3 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004722/0.1252, allocations: 1.278 MB / 392.6 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002336/0.1275, allocations: 0.8573 MB / 393.5 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005244/0.1328, allocations: 4.055 MB / 397.5 MB, free: 8.867 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004786/0.1376, allocations: 3.169 MB / 400.7 MB, free: 5.625 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00299/0.1406, allocations: 1.881 MB / 402.6 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003562/0.1442, allocations: 2.113 MB / 404.7 MB, free: 1.617 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009219/0.1451, allocations: 0.5117 MB / 405.2 MB, free: 1.105 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001679/0.1468, allocations: 0.7107 MB / 405.9 MB, free: 404 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009389/0.1477, allocations: 1.138 MB / 407 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002383/0.1501, allocations: 2.124 MB / 409.2 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006925/0.1571, allocations: 6.755 MB / 415.9 MB, free: 6.344 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.343e-06/0.1571, allocations: 0 / 415.9 MB, free: 6.344 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.1571, allocations: 3.938 kB / 415.9 MB, free: 6.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000177/0.1573, allocations: 4 kB / 415.9 MB, free: 6.336 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.01203/0.1693, allocations: 4.491 MB / 420.4 MB, free: 1.766 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.464e-05/0.1694, allocations: 8.031 kB / 420.4 MB, free: 1.758 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004259/0.1737, allocations: 0.8262 MB / 421.3 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004333/0.178, allocations: 2.348 MB / 423.6 MB, free: 14.53 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001746/0.1782, allocations: 234.6 kB / 423.8 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000606/0.1788, allocations: 320.1 kB / 424.1 MB, free: 13.98 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007127/0.186, allocations: 4.254 MB / 428.4 MB, free: 9.68 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.604e-05/0.1861, allocations: 0 / 428.4 MB, free: 9.68 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002862/0.1864, allocations: 124 kB / 428.5 MB, free: 9.559 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001455/0.1865, allocations: 146.2 kB / 428.7 MB, free: 9.414 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007042/0.1936, allocations: 3.655 MB / 432.3 MB, free: 5.75 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02057/0.2142, allocations: 13.37 MB / 445.7 MB, free: 8.035 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006223/0.2204, allocations: 6.87 MB / 452.6 MB, free: 272 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2018/0.4222, allocations: 1.402 MB / 454 MB, free: 67.88 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006644/0.4289, allocations: 3.63 MB / 457.6 MB, free: 66.67 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.222e-05/0.429, allocations: 55.77 kB / 457.6 MB, free: 66.62 MB / 382.1 MB Notification: Performance of pre-optimization done (n=124): time 3.005e-06/0.429, allocations: 0 / 457.6 MB, free: 66.62 MB / 382.1 MB Notification: Performance of matching and sorting (n=144): time 0.01334/0.4423, allocations: 6.682 MB / 464.3 MB, free: 63.54 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.079e-05/0.4424, allocations: 66.44 kB / 464.4 MB, free: 63.47 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002928/0.4454, allocations: 1.86 MB / 466.2 MB, free: 62.77 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.95e-05/0.4455, allocations: 50.48 kB / 466.3 MB, free: 62.71 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007444/0.4462, allocations: 1.452 MB / 467.7 MB, free: 61.8 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003009/0.4465, allocations: 0.515 MB / 468.3 MB, free: 61.44 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004185/0.4469, allocations: 303 kB / 468.6 MB, free: 61.29 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.073e-05/0.447, allocations: 306.3 kB / 468.9 MB, free: 60.99 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001176/0.4482, allocations: 0.7598 MB / 469.6 MB, free: 60.7 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001394/0.4496, allocations: 1.221 MB / 470.8 MB, free: 59.84 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002327/0.4519, allocations: 2.112 MB / 473 MB, free: 58.5 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.903e-06/0.4519, allocations: 7.969 kB / 473 MB, free: 58.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.003552/0.4555, allocations: 2.666 MB / 475.6 MB, free: 57.36 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.041e-05/0.4555, allocations: 16.91 kB / 475.6 MB, free: 57.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.621e-05/0.4556, allocations: 19.69 kB / 475.7 MB, free: 57.35 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001204/0.4568, allocations: 495.6 kB / 476.1 MB, free: 57.21 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001291/0.4581, allocations: 389.8 kB / 476.5 MB, free: 57.17 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006707/0.4648, allocations: 6.942 MB / 483.5 MB, free: 51.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001544/0.4664, allocations: 74.55 kB / 483.5 MB, free: 51.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001073/0.4665, allocations: 74.02 kB / 483.6 MB, free: 51.68 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (180): * Single equations (assignments): 178 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (7,31,61.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001695/0.4682, allocations: 1.05 MB / 484.7 MB, free: 50.96 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004116/0.4686, allocations: 211.6 kB / 484.9 MB, free: 50.85 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003456/0.4721, allocations: 2.491 MB / 487.4 MB, free: 48.42 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.328e-06/0.4721, allocations: 16 kB / 487.4 MB, free: 48.41 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.799e-06/0.4721, allocations: 15.88 kB / 487.4 MB, free: 48.39 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.19e-05/0.4721, allocations: 11.97 kB / 487.4 MB, free: 48.38 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006734/0.4789, allocations: 5.516 MB / 492.9 MB, free: 42.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/0.4789, allocations: 4 kB / 492.9 MB, free: 42.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008702/0.4798, allocations: 211.1 kB / 493.1 MB, free: 42.54 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001085/0.4809, allocations: 0.5058 MB / 493.6 MB, free: 42.02 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.411e-05/0.481, allocations: 35.98 kB / 493.7 MB, free: 41.99 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007476/0.4884, allocations: 11.42 MB / 0.4933 GB, free: 29.91 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.4885, allocations: 0 / 0.4933 GB, free: 29.91 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004574/0.493, allocations: 3.582 MB / 0.4967 GB, free: 26.25 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008058/0.4939, allocations: 471.6 kB / 0.4972 GB, free: 25.77 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002271/0.4941, allocations: 28 kB / 0.4972 GB, free: 25.74 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008505/0.495, allocations: 70.83 kB / 0.4973 GB, free: 25.67 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002388/0.4952, allocations: 113.1 kB / 0.4974 GB, free: 25.56 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.769e-05/0.4953, allocations: 40 kB / 0.4974 GB, free: 25.52 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001509/0.4968, allocations: 1.289 MB / 0.4987 GB, free: 24.24 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4968, allocations: 0 / 0.4987 GB, free: 24.24 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001878/0.4987, allocations: 0.582 MB / 0.4993 GB, free: 23.66 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.strayReluctance.Phi.re,aimc.stator.strayReluctance.Phi.im,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(2,12,100.0%), (1,1,100.0%), (1,12,100.0%), (1,8,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002905/0.499, allocations: 170.8 kB / 0.4994 GB, free: 23.49 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003432/0.5024, allocations: 2.402 MB / 0.5018 GB, free: 21.06 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.5025, allocations: 0 / 0.5018 GB, free: 21.06 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00191/0.5044, allocations: 1.731 MB / 0.5035 GB, free: 19.27 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002027/0.5064, allocations: 0.5055 MB / 0.504 GB, free: 18.78 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008635/0.5151, allocations: 6.031 MB / 0.5098 GB, free: 12.7 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001575/0.5167, allocations: 2.37 MB / 0.5122 GB, free: 10.3 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001223/0.5179, allocations: 420.8 kB / 0.5126 GB, free: 9.891 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000313/0.5182, allocations: 123.4 kB / 0.5127 GB, free: 9.77 MB / 382.1 MB Notification: Performance of SimCode: time 5.81e-07/0.5182, allocations: 3.172 kB / 0.5127 GB, free: 9.77 MB / 382.1 MB Notification: Performance of Templates: time 0.04998/0.5682, allocations: 31.53 MB / 0.5435 GB, free: 10.2 MB / 414.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe 2>&1)