Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.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_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008702/0.008701, allocations: 105.9 kB / 15.73 MB, free: 6.051 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.001755/0.001755, allocations: 196.6 kB / 16.67 MB, free: 5.961 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.388/1.388, allocations: 205.1 MB / 222.5 MB, free: 4.516 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.001149/0.001149, allocations: 55.84 kB / 326.6 MB, free: 14.4 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08488/0.08604, allocations: 46.62 MB / 373.2 MB, free: 1.285 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.01651/0.1026, allocations: 13.58 MB / 386.8 MB, free: 3.637 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01014/0.1128, allocations: 4.857 MB / 391.6 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002516/0.1154, allocations: 71.69 kB / 391.7 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002903/0.1183, allocations: 1.029 MB / 392.7 MB, free: 13.66 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.004237/0.1226, allocations: 1.398 MB / 394.1 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00218/0.1248, allocations: 0.9665 MB / 395.1 MB, free: 11.28 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004386/0.1292, allocations: 4.336 MB / 399.4 MB, free: 6.93 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003423/0.1326, allocations: 3.292 MB / 402.7 MB, free: 3.566 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002444/0.1351, allocations: 1.99 MB / 404.7 MB, free: 1.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002768/0.1378, allocations: 2.281 MB / 407 MB, free: 15.28 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007704/0.1386, allocations: 0.5352 MB / 407.5 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001666/0.1403, allocations: 0.9096 MB / 408.4 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00118/0.1415, allocations: 1.356 MB / 409.8 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002357/0.1439, allocations: 2.353 MB / 412.2 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006822/0.1507, allocations: 7.337 MB / 419.5 MB, free: 2.754 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.1507, allocations: 4 kB / 419.5 MB, free: 2.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1507, allocations: 0 / 419.5 MB, free: 2.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001375/0.1509, allocations: 0 / 419.5 MB, free: 2.75 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: 877 * Number of variables: 877 Notification: Performance of Generate backend data structure: time 0.01186/0.1628, allocations: 4.98 MB / 424.5 MB, free: 13.69 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.761e-05/0.1628, allocations: 11.89 kB / 424.5 MB, free: 13.68 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004453/0.1673, allocations: 0.8779 MB / 425.4 MB, free: 12.8 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005181/0.1725, allocations: 2.623 MB / 428 MB, free: 10.1 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001949/0.1727, allocations: 258.6 kB / 428.2 MB, free: 9.844 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008774/0.1736, allocations: 327.9 kB / 428.6 MB, free: 9.523 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0105/0.1841, allocations: 4.539 MB / 433.1 MB, free: 4.938 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.311e-05/0.1842, allocations: 11.84 kB / 433.1 MB, free: 4.926 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003766/0.1846, allocations: 140 kB / 433.2 MB, free: 4.789 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001957/0.1848, allocations: 158.7 kB / 433.4 MB, free: 4.633 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007154/0.192, allocations: 3.907 MB / 437.3 MB, free: 0.7188 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0215/0.2135, allocations: 14 MB / 451.3 MB, free: 2.418 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2027/0.4163, allocations: 6.971 MB / 458.3 MB, free: 61.27 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003825/0.4201, allocations: 1.717 MB / 460 MB, free: 61.25 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007495/0.4277, allocations: 4.241 MB / 464.2 MB, free: 59.5 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.177e-05/0.4277, allocations: 52.3 kB / 464.3 MB, free: 59.44 MB / 382.1 MB Notification: Performance of pre-optimization done (n=165): time 4.268e-06/0.4277, allocations: 0.7188 kB / 464.3 MB, free: 59.44 MB / 382.1 MB Notification: Performance of matching and sorting (n=185): time 0.01681/0.4445, allocations: 7.825 MB / 472.1 MB, free: 56.06 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.366e-05/0.4446, allocations: 74.45 kB / 472.2 MB, free: 56 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003602/0.4482, allocations: 2.62 MB / 474.8 MB, free: 55.06 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001361/0.4484, allocations: 57.55 kB / 474.9 MB, free: 55.01 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009191/0.4493, allocations: 1.623 MB / 476.5 MB, free: 53.77 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003951/0.4497, allocations: 0.6181 MB / 477.1 MB, free: 53.29 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004603/0.4502, allocations: 338.8 kB / 477.4 MB, free: 53.12 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.031e-05/0.4502, allocations: 305.1 kB / 477.7 MB, free: 52.82 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001304/0.4516, allocations: 0.9028 MB / 478.6 MB, free: 52.47 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001414/0.453, allocations: 1.308 MB / 479.9 MB, free: 51.66 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002877/0.4559, allocations: 2.356 MB / 482.3 MB, free: 50.15 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.658e-06/0.4559, allocations: 3.188 kB / 482.3 MB, free: 50.15 MB / 382.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.004727/0.4606, allocations: 3.067 MB / 485.4 MB, free: 48.52 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.271e-05/0.4607, allocations: 11.66 kB / 485.4 MB, free: 48.51 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.86e-05/0.4607, allocations: 11.59 kB / 485.4 MB, free: 48.51 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001318/0.462, allocations: 0.5605 MB / 486 MB, free: 48.24 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001614/0.4636, allocations: 435.8 kB / 486.4 MB, free: 48.13 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007123/0.4708, allocations: 7.562 MB / 493.9 MB, free: 40.99 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001625/0.4724, allocations: 83.94 kB / 494 MB, free: 40.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001421/0.4726, allocations: 71.98 kB / 494.1 MB, free: 40.84 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (198): * Single equations (assignments): 194 * Array equations: 2 * 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,6,100.0%), (8,33,56.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001705/0.4743, allocations: 1.169 MB / 495.3 MB, free: 39.66 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004105/0.4747, allocations: 256.8 kB / 495.5 MB, free: 39.41 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00456/0.4793, allocations: 2.873 MB / 498.4 MB, free: 36.52 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.586e-05/0.4793, allocations: 27.48 kB / 498.4 MB, free: 36.49 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.198e-06/0.4793, allocations: 10.19 kB / 498.4 MB, free: 36.48 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.352e-05/0.4794, allocations: 7.969 kB / 498.4 MB, free: 36.48 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008226/0.4876, allocations: 6.336 MB / 0.4929 GB, free: 30.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.754e-06/0.4876, allocations: 4 kB / 0.4929 GB, free: 30.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001191/0.4888, allocations: 279.7 kB / 0.4932 GB, free: 29.81 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001392/0.4902, allocations: 0.6139 MB / 0.4938 GB, free: 29.19 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000113/0.4904, allocations: 43.98 kB / 0.4938 GB, free: 29.15 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008741/0.4991, allocations: 11.45 MB / 0.505 GB, free: 17.19 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.4991, allocations: 0 / 0.505 GB, free: 17.19 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006005/0.5051, allocations: 4.151 MB / 0.5091 GB, free: 13 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001118/0.5063, allocations: 0.5369 MB / 0.5096 GB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002682/0.5066, allocations: 40 kB / 0.5096 GB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001061/0.5076, allocations: 91.86 kB / 0.5097 GB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002966/0.5079, allocations: 136.5 kB / 0.5099 GB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001032/0.508, allocations: 56.84 kB / 0.5099 GB, free: 12.13 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002086/0.5101, allocations: 1.846 MB / 0.5117 GB, free: 10.27 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5101, allocations: 4 kB / 0.5117 GB, free: 10.27 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002188/0.5123, allocations: 0.6927 MB / 0.5124 GB, free: 9.582 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (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,PI.x) * 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 (126): * Single equations (assignments): 120 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,12,100.0%), (1,6,100.0%), (1,12,100.0%), (2,25,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009489/0.5133, allocations: 444.5 kB / 0.5128 GB, free: 9.164 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004262/0.5176, allocations: 2.849 MB / 0.5156 GB, free: 6.293 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.459e-06/0.5176, allocations: 4.125 kB / 0.5156 GB, free: 6.289 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00257/0.5202, allocations: 1.956 MB / 0.5175 GB, free: 4.285 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002429/0.5226, allocations: 0.5851 MB / 0.5181 GB, free: 3.699 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009879/0.5325, allocations: 7.028 MB / 0.525 GB, free: 12.65 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002197/0.5347, allocations: 2.631 MB / 0.5275 GB, free: 9.988 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00182/0.5366, allocations: 0.4967 MB / 0.528 GB, free: 9.488 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004631/0.537, allocations: 171.4 kB / 0.5282 GB, free: 9.32 MB / 398.1 MB Notification: Performance of SimCode: time 5.81e-07/0.537, allocations: 0 / 0.5282 GB, free: 9.32 MB / 398.1 MB Notification: Performance of Templates: time 0.06135/0.5984, allocations: 35.71 MB / 0.563 GB, free: 5.617 MB / 430.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe 2>&1)