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.001548/0.001547, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001664/0.001664, allocations: 187.8 kB / 16.25 MB, free: 6.621 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.397/1.397, allocations: 205.1 MB / 222.1 MB, free: 4.703 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.002019/0.002019, allocations: 51.92 kB / 278.2 MB, free: 12.61 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.22/0.222, allocations: 46.63 MB / 324.9 MB, free: 1.992 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.01478/0.2369, allocations: 13.42 MB / 338.3 MB, free: 6.613 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008717/0.2456, allocations: 4.787 MB / 343.1 MB, free: 1.812 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001948/0.2477, allocations: 67.69 kB / 343.1 MB, free: 1.746 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002609/0.2503, allocations: 0.9173 MB / 344 MB, free: 0.8242 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003676/0.254, allocations: 1.259 MB / 345.3 MB, free: 15.55 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001969/0.2559, allocations: 0.8848 MB / 346.2 MB, free: 14.67 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004905/0.2609, allocations: 4.465 MB / 350.7 MB, free: 10.19 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003467/0.2643, allocations: 3.296 MB / 354 MB, free: 6.82 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002345/0.2667, allocations: 1.884 MB / 355.8 MB, free: 4.93 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002613/0.2693, allocations: 2.32 MB / 358.2 MB, free: 2.602 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006751/0.27, allocations: 0.5312 MB / 358.7 MB, free: 2.07 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001509/0.2715, allocations: 0.9057 MB / 359.6 MB, free: 1.164 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001007/0.2726, allocations: 1.321 MB / 360.9 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002293/0.2749, allocations: 2.349 MB / 363.3 MB, free: 13.48 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006214/0.2811, allocations: 7.248 MB / 370.5 MB, free: 6.211 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.2811, allocations: 0 / 370.5 MB, free: 6.211 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.2811, allocations: 0 / 370.5 MB, free: 6.211 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000141/0.2813, allocations: 4 kB / 370.5 MB, free: 6.207 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.01247/0.2938, allocations: 4.969 MB / 375.5 MB, free: 1.16 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/0.2938, allocations: 8.031 kB / 375.5 MB, free: 1.152 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004253/0.2981, allocations: 0.8858 MB / 376.4 MB, free: 268 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004446/0.3025, allocations: 2.549 MB / 378.9 MB, free: 13.63 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001784/0.3027, allocations: 254.6 kB / 379.2 MB, free: 13.38 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005919/0.3034, allocations: 339.9 kB / 379.5 MB, free: 13.05 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00762/0.311, allocations: 4.539 MB / 384 MB, free: 8.465 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.295e-05/0.3111, allocations: 11.84 kB / 384.1 MB, free: 8.453 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003095/0.3114, allocations: 136 kB / 384.2 MB, free: 8.32 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001475/0.3116, allocations: 154.7 kB / 384.3 MB, free: 8.168 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006492/0.3181, allocations: 3.903 MB / 388.2 MB, free: 4.258 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02099/0.3391, allocations: 14.2 MB / 402.4 MB, free: 5.762 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007253/0.3464, allocations: 6.971 MB / 409.4 MB, free: 13.99 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002649/0.349, allocations: 1.681 MB / 411.1 MB, free: 12.31 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006818/0.3559, allocations: 4.257 MB / 415.3 MB, free: 7.969 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.791e-05/0.3559, allocations: 51.86 kB / 415.4 MB, free: 7.906 MB / 350.1 MB Notification: Performance of pre-optimization done (n=165): time 3.697e-06/0.3559, allocations: 0 / 415.4 MB, free: 7.906 MB / 350.1 MB Notification: Performance of matching and sorting (n=185): time 0.01617/0.3721, allocations: 7.831 MB / 423.2 MB, free: 15.94 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.761e-05/0.3722, allocations: 69.41 kB / 423.3 MB, free: 15.86 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003193/0.3754, allocations: 2.631 MB / 425.9 MB, free: 13.2 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001158/0.3755, allocations: 53.7 kB / 426 MB, free: 13.14 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001008/0.3765, allocations: 1.619 MB / 427.6 MB, free: 11.5 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004452/0.377, allocations: 0.6237 MB / 428.2 MB, free: 10.87 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005188/0.3775, allocations: 327.4 kB / 428.5 MB, free: 10.54 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.228e-05/0.3776, allocations: 309 kB / 428.8 MB, free: 10.24 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001475/0.3791, allocations: 0.9136 MB / 429.8 MB, free: 9.324 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001703/0.3808, allocations: 1.298 MB / 431.1 MB, free: 7.871 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003316/0.3841, allocations: 2.352 MB / 433.4 MB, free: 5.375 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.3841, allocations: 4 kB / 433.4 MB, free: 5.371 MB / 366.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005096/0.3892, allocations: 3.069 MB / 436.5 MB, free: 2.285 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.46e-05/0.3893, allocations: 12 kB / 436.5 MB, free: 2.273 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.71e-05/0.3893, allocations: 8 kB / 436.5 MB, free: 2.266 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001436/0.3907, allocations: 0.5713 MB / 437.1 MB, free: 1.688 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001745/0.3925, allocations: 435.4 kB / 437.5 MB, free: 1.262 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009556/0.4021, allocations: 7.58 MB / 445.1 MB, free: 9.402 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001651/0.4037, allocations: 87.94 kB / 445.2 MB, free: 9.316 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001586/0.4039, allocations: 75.98 kB / 445.2 MB, free: 9.242 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.002001/0.4059, allocations: 1.157 MB / 446.4 MB, free: 8.074 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004998/0.4064, allocations: 256.8 kB / 446.6 MB, free: 7.82 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005346/0.4118, allocations: 2.874 MB / 449.5 MB, free: 4.922 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.464e-05/0.4118, allocations: 27.98 kB / 449.5 MB, free: 4.895 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.551e-05/0.4119, allocations: 16.06 kB / 449.6 MB, free: 4.879 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.673e-05/0.4119, allocations: 7.969 kB / 449.6 MB, free: 4.871 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1607/0.5726, allocations: 6.335 MB / 455.9 MB, free: 109.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.071e-05/0.5726, allocations: 3.391 kB / 455.9 MB, free: 109.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001439/0.5741, allocations: 277.2 kB / 456.2 MB, free: 109.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001582/0.5757, allocations: 0.6218 MB / 456.8 MB, free: 109.5 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001729/0.5759, allocations: 48.16 kB / 456.8 MB, free: 109.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009611/0.5855, allocations: 11.45 MB / 468.3 MB, free: 101.2 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.5855, allocations: 1.875 kB / 468.3 MB, free: 101.2 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006609/0.5922, allocations: 4.158 MB / 472.5 MB, free: 99.5 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001152/0.5933, allocations: 0.5331 MB / 473 MB, free: 99.25 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003191/0.5937, allocations: 39.66 kB / 473 MB, free: 99.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001099/0.5948, allocations: 86.06 kB / 473.1 MB, free: 99.2 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003266/0.5951, allocations: 140.6 kB / 473.2 MB, free: 99.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001082/0.5952, allocations: 55.36 kB / 473.3 MB, free: 99.17 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002025/0.5973, allocations: 1.844 MB / 475.1 MB, free: 98.5 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5973, allocations: 7 kB / 475.1 MB, free: 98.5 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002105/0.5994, allocations: 0.6951 MB / 475.8 MB, free: 98.43 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.001034/0.6004, allocations: 444.8 kB / 476.3 MB, free: 98.12 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00659/0.607, allocations: 3.456 MB / 479.7 MB, free: 95.74 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.6071, allocations: 0 / 479.7 MB, free: 95.74 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002445/0.6095, allocations: 1.931 MB / 481.7 MB, free: 93.84 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0026/0.6121, allocations: 0.577 MB / 482.2 MB, free: 93.27 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009424/0.6216, allocations: 8.627 MB / 490.9 MB, free: 84.66 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00157/0.6232, allocations: 2.631 MB / 493.5 MB, free: 82 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001553/0.6248, allocations: 0.4928 MB / 494 MB, free: 81.5 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004056/0.6252, allocations: 167.4 kB / 494.2 MB, free: 81.34 MB / 382.1 MB Notification: Performance of SimCode: time 1.192e-06/0.6252, allocations: 0 / 494.2 MB, free: 81.34 MB / 382.1 MB Notification: Performance of Templates: time 0.05102/0.6762, allocations: 37.1 MB / 0.5188 GB, free: 44.21 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)