Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.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_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008687/0.0008686, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.009037/0.009038, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.396/1.396, allocations: 205.4 MB / 222.4 MB, free: 5.57 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.0004128/0.0004129, allocations: 8 kB / 279.5 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2217/0.2221, allocations: 47.58 MB / 327 MB, free: 1.402 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter): time 0.01181/0.234, allocations: 12 MB / 339 MB, free: 7.332 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007968/0.242, allocations: 4.173 MB / 343.2 MB, free: 3.148 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001684/0.2437, allocations: 67.69 kB / 343.3 MB, free: 3.082 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002197/0.2459, allocations: 0.8396 MB / 344.1 MB, free: 2.238 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003403/0.2494, allocations: 1.142 MB / 345.3 MB, free: 1.09 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001739/0.2511, allocations: 0.7836 MB / 346 MB, free: 312 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.005337/0.2564, allocations: 4.149 MB / 350.2 MB, free: 12.14 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003502/0.26, allocations: 2.623 MB / 352.8 MB, free: 9.445 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002221/0.2622, allocations: 1.268 MB / 354.1 MB, free: 8.172 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00302/0.2652, allocations: 1.657 MB / 355.7 MB, free: 6.508 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008858/0.2661, allocations: 204 kB / 355.9 MB, free: 6.309 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002113/0.2683, allocations: 407.7 kB / 356.3 MB, free: 5.91 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008241/0.2691, allocations: 0.7549 MB / 357.1 MB, free: 5.152 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002001/0.2711, allocations: 1.712 MB / 358.8 MB, free: 3.426 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005846/0.277, allocations: 6.163 MB / 365 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/0.277, allocations: 0 / 365 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.175e-06/0.277, allocations: 0 / 365 MB, free: 13.24 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000148/0.2772, allocations: 4 kB / 365 MB, free: 13.23 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: 822 * Number of variables: 822 Notification: Performance of Generate backend data structure: time 0.009475/0.2866, allocations: 3.637 MB / 368.6 MB, free: 9.531 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.702e-05/0.2867, allocations: 8.031 kB / 368.6 MB, free: 9.523 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004564/0.2913, allocations: 0.8125 MB / 369.4 MB, free: 8.707 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004253/0.2956, allocations: 2.173 MB / 371.6 MB, free: 6.477 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001765/0.2958, allocations: 230.6 kB / 371.8 MB, free: 6.25 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005707/0.2963, allocations: 315.8 kB / 372.1 MB, free: 5.941 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007884/0.3042, allocations: 4.234 MB / 376.4 MB, free: 1.652 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.768e-05/0.3043, allocations: 0 / 376.4 MB, free: 1.652 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002951/0.3046, allocations: 132 kB / 376.5 MB, free: 1.523 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001424/0.3048, allocations: 150.3 kB / 376.6 MB, free: 1.375 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006187/0.311, allocations: 3.616 MB / 380.3 MB, free: 13.75 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0197/0.3307, allocations: 13.25 MB / 393.5 MB, free: 176 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00692/0.3377, allocations: 6.907 MB / 400.4 MB, free: 8.359 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00226/0.34, allocations: 1.39 MB / 401.8 MB, free: 6.969 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006127/0.3461, allocations: 3.731 MB / 405.5 MB, free: 3.145 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.171e-05/0.3462, allocations: 43.56 kB / 405.6 MB, free: 3.094 MB / 334.1 MB Notification: Performance of pre-optimization done (n=119): time 5.07e-06/0.3462, allocations: 4 kB / 405.6 MB, free: 3.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=122): time 0.01047/0.3567, allocations: 5.427 MB / 411 MB, free: 13.46 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.356e-05/0.3567, allocations: 64.41 kB / 411.1 MB, free: 13.39 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00241/0.3592, allocations: 1.705 MB / 412.8 MB, free: 11.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001034/0.3593, allocations: 45.7 kB / 412.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009107/0.3602, allocations: 1.403 MB / 414.2 MB, free: 10.2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003086/0.3605, allocations: 433.7 kB / 414.6 MB, free: 9.773 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000172/0.3607, allocations: 129.7 kB / 414.8 MB, free: 9.641 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.622e-05/0.3608, allocations: 305.1 kB / 415.1 MB, free: 9.34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001078/0.3619, allocations: 0.652 MB / 415.7 MB, free: 8.691 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001375/0.3633, allocations: 1.118 MB / 416.8 MB, free: 7.367 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002542/0.3658, allocations: 1.895 MB / 418.7 MB, free: 5.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.887e-06/0.3658, allocations: 8 kB / 418.7 MB, free: 5.262 MB / 350.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003799/0.3697, allocations: 2.339 MB / 421.1 MB, free: 2.883 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.656e-05/0.3697, allocations: 8 kB / 421.1 MB, free: 2.875 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.549e-05/0.3697, allocations: 16 kB / 421.1 MB, free: 2.859 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006734/0.3704, allocations: 271.3 kB / 421.4 MB, free: 2.582 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001318/0.3717, allocations: 359.5 kB / 421.7 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005783/0.3775, allocations: 5.698 MB / 427.4 MB, free: 12.13 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002053/0.3796, allocations: 71.95 kB / 427.5 MB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001987/0.3798, allocations: 75.94 kB / 427.6 MB, free: 11.98 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * 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 (180): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,5,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003119/0.383, allocations: 0.9971 MB / 428.6 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005878/0.3836, allocations: 185.7 kB / 428.7 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005963/0.3895, allocations: 2.142 MB / 430.9 MB, free: 8.586 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.945e-05/0.3896, allocations: 12 kB / 430.9 MB, free: 8.574 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.564e-05/0.3896, allocations: 4 kB / 430.9 MB, free: 8.57 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.293e-05/0.3896, allocations: 7.969 kB / 430.9 MB, free: 8.562 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01232/0.402, allocations: 4.839 MB / 435.7 MB, free: 3.586 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.458e-06/0.402, allocations: 0 / 435.7 MB, free: 3.586 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001405/0.4035, allocations: 171.8 kB / 435.9 MB, free: 3.418 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002243/0.4057, allocations: 452.1 kB / 436.4 MB, free: 2.961 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001588/0.4059, allocations: 43.98 kB / 436.4 MB, free: 2.918 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01784/0.4238, allocations: 10.09 MB / 446.5 MB, free: 8.156 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.249e-06/0.4238, allocations: 0 / 446.5 MB, free: 8.156 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009227/0.433, allocations: 3.019 MB / 449.5 MB, free: 5.043 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001479/0.4346, allocations: 410.7 kB / 449.9 MB, free: 4.621 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005491/0.4351, allocations: 32 kB / 449.9 MB, free: 4.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001765/0.4369, allocations: 75.94 kB / 450 MB, free: 4.516 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004091/0.4374, allocations: 96.73 kB / 450.1 MB, free: 4.422 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001522/0.4375, allocations: 36.19 kB / 450.1 MB, free: 4.387 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00351/0.4411, allocations: 1.174 MB / 451.3 MB, free: 3.219 MB / 382.1 MB Notification: Performance of sort global known variables: time 7.41e-07/0.4411, allocations: 3.938 kB / 451.3 MB, free: 3.215 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003578/0.4447, allocations: 0.539 MB / 451.9 MB, free: 2.676 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 7 (aimc.inertiaRotor.w,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,vfController.x,loadInertia.phi) * 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 (86): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,5,100.0%), (1,1,100.0%), (1,13,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005307/0.4452, allocations: 159.4 kB / 452 MB, free: 2.508 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006299/0.4516, allocations: 2.096 MB / 454.1 MB, free: 364 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.4516, allocations: 0 / 454.1 MB, free: 364 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1964/0.648, allocations: 1.528 MB / 455.6 MB, free: 110.2 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00347/0.6515, allocations: 493.7 kB / 456.1 MB, free: 110.2 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008901/0.6605, allocations: 6.967 MB / 463.1 MB, free: 106.9 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001544/0.662, allocations: 2.283 MB / 465.4 MB, free: 105.9 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001291/0.6633, allocations: 382.8 kB / 465.7 MB, free: 105.8 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002766/0.6636, allocations: 126.3 kB / 465.9 MB, free: 105.8 MB / 382.1 MB Notification: Performance of SimCode: time 7.32e-07/0.6636, allocations: 0 / 465.9 MB, free: 105.8 MB / 382.1 MB Notification: Performance of Templates: time 0.03839/0.702, allocations: 26.12 MB / 492 MB, free: 83.42 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe 2>&1)