Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase,tolerance=1e-05,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase,tolerance=1e-05,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.003065/0.003065, allocations: 177 kB / 7.445 MB, free: 2.32 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.244/1.244, allocations: 170.6 MB / 178.4 MB, free: 15.44 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001952/0.001953, allocations: 120.4 kB / 217.7 MB, free: 8.215 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.791e-06/5.811e-06, allocations: 0 / 261.8 MB, free: 26.64 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08195/0.08198, allocations: 38.76 MB / 300.5 MB, free: 3.883 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2853/0.3673, allocations: 101 MB / 401.5 MB, free: 344 kB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002474/0.3676, allocations: 83.39 kB / 401.6 MB, free: 300 kB / 282.7 MB Notification: Performance of FrontEnd: time 0.9233/1.291, allocations: 208 MB / 0.5953 GB, free: 15.59 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.001968/1.293, allocations: 241.3 kB / 0.5955 GB, free: 15.57 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2497 * Number of variables: 2497 Notification: Performance of Generate backend data structure: time 0.04776/1.341, allocations: 9.217 MB / 0.6046 GB, free: 12.66 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.705e-05/1.341, allocations: 9.094 kB / 0.6046 GB, free: 12.66 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01409/1.355, allocations: 1.519 MB / 0.606 GB, free: 12.08 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03331/1.388, allocations: 7.583 MB / 0.6134 GB, free: 10.9 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001034/1.389, allocations: 308.8 kB / 0.6137 GB, free: 10.9 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004734/1.394, allocations: 0.5551 MB / 0.6143 GB, free: 10.89 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03638/1.431, allocations: 9.742 MB / 0.6238 GB, free: 10.85 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05191/1.482, allocations: 11.51 MB / 0.635 GB, free: 9.785 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00108/1.484, allocations: 14.12 kB / 0.6351 GB, free: 9.781 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006656/1.49, allocations: 12.94 kB / 0.6351 GB, free: 9.777 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006789/1.491, allocations: 402.2 kB / 0.6354 GB, free: 9.758 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09972/1.591, allocations: 39.01 MB / 0.6735 GB, free: 14.43 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005573/1.596, allocations: 2.877 MB / 0.6763 GB, free: 13.32 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009033/1.605, allocations: 4.385 MB / 0.6806 GB, free: 11.79 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005978/1.606, allocations: 48.91 kB / 0.6807 GB, free: 11.79 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001639/1.606, allocations: 84.67 kB / 0.6808 GB, free: 11.71 MB / 362.7 MB Notification: Performance of pre-optimization done (n=431): time 2.119e-05/1.606, allocations: 0 / 0.6808 GB, free: 11.71 MB / 362.7 MB Notification: Performance of matching and sorting (n=439): time 0.04903/1.655, allocations: 13.48 MB / 0.6939 GB, free: 5.488 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.015e-05/1.656, allocations: 96.48 kB / 0.694 GB, free: 5.422 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01504/1.671, allocations: 3.774 MB / 0.6977 GB, free: 4.008 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001384/1.672, allocations: 25.7 kB / 0.6977 GB, free: 3.977 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003905/1.676, allocations: 3.253 MB / 0.7009 GB, free: 1.176 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003205/1.679, allocations: 1.397 MB / 0.7023 GB, free: 15.89 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004671/1.68, allocations: 8 kB / 0.7023 GB, free: 15.89 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0005116/1.68, allocations: 491.9 kB / 0.7027 GB, free: 15.45 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005815/1.686, allocations: 2.251 MB / 0.7049 GB, free: 13.43 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007527/1.694, allocations: 3.279 MB / 0.7081 GB, free: 10.04 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008463/1.702, allocations: 2.804 MB / 0.7109 GB, free: 7.656 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.493e-05/1.702, allocations: 8 kB / 0.7109 GB, free: 7.648 MB / 378.7 MB Notification: Performance of matching and sorting (n=600) (initialization): time 0.02326/1.726, allocations: 7.389 MB / 0.7181 GB, free: 1.195 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.699e-05/1.726, allocations: 8 kB / 0.7181 GB, free: 1.188 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.14e-05/1.726, allocations: 31.56 kB / 0.7181 GB, free: 1.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006129/1.732, allocations: 1.508 MB / 0.7196 GB, free: 15.91 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00759/1.739, allocations: 0.9678 MB / 0.7206 GB, free: 15.14 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3298/2.069, allocations: 25.54 MB / 0.7455 GB, free: 71.83 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00755/2.077, allocations: 119.5 kB / 0.7456 GB, free: 71.83 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001478/2.078, allocations: 179.4 kB / 0.7458 GB, free: 71.83 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 136 * Number of states: 0 () * Number of discrete variables: 16 (rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[4].y,rheostatM.booleanStep[5].y,rheostat3.booleanStep[1].y,rheostat3.booleanStep[2].y,rheostat3.booleanStep[3].y,booleanStepM[1].y,booleanStepM[2].y,booleanStepM[3].y,booleanStepM[4].y,booleanStepM[5].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (509): * Single equations (assignments): 493 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 14 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 14 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1,(4,68.8%) 25,(2,100.0%) 6,(2,100.0%) 6,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001388/2.08, allocations: 227.3 kB / 0.746 GB, free: 71.72 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002281/2.082, allocations: 0.5123 MB / 0.7465 GB, free: 71.72 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01881/2.101, allocations: 7.416 MB / 0.7537 GB, free: 71.05 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.116e-05/2.101, allocations: 43.06 kB / 0.7538 GB, free: 71.05 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.218e-05/2.101, allocations: 27.91 kB / 0.7538 GB, free: 71.05 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-05/2.101, allocations: 20.86 kB / 0.7538 GB, free: 71.05 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04762/2.149, allocations: 15.91 MB / 0.7694 GB, free: 69.72 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.247e-05/2.149, allocations: 10.22 kB / 0.7694 GB, free: 69.72 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003519/2.153, allocations: 460 kB / 0.7698 GB, free: 69.72 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008499/2.161, allocations: 2.248 MB / 0.772 GB, free: 69.61 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001547/2.163, allocations: 33.62 kB / 0.7721 GB, free: 69.61 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04546/2.208, allocations: 32.44 MB / 0.8037 GB, free: 53.7 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.617e-05/2.208, allocations: 13.69 kB / 0.8037 GB, free: 53.7 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02425/2.232, allocations: 12.1 MB / 0.8156 GB, free: 51.44 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005207/2.238, allocations: 1.128 MB / 0.8167 GB, free: 51.08 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002425/2.24, allocations: 34.41 kB / 0.8167 GB, free: 51.07 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006002/2.246, allocations: 175.1 kB / 0.8169 GB, free: 51.07 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001138/2.247, allocations: 296.6 kB / 0.8171 GB, free: 51.07 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004837/2.248, allocations: 122.5 kB / 0.8173 GB, free: 51.07 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.00895/2.257, allocations: 2.838 MB / 0.82 GB, free: 50.89 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.01351/2.27, allocations: 1.581 MB / 0.8216 GB, free: 50.89 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 14 (aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.rotor.zeroInductor.i0,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aims3.stator.core.Phi.re,aims3.stator.core.Phi.im,aims3.rotor.zeroInductor.i0,aims3.rotor.core.Phi.re,aims3.rotor.core.Phi.im,loadInertiaM.w,loadInertia3.w,quadraticLoadTorqueM.phi,quadraticLoadTorque3.phi) * Number of discrete variables: 16 (rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[4].y,rheostatM.booleanStep[5].y,rheostat3.booleanStep[1].y,rheostat3.booleanStep[2].y,rheostat3.booleanStep[3].y,booleanStepM[1].y,booleanStepM[2].y,booleanStepM[3].y,booleanStepM[4].y,booleanStepM[5].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (255): * Single equations (assignments): 242 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 13 {(1,100.0%) 5,(6,72.2%) 46,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(11,54.5%) 56,(1,100.0%) 8,(1,100.0%) 8,(2,100.0%) 12,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002436/2.273, allocations: 476.5 kB / 0.822 GB, free: 50.79 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01709/2.29, allocations: 7.267 MB / 0.8291 GB, free: 48.73 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.35e-05/2.29, allocations: 6.438 kB / 0.8291 GB, free: 48.73 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01115/2.301, allocations: 5.401 MB / 0.8344 GB, free: 46.04 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01002/2.311, allocations: 1.118 MB / 0.8355 GB, free: 45.78 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05014/2.362, allocations: 14.84 MB / 0.85 GB, free: 40.35 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01269/2.374, allocations: 6.534 MB / 0.8564 GB, free: 38.28 MB / 394.7 MB Notification: Performance of SimCode: time 1.352e-06/2.374, allocations: 0 / 0.8564 GB, free: 38.28 MB / 394.7 MB Notification: Performance of Templates: time 0.4143/2.789, allocations: 80.98 MB / 0.9355 GB, free: 68.65 MB / 394.7 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe 2>&1)