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.001133/0.001134, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001122/0.001122, allocations: 192.8 kB / 16.13 MB, free: 6.664 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.467/1.467, allocations: 205.1 MB / 222 MB, free: 4.734 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.001147/0.001147, allocations: 48.31 kB / 278.1 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2547/0.2559, allocations: 46.63 MB / 324.7 MB, free: 1.938 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.01502/0.2709, allocations: 13.42 MB / 338.1 MB, free: 6.707 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.009516/0.2805, allocations: 4.818 MB / 342.9 MB, free: 1.875 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002802/0.2834, allocations: 71.62 kB / 343 MB, free: 1.805 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002594/0.286, allocations: 0.9017 MB / 343.9 MB, free: 0.8984 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003984/0.29, allocations: 1.263 MB / 345.2 MB, free: 15.62 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002088/0.2921, allocations: 0.901 MB / 346.1 MB, free: 14.73 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0052/0.2973, allocations: 4.64 MB / 350.7 MB, free: 10.07 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003179/0.3005, allocations: 2.726 MB / 353.4 MB, free: 7.273 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002334/0.3029, allocations: 1.595 MB / 355 MB, free: 5.672 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002692/0.3056, allocations: 2.156 MB / 357.2 MB, free: 3.508 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005373/0.3061, allocations: 316 kB / 357.5 MB, free: 3.199 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001609/0.3077, allocations: 0.6791 MB / 358.2 MB, free: 2.52 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008942/0.3086, allocations: 1.09 MB / 359.2 MB, free: 1.426 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002189/0.3108, allocations: 2.099 MB / 361.3 MB, free: 15.31 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006773/0.3176, allocations: 7.107 MB / 368.5 MB, free: 8.188 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.3177, allocations: 0 / 368.5 MB, free: 8.188 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.3177, allocations: 4 kB / 368.5 MB, free: 8.184 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001644/0.3178, allocations: 0 / 368.5 MB, free: 8.184 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.01959/0.3374, allocations: 4.961 MB / 373.4 MB, free: 3.145 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.016e-05/0.3375, allocations: 19.95 kB / 373.4 MB, free: 3.125 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008174/0.3457, allocations: 0.878 MB / 374.3 MB, free: 2.238 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008827/0.3546, allocations: 2.553 MB / 376.9 MB, free: 15.61 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004561/0.3551, allocations: 250.6 kB / 377.1 MB, free: 15.36 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001552/0.3567, allocations: 335.8 kB / 377.4 MB, free: 15.04 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01843/0.3751, allocations: 4.539 MB / 382 MB, free: 10.45 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002034/0.3754, allocations: 11.84 kB / 382 MB, free: 10.44 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001319/0.3768, allocations: 143.9 kB / 382.1 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003057/0.3771, allocations: 154.7 kB / 382.3 MB, free: 10.14 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01654/0.3937, allocations: 3.903 MB / 386.2 MB, free: 6.234 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03948/0.4332, allocations: 14.19 MB / 400.4 MB, free: 7.746 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008346/0.4416, allocations: 6.967 MB / 407.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003149/0.4447, allocations: 1.689 MB / 409 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009314/0.4541, allocations: 4.253 MB / 413.3 MB, free: 9.953 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.475e-05/0.4542, allocations: 55.88 kB / 413.3 MB, free: 9.887 MB / 350.1 MB Notification: Performance of pre-optimization done (n=165): time 5.37e-06/0.4542, allocations: 0 / 413.3 MB, free: 9.887 MB / 350.1 MB Notification: Performance of matching and sorting (n=185): time 0.01874/0.4729, allocations: 7.811 MB / 421.1 MB, free: 1.938 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.315e-05/0.473, allocations: 81.39 kB / 421.2 MB, free: 1.848 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004457/0.4775, allocations: 2.62 MB / 423.8 MB, free: 15.2 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002734/0.4778, allocations: 57.7 kB / 423.9 MB, free: 15.14 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001218/0.479, allocations: 1.615 MB / 425.5 MB, free: 13.5 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006723/0.4797, allocations: 0.6237 MB / 426.1 MB, free: 12.87 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007087/0.4804, allocations: 343.3 kB / 426.5 MB, free: 12.53 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.221e-05/0.4805, allocations: 305.1 kB / 426.8 MB, free: 12.23 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001755/0.4823, allocations: 0.9058 MB / 427.7 MB, free: 11.32 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001965/0.4843, allocations: 1.306 MB / 429 MB, free: 9.859 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00376/0.4881, allocations: 2.348 MB / 431.3 MB, free: 7.367 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.098e-05/0.4881, allocations: 4 kB / 431.3 MB, free: 7.363 MB / 366.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005862/0.494, allocations: 3.076 MB / 434.4 MB, free: 4.27 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.721e-05/0.494, allocations: 8 kB / 434.4 MB, free: 4.262 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.365e-05/0.494, allocations: 12 kB / 434.4 MB, free: 4.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001624/0.4957, allocations: 0.5596 MB / 435 MB, free: 3.684 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001867/0.4976, allocations: 435.4 kB / 435.4 MB, free: 3.258 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009596/0.5072, allocations: 6.945 MB / 442.4 MB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001978/0.5092, allocations: 92 kB / 442.5 MB, free: 11.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003813/0.5096, allocations: 75.98 kB / 442.5 MB, free: 11.88 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.002588/0.5122, allocations: 1.149 MB / 443.7 MB, free: 10.72 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009226/0.5131, allocations: 256.9 kB / 443.9 MB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006164/0.5193, allocations: 2.893 MB / 446.8 MB, free: 7.547 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.643e-05/0.5194, allocations: 20 kB / 446.8 MB, free: 7.527 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.435e-05/0.5194, allocations: 8 kB / 446.9 MB, free: 7.52 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.216e-05/0.5194, allocations: 11.91 kB / 446.9 MB, free: 7.508 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01231/0.5317, allocations: 6.33 MB / 453.2 MB, free: 1.086 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.054e-05/0.5318, allocations: 0 / 453.2 MB, free: 1.086 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001368/0.5332, allocations: 279.7 kB / 453.5 MB, free: 0.8125 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001869/0.5351, allocations: 0.6277 MB / 454.1 MB, free: 176 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001971/0.5353, allocations: 51.86 kB / 454.1 MB, free: 124 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1774/0.7127, allocations: 10.47 MB / 464.6 MB, free: 103.4 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.97e-06/0.7128, allocations: 4.922 kB / 464.6 MB, free: 103.4 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007479/0.7203, allocations: 4.162 MB / 468.8 MB, free: 101.7 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001114/0.7214, allocations: 0.5354 MB / 469.3 MB, free: 101.4 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006318/0.722, allocations: 39.16 kB / 469.3 MB, free: 101.4 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001436/0.7235, allocations: 85.66 kB / 469.4 MB, free: 101.4 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003521/0.7239, allocations: 146.1 kB / 469.6 MB, free: 101.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001278/0.724, allocations: 50.47 kB / 469.6 MB, free: 101.3 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003216/0.7272, allocations: 1.843 MB / 471.5 MB, free: 100.7 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.7272, allocations: 0 / 471.5 MB, free: 100.7 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002486/0.7297, allocations: 0.6935 MB / 472.2 MB, free: 100.6 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.001061/0.7308, allocations: 452 kB / 472.6 MB, free: 100.3 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004333/0.7352, allocations: 2.83 MB / 475.4 MB, free: 99.09 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.7352, allocations: 0 / 475.4 MB, free: 99.09 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002648/0.7378, allocations: 1.94 MB / 477.4 MB, free: 97.81 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00314/0.741, allocations: 0.5462 MB / 477.9 MB, free: 97.34 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01236/0.7534, allocations: 8.638 MB / 486.6 MB, free: 89 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002524/0.7559, allocations: 2.635 MB / 489.2 MB, free: 86.34 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002066/0.758, allocations: 0.5005 MB / 489.7 MB, free: 85.83 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006463/0.7587, allocations: 163.4 kB / 489.9 MB, free: 85.67 MB / 382.1 MB Notification: Performance of SimCode: time 9.41e-07/0.7587, allocations: 0 / 489.9 MB, free: 85.67 MB / 382.1 MB Notification: Performance of Templates: time 0.0559/0.8146, allocations: 35.77 MB / 0.5133 GB, free: 49.86 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)