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.00115/0.00115, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001249/0.001249, allocations: 192.9 kB / 16.53 MB, free: 6.391 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.329/1.329, allocations: 205.1 MB / 222.4 MB, free: 4.555 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.001203/0.001203, allocations: 59.91 kB / 278.7 MB, free: 12.35 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2076/0.2088, allocations: 46.62 MB / 325.3 MB, free: 1.852 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.01409/0.223, allocations: 13.58 MB / 338.9 MB, free: 6.289 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00877/0.2318, allocations: 4.853 MB / 343.7 MB, free: 1.422 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002075/0.2339, allocations: 75.69 kB / 343.8 MB, free: 1.348 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002637/0.2366, allocations: 1.029 MB / 344.8 MB, free: 320 kB / 270.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.003542/0.2401, allocations: 1.398 MB / 346.2 MB, free: 14.91 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001947/0.2421, allocations: 0.9664 MB / 347.2 MB, free: 13.94 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004613/0.2467, allocations: 4.301 MB / 351.5 MB, free: 9.617 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003641/0.2504, allocations: 3.3 MB / 354.8 MB, free: 6.246 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002664/0.2531, allocations: 1.994 MB / 356.8 MB, free: 4.246 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003029/0.2561, allocations: 2.316 MB / 359.1 MB, free: 1.922 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008082/0.2569, allocations: 0.5312 MB / 359.7 MB, free: 1.391 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001735/0.2587, allocations: 0.9135 MB / 360.6 MB, free: 488 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001112/0.2598, allocations: 1.325 MB / 361.9 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003924/0.2637, allocations: 2.345 MB / 364.2 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0101/0.2739, allocations: 7.283 MB / 371.5 MB, free: 5.488 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.102e-05/0.2739, allocations: 0 / 371.5 MB, free: 5.488 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.427e-06/0.2739, allocations: 4 kB / 371.5 MB, free: 5.484 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002196/0.2742, allocations: 0 / 371.5 MB, free: 5.484 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.01255/0.2867, allocations: 4.976 MB / 376.5 MB, free: 436 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.2868, allocations: 19.83 kB / 376.5 MB, free: 416 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004434/0.2912, allocations: 0.878 MB / 377.4 MB, free: 15.52 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004785/0.296, allocations: 2.6 MB / 380 MB, free: 12.85 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001844/0.2962, allocations: 250.6 kB / 380.2 MB, free: 12.6 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005345/0.2968, allocations: 343.8 kB / 380.6 MB, free: 12.27 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007616/0.3044, allocations: 4.543 MB / 385.1 MB, free: 7.676 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.221e-05/0.3045, allocations: 0 / 385.1 MB, free: 7.676 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003133/0.3048, allocations: 148 kB / 385.3 MB, free: 7.531 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001589/0.305, allocations: 154.7 kB / 385.4 MB, free: 7.379 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006635/0.3116, allocations: 3.907 MB / 389.3 MB, free: 3.465 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02224/0.3339, allocations: 14.18 MB / 403.5 MB, free: 4.984 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007814/0.3417, allocations: 6.975 MB / 410.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003113/0.3449, allocations: 1.689 MB / 412.2 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007526/0.3524, allocations: 4.256 MB / 416.4 MB, free: 7.172 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.964e-05/0.3525, allocations: 55.88 kB / 416.5 MB, free: 7.105 MB / 350.1 MB Notification: Performance of pre-optimization done (n=165): time 3.637e-06/0.3525, allocations: 0 / 416.5 MB, free: 7.105 MB / 350.1 MB Notification: Performance of matching and sorting (n=185): time 0.01832/0.3709, allocations: 7.819 MB / 424.3 MB, free: 15.14 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.438e-05/0.371, allocations: 73.41 kB / 424.4 MB, free: 15.06 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004555/0.3755, allocations: 2.62 MB / 427 MB, free: 12.42 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002694/0.3758, allocations: 57.7 kB / 427 MB, free: 12.36 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001357/0.3772, allocations: 1.619 MB / 428.7 MB, free: 10.72 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006602/0.3779, allocations: 0.6276 MB / 429.3 MB, free: 10.08 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007044/0.3786, allocations: 331.3 kB / 429.6 MB, free: 9.75 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.3787, allocations: 309.1 kB / 429.9 MB, free: 9.445 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001694/0.3804, allocations: 0.9058 MB / 430.8 MB, free: 8.539 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00193/0.3824, allocations: 1.31 MB / 432.1 MB, free: 7.074 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003772/0.3861, allocations: 2.352 MB / 434.5 MB, free: 4.578 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.239e-05/0.3862, allocations: 4 kB / 434.5 MB, free: 4.574 MB / 366.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005568/0.3917, allocations: 3.065 MB / 437.5 MB, free: 1.492 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.901e-05/0.3918, allocations: 8 kB / 437.6 MB, free: 1.484 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.8e-05/0.3918, allocations: 15.98 kB / 437.6 MB, free: 1.469 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00152/0.3934, allocations: 0.5635 MB / 438.1 MB, free: 0.8984 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001771/0.3951, allocations: 431.3 kB / 438.6 MB, free: 488 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00948/0.4046, allocations: 7.569 MB / 446.1 MB, free: 8.629 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00176/0.4064, allocations: 87.94 kB / 446.2 MB, free: 8.543 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002764/0.4067, allocations: 75.98 kB / 446.3 MB, free: 8.469 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.002018/0.4088, allocations: 1.169 MB / 447.5 MB, free: 7.289 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005874/0.4094, allocations: 252.8 kB / 447.7 MB, free: 7.039 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005326/0.4147, allocations: 2.878 MB / 450.6 MB, free: 4.137 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.011e-05/0.4147, allocations: 20 kB / 450.6 MB, free: 4.117 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.206e-05/0.4148, allocations: 8 kB / 450.6 MB, free: 4.109 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.781e-05/0.4148, allocations: 7.969 kB / 450.6 MB, free: 4.102 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1756/0.5904, allocations: 6.346 MB / 457 MB, free: 109.6 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.108e-05/0.5905, allocations: 5.125 kB / 457 MB, free: 109.6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001282/0.5918, allocations: 278.3 kB / 457.2 MB, free: 109.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001562/0.5933, allocations: 0.6237 MB / 457.9 MB, free: 109.6 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001245/0.5935, allocations: 45.08 kB / 457.9 MB, free: 109.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009516/0.603, allocations: 11.45 MB / 469.4 MB, free: 101 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.603, allocations: 0 / 469.4 MB, free: 101 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005997/0.609, allocations: 4.156 MB / 473.5 MB, free: 99.23 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008768/0.6099, allocations: 0.5364 MB / 474 MB, free: 98.98 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002928/0.6102, allocations: 39.06 kB / 474.1 MB, free: 98.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001096/0.6113, allocations: 84.44 kB / 474.2 MB, free: 98.93 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003034/0.6117, allocations: 143.8 kB / 474.3 MB, free: 98.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001129/0.6118, allocations: 50.86 kB / 474.4 MB, free: 98.9 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00213/0.6139, allocations: 1.84 MB / 476.2 MB, free: 98.23 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6139, allocations: 0 / 476.2 MB, free: 98.23 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001928/0.6159, allocations: 0.697 MB / 476.9 MB, free: 98.16 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.0009463/0.6168, allocations: 447 kB / 477.3 MB, free: 97.86 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006442/0.6233, allocations: 3.457 MB / 480.8 MB, free: 94.86 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.6233, allocations: 0 / 480.8 MB, free: 94.86 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002482/0.6258, allocations: 1.946 MB / 482.7 MB, free: 92.93 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002436/0.6282, allocations: 0.5922 MB / 483.3 MB, free: 92.35 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009198/0.6374, allocations: 7.137 MB / 490.5 MB, free: 85.23 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001711/0.6392, allocations: 2.624 MB / 493.1 MB, free: 82.58 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001755/0.641, allocations: 0.4967 MB / 493.6 MB, free: 82.08 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004151/0.6414, allocations: 163.4 kB / 493.7 MB, free: 81.92 MB / 382.1 MB Notification: Performance of SimCode: time 5.51e-07/0.6414, allocations: 0 / 493.7 MB, free: 81.92 MB / 382.1 MB Notification: Performance of Templates: time 0.05113/0.6925, allocations: 37.17 MB / 0.5185 GB, free: 44.72 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)