Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.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.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.001125/0.001125, allocations: 91.22 kB / 15.06 MB, free: 1.094 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.00147/0.00147, allocations: 172.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.695/1.695, allocations: 205.4 MB / 222.1 MB, free: 5.664 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.0004792/0.0004793, allocations: 12 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2485/0.2489, allocations: 47.58 MB / 326.5 MB, free: 1.41 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.0133/0.2623, allocations: 11.93 MB / 338.4 MB, free: 7.547 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.009535/0.2719, allocations: 4.528 MB / 342.9 MB, free: 3.008 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002476/0.2744, allocations: 67.69 kB / 343 MB, free: 2.941 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002709/0.2771, allocations: 0.7769 MB / 343.8 MB, free: 2.16 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004276/0.2814, allocations: 1.139 MB / 344.9 MB, free: 1.016 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002103/0.2836, allocations: 0.6861 MB / 345.6 MB, free: 336 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.005906/0.2895, allocations: 4.324 MB / 349.9 MB, free: 11.98 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003238/0.2927, allocations: 2.254 MB / 352.2 MB, free: 9.695 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002557/0.2953, allocations: 1.393 MB / 353.6 MB, free: 8.297 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003412/0.2987, allocations: 1.852 MB / 355.4 MB, free: 6.438 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006277/0.2994, allocations: 224 kB / 355.7 MB, free: 6.219 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001862/0.3012, allocations: 0.5347 MB / 356.2 MB, free: 5.684 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009524/0.3022, allocations: 0.9381 MB / 357.1 MB, free: 4.742 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001302/0.3035, allocations: 0.8121 MB / 357.9 MB, free: 3.922 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00662/0.3102, allocations: 5.937 MB / 363.9 MB, free: 13.97 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.356e-06/0.3102, allocations: 4 kB / 363.9 MB, free: 13.96 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.025e-06/0.3102, allocations: 4 kB / 363.9 MB, free: 13.96 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002209/0.3104, allocations: 0 / 363.9 MB, free: 13.96 MB / 302.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.01218/0.3226, allocations: 4.26 MB / 368.1 MB, free: 9.625 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.753e-05/0.3227, allocations: 8.031 kB / 368.2 MB, free: 9.617 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00535/0.3281, allocations: 0.8809 MB / 369 MB, free: 8.73 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005957/0.334, allocations: 2.476 MB / 371.5 MB, free: 6.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002327/0.3343, allocations: 246.7 kB / 371.7 MB, free: 5.938 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001019/0.3353, allocations: 339.9 kB / 372.1 MB, free: 5.605 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009523/0.3449, allocations: 4.528 MB / 376.6 MB, free: 1.031 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.221e-05/0.345, allocations: 11.84 kB / 376.6 MB, free: 1.02 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003171/0.3453, allocations: 140 kB / 376.8 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001713/0.3455, allocations: 154.7 kB / 376.9 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0079/0.3534, allocations: 3.907 MB / 380.8 MB, free: 12.82 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02501/0.3784, allocations: 14.25 MB / 395.1 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008143/0.3866, allocations: 6.978 MB / 402 MB, free: 6.477 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003222/0.3899, allocations: 1.708 MB / 403.8 MB, free: 4.773 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008234/0.3981, allocations: 4.245 MB / 408 MB, free: 452 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.233e-05/0.3982, allocations: 55.86 kB / 408.1 MB, free: 384 kB / 334.1 MB Notification: Performance of pre-optimization done (n=165): time 4.488e-06/0.3983, allocations: 0 / 408.1 MB, free: 384 kB / 334.1 MB Notification: Performance of matching and sorting (n=185): time 0.0179/0.4162, allocations: 7.952 MB / 416 MB, free: 8.285 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.668e-05/0.4163, allocations: 81.39 kB / 416.1 MB, free: 8.191 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003919/0.4202, allocations: 2.604 MB / 418.7 MB, free: 5.562 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002089/0.4204, allocations: 57.7 kB / 418.7 MB, free: 5.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001585/0.422, allocations: 1.611 MB / 420.4 MB, free: 3.867 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006247/0.4226, allocations: 0.6237 MB / 421 MB, free: 3.234 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001096/0.4228, allocations: 36 kB / 421 MB, free: 3.199 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001993/0.423, allocations: 381.9 kB / 421.4 MB, free: 2.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001733/0.4247, allocations: 0.9136 MB / 422.3 MB, free: 1.906 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002241/0.427, allocations: 1.31 MB / 423.6 MB, free: 452 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001857/0.4288, allocations: 1.138 MB / 424.7 MB, free: 15.3 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.995e-06/0.4288, allocations: 4 kB / 424.8 MB, free: 15.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.006291/0.4351, allocations: 3.073 MB / 427.8 MB, free: 12.21 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.504e-05/0.4352, allocations: 8 kB / 427.8 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001153/0.4353, allocations: 15.94 kB / 427.8 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001515/0.4368, allocations: 0.5519 MB / 428.4 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001824/0.4387, allocations: 439.3 kB / 428.8 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009415/0.4481, allocations: 6.957 MB / 435.8 MB, free: 3.973 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001769/0.4499, allocations: 95.98 kB / 435.9 MB, free: 3.879 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002/0.4501, allocations: 75.98 kB / 436 MB, free: 3.805 MB / 366.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(7,75.5%) 34} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002312/0.4525, allocations: 1.165 MB / 437.1 MB, free: 2.629 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005602/0.453, allocations: 248.9 kB / 437.4 MB, free: 2.383 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005515/0.4586, allocations: 2.905 MB / 440.3 MB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.423e-05/0.4586, allocations: 20 kB / 440.3 MB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.225e-05/0.4586, allocations: 8 kB / 440.3 MB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.913e-05/0.4587, allocations: 15.95 kB / 440.3 MB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01189/0.4706, allocations: 6.353 MB / 446.7 MB, free: 8.965 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.031e-05/0.4706, allocations: 0 / 446.7 MB, free: 8.965 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001356/0.472, allocations: 287.7 kB / 446.9 MB, free: 8.684 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001692/0.4737, allocations: 0.616 MB / 447.6 MB, free: 8.055 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001646/0.4739, allocations: 43.98 kB / 447.6 MB, free: 8.012 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2131/0.687, allocations: 10.46 MB / 458.1 MB, free: 106.5 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.42e-06/0.687, allocations: 5.203 kB / 458.1 MB, free: 106.5 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006943/0.694, allocations: 4.185 MB / 462.3 MB, free: 105.4 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001374/0.6954, allocations: 0.5467 MB / 462.8 MB, free: 105.1 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003422/0.6957, allocations: 34.62 kB / 462.8 MB, free: 105.1 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001097/0.6968, allocations: 101.6 kB / 462.9 MB, free: 105.1 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003711/0.6972, allocations: 142.9 kB / 463.1 MB, free: 105 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001178/0.6973, allocations: 52.88 kB / 463.1 MB, free: 105 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002272/0.6996, allocations: 1.833 MB / 465 MB, free: 104.4 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.6996, allocations: 0 / 465 MB, free: 104.4 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002432/0.7021, allocations: 0.6872 MB / 465.6 MB, free: 104.3 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 12,(1,100.0%) 6,(1,100.0%) 12,(2,100.0%) 25} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009945/0.7031, allocations: 442.7 kB / 466.1 MB, free: 104 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004256/0.7073, allocations: 2.845 MB / 468.9 MB, free: 102.8 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.971e-06/0.7074, allocations: 5.594 kB / 468.9 MB, free: 102.8 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002487/0.7099, allocations: 1.945 MB / 470.9 MB, free: 101.7 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002535/0.7124, allocations: 0.5609 MB / 471.4 MB, free: 101.5 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01044/0.7229, allocations: 8.376 MB / 479.8 MB, free: 95.15 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001849/0.7248, allocations: 2.626 MB / 482.4 MB, free: 92.83 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001885/0.7267, allocations: 0.5044 MB / 482.9 MB, free: 92.32 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004315/0.7271, allocations: 163.4 kB / 483.1 MB, free: 92.16 MB / 382.1 MB Notification: Performance of SimCode: time 9.42e-07/0.7271, allocations: 0 / 483.1 MB, free: 92.16 MB / 382.1 MB Notification: Performance of Templates: time 0.05382/0.7809, allocations: 34.34 MB / 0.5053 GB, free: 57.78 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe 2>&1)