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.001313/0.001313, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001186/0.001186, allocations: 194.4 kB / 16.25 MB, free: 6.625 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.435/1.435, 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.001152/0.001152, allocations: 47.94 kB / 278.2 MB, free: 12.65 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1967/0.1979, allocations: 46.63 MB / 324.9 MB, free: 1.895 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.01383/0.2118, allocations: 13.42 MB / 338.3 MB, free: 6.645 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008232/0.22, allocations: 4.783 MB / 343.1 MB, free: 1.848 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001659/0.2218, allocations: 75.62 kB / 343.1 MB, free: 1.773 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002366/0.2241, allocations: 0.9057 MB / 344 MB, free: 0.8633 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003374/0.2275, allocations: 1.259 MB / 345.3 MB, free: 15.6 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002104/0.2296, allocations: 0.8928 MB / 346.2 MB, free: 14.7 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005069/0.2347, allocations: 4.457 MB / 350.6 MB, free: 10.23 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003611/0.2383, allocations: 3.304 MB / 354 MB, free: 6.852 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002622/0.241, allocations: 1.881 MB / 355.8 MB, free: 4.965 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002734/0.2437, allocations: 2.32 MB / 358.2 MB, free: 2.637 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007146/0.2445, allocations: 0.5273 MB / 358.7 MB, free: 2.109 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001801/0.2463, allocations: 0.9057 MB / 359.6 MB, free: 1.203 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001063/0.2473, allocations: 1.321 MB / 360.9 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002396/0.2497, allocations: 2.349 MB / 363.3 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006773/0.2565, allocations: 7.248 MB / 370.5 MB, free: 6.25 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.2566, allocations: 4 kB / 370.5 MB, free: 6.246 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.2566, allocations: 4 kB / 370.5 MB, free: 6.242 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.308e-05/0.2567, allocations: 3.938 kB / 370.5 MB, free: 6.238 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.01003/0.2667, allocations: 4.965 MB / 375.5 MB, free: 1.195 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.2667, allocations: 15.89 kB / 375.5 MB, free: 1.18 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004194/0.2709, allocations: 0.878 MB / 376.4 MB, free: 304 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003744/0.2747, allocations: 2.557 MB / 378.9 MB, free: 13.66 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001665/0.2749, allocations: 250.6 kB / 379.2 MB, free: 13.42 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004594/0.2754, allocations: 339.9 kB / 379.5 MB, free: 13.09 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007216/0.2826, allocations: 4.543 MB / 384.1 MB, free: 8.496 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.208e-05/0.2827, allocations: 11.89 kB / 384.1 MB, free: 8.484 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003089/0.283, allocations: 132 kB / 384.2 MB, free: 8.355 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001435/0.2831, allocations: 158.7 kB / 384.3 MB, free: 8.199 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00613/0.2893, allocations: 3.903 MB / 388.2 MB, free: 4.289 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02245/0.3117, allocations: 14.18 MB / 402.4 MB, free: 5.805 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008065/0.3199, allocations: 6.983 MB / 409.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002829/0.3227, allocations: 1.677 MB / 411.1 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00709/0.3299, allocations: 4.256 MB / 415.3 MB, free: 8.004 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.338e-05/0.3299, allocations: 51.88 kB / 415.4 MB, free: 7.941 MB / 350.1 MB Notification: Performance of pre-optimization done (n=165): time 3.596e-06/0.3299, allocations: 7.938 kB / 415.4 MB, free: 7.934 MB / 350.1 MB Notification: Performance of matching and sorting (n=185): time 0.01653/0.3465, allocations: 7.827 MB / 423.2 MB, free: 15.97 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.144e-05/0.3466, allocations: 69.41 kB / 423.3 MB, free: 15.89 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003769/0.3503, allocations: 2.627 MB / 425.9 MB, free: 13.24 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001613/0.3505, allocations: 53.7 kB / 426 MB, free: 13.18 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001221/0.3517, allocations: 1.619 MB / 427.6 MB, free: 11.54 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005287/0.3523, allocations: 0.6237 MB / 428.2 MB, free: 10.91 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005297/0.3528, allocations: 335.4 kB / 428.6 MB, free: 10.57 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001004/0.3529, allocations: 309.1 kB / 428.9 MB, free: 10.27 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001466/0.3544, allocations: 0.9019 MB / 429.8 MB, free: 9.363 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001768/0.3562, allocations: 1.31 MB / 431.1 MB, free: 7.898 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003379/0.3596, allocations: 2.355 MB / 433.4 MB, free: 5.398 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.55e-06/0.3596, allocations: 0 / 433.4 MB, free: 5.398 MB / 366.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005293/0.3649, allocations: 3.069 MB / 436.5 MB, free: 2.312 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.483e-05/0.3649, allocations: 16.03 kB / 436.5 MB, free: 2.297 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.712e-05/0.365, allocations: 8 kB / 436.5 MB, free: 2.289 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001469/0.3664, allocations: 0.5594 MB / 437.1 MB, free: 1.723 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001727/0.3682, allocations: 435.3 kB / 437.5 MB, free: 1.297 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008752/0.3769, allocations: 7.573 MB / 445.1 MB, free: 9.445 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001768/0.3787, allocations: 79.94 kB / 445.1 MB, free: 9.367 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001721/0.3789, allocations: 75.98 kB / 445.2 MB, free: 9.293 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.001967/0.3809, allocations: 1.161 MB / 446.4 MB, free: 8.121 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004883/0.3814, allocations: 256.9 kB / 446.6 MB, free: 7.867 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005056/0.3865, allocations: 2.889 MB / 449.5 MB, free: 4.953 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.939e-05/0.3865, allocations: 16 kB / 449.5 MB, free: 4.938 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.191e-05/0.3865, allocations: 12 kB / 449.6 MB, free: 4.926 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.841e-05/0.3865, allocations: 7.969 kB / 449.6 MB, free: 4.918 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1633/0.5499, allocations: 6.342 MB / 455.9 MB, free: 109.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.618e-05/0.5499, allocations: 1.094 kB / 455.9 MB, free: 109.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00152/0.5514, allocations: 275.5 kB / 456.2 MB, free: 109.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001676/0.5531, allocations: 0.6269 MB / 456.8 MB, free: 109.4 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001923/0.5533, allocations: 50.05 kB / 456.8 MB, free: 109.4 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01005/0.5634, allocations: 11.45 MB / 468.3 MB, free: 101.2 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.5634, allocations: 0 / 468.3 MB, free: 101.2 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006278/0.5697, allocations: 4.153 MB / 472.5 MB, free: 99.44 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009517/0.5707, allocations: 0.5336 MB / 473 MB, free: 99.2 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003182/0.571, allocations: 39.75 kB / 473 MB, free: 99.17 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001078/0.5721, allocations: 90.25 kB / 473.1 MB, free: 99.14 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002915/0.5724, allocations: 142.4 kB / 473.3 MB, free: 99.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001077/0.5725, allocations: 53.3 kB / 473.3 MB, free: 99.11 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001931/0.5744, allocations: 1.84 MB / 475.1 MB, free: 98.43 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.5745, allocations: 6.797 kB / 475.1 MB, free: 98.43 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001917/0.5764, allocations: 0.6968 MB / 475.8 MB, free: 98.37 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.00101/0.5774, allocations: 433 kB / 476.3 MB, free: 98.07 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006286/0.5837, allocations: 3.455 MB / 479.7 MB, free: 95.8 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.5837, allocations: 2.938 kB / 479.7 MB, free: 95.8 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002308/0.586, allocations: 1.932 MB / 481.7 MB, free: 93.96 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00235/0.5884, allocations: 0.5916 MB / 482.3 MB, free: 93.38 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009233/0.5976, allocations: 8.621 MB / 490.9 MB, free: 84.78 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001635/0.5993, allocations: 2.63 MB / 493.5 MB, free: 82.12 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001588/0.6009, allocations: 0.4967 MB / 494 MB, free: 81.62 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003989/0.6013, allocations: 167.4 kB / 494.2 MB, free: 81.46 MB / 382.1 MB Notification: Performance of SimCode: time 7.51e-07/0.6013, allocations: 0 / 494.2 MB, free: 81.46 MB / 382.1 MB Notification: Performance of Templates: time 0.04903/0.6503, allocations: 37.1 MB / 0.5188 GB, free: 44.33 MB / 382.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)