Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMS_Start.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/Modelica 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/HanserModelica 2.0.0-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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 Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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(HanserModelica.InductionMachines.IMS_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMS_Start") translateModel(HanserModelica.InductionMachines.IMS_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMS_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001488/0.001488, allocations: 105.5 kB / 16.41 MB, free: 6.461 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.515/1.515, allocations: 222.9 MB / 240.1 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001908/0.001908, allocations: 192.4 kB / 290.4 MB, free: 2.07 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03431/0.03431, allocations: 8.8 MB / 349.3 MB, free: 4.547 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001537/0.001537, allocations: 79.88 kB / 464.6 MB, free: 13.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1271/0.1287, allocations: 51.57 MB / 0.5041 GB, free: 9.504 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMS_Start): time 0.3243/0.453, allocations: 45.32 MB / 0.5483 GB, free: 2.52 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03153/0.4846, allocations: 11.79 MB / 0.5598 GB, free: 14.04 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01421/0.4989, allocations: 354.7 kB / 0.5602 GB, free: 13.97 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03383/0.5328, allocations: 12.34 MB / 0.5722 GB, free: 6.238 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02378/0.5566, allocations: 4.802 MB / 0.5769 GB, free: 2.34 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01285/0.5695, allocations: 2.918 MB / 0.5798 GB, free: 4 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0352/0.6047, allocations: 20.95 MB / 0.6002 GB, free: 15.54 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0877/0.6925, allocations: 41.94 MB / 0.6412 GB, free: 5.332 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02457/0.7171, allocations: 10.98 MB / 0.6519 GB, free: 10.32 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02495/0.7421, allocations: 12.02 MB / 0.6637 GB, free: 14.26 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01161/0.7538, allocations: 3.133 MB / 0.6667 GB, free: 11.13 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01776/0.7716, allocations: 3.546 MB / 0.6702 GB, free: 7.582 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01399/0.7856, allocations: 6.239 MB / 0.6763 GB, free: 1.328 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.03113/0.8168, allocations: 11.9 MB / 0.6879 GB, free: 5.383 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.666/1.483, allocations: 41.43 MB / 0.7283 GB, free: 84.05 MB / 0.5138 GB Notification: Performance of FrontEnd - DAE generated: time 9.538e-06/1.483, allocations: 0 / 0.7283 GB, free: 84.05 MB / 0.5138 GB Notification: Performance of FrontEnd: time 3.697e-06/1.483, allocations: 0.625 kB / 0.7283 GB, free: 84.05 MB / 0.5138 GB Notification: Performance of Transformations before backend: time 0.001362/1.484, allocations: 2.625 kB / 0.7283 GB, free: 84.05 MB / 0.5138 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5030 * Number of variables: 5030 Notification: Performance of Generate backend data structure: time 0.08637/1.571, allocations: 23.89 MB / 0.7517 GB, free: 78.14 MB / 0.5138 GB Notification: Performance of prepare preOptimizeDAE: time 5.257e-05/1.571, allocations: 8.25 kB / 0.7517 GB, free: 78.14 MB / 0.5138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06212/1.633, allocations: 11.35 MB / 0.7628 GB, free: 75.52 MB / 0.5138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03554/1.668, allocations: 13.4 MB / 0.7759 GB, free: 70.8 MB / 0.5138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002631/1.671, allocations: 1.357 MB / 0.7772 GB, free: 70.18 MB / 0.5138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01035/1.682, allocations: 1.797 MB / 0.7789 GB, free: 68.41 MB / 0.5138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08247/1.764, allocations: 29.57 MB / 0.8078 GB, free: 38.75 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0012/1.765, allocations: 27.8 kB / 0.8078 GB, free: 38.73 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009135/1.774, allocations: 0.7368 MB / 0.8086 GB, free: 38.01 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001022/1.776, allocations: 0.9907 MB / 0.8095 GB, free: 37.01 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05942/1.835, allocations: 27.29 MB / 0.8362 GB, free: 9.703 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1883/2.023, allocations: 92.91 MB / 0.9269 GB, free: 12.39 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.36/2.383, allocations: 51.96 MB / 0.9777 GB, free: 201.6 MB / 0.6232 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01314/2.397, allocations: 7.297 MB / 0.9848 GB, free: 201.5 MB / 0.6232 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03853/2.435, allocations: 20.01 MB / 1.004 GB, free: 195.1 MB / 0.6232 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.527e-05/2.435, allocations: 119 kB / 1.004 GB, free: 195 MB / 0.6232 GB Notification: Performance of pre-optimization done (n=677): time 8.275e-06/2.435, allocations: 0 / 1.004 GB, free: 195 MB / 0.6232 GB Notification: Performance of matching and sorting (n=685): time 0.08203/2.517, allocations: 38.13 MB / 1.042 GB, free: 179.3 MB / 0.6232 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.437e-05/2.517, allocations: 156.5 kB / 1.042 GB, free: 179.2 MB / 0.6232 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009791/2.527, allocations: 7.103 MB / 1.049 GB, free: 174.7 MB / 0.6232 GB Notification: Performance of collectPreVariables (initialization): time 0.001273/2.528, allocations: 141.7 kB / 1.049 GB, free: 174.6 MB / 0.6232 GB Notification: Performance of collectInitialEqns (initialization): time 0.003329/2.532, allocations: 7.807 MB / 1.057 GB, free: 167.1 MB / 0.6232 GB Notification: Performance of collectInitialBindings (initialization): time 0.002398/2.534, allocations: 2.323 MB / 1.059 GB, free: 164.8 MB / 0.6232 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00268/2.537, allocations: 1.87 MB / 1.061 GB, free: 162.9 MB / 0.6232 GB Notification: Performance of setup shared object (initialization): time 4.762e-05/2.537, allocations: 303.5 kB / 1.061 GB, free: 162.6 MB / 0.6232 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005834/2.543, allocations: 4.856 MB / 1.066 GB, free: 157.7 MB / 0.6232 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007428/2.55, allocations: 8.34 MB / 1.074 GB, free: 147.8 MB / 0.6232 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01433/2.565, allocations: 13.99 MB / 1.087 GB, free: 132.1 MB / 0.6232 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001127/2.565, allocations: 35.98 kB / 1.087 GB, free: 132.1 MB / 0.6232 GB Notification: Performance of matching and sorting (n=1235) (initialization): time 0.02518/2.59, allocations: 16.08 MB / 1.103 GB, free: 115.9 MB / 0.6232 GB Notification: Performance of prepare postOptimizeDAE: time 7.958e-05/2.59, allocations: 52 kB / 1.103 GB, free: 115.8 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001637/2.59, allocations: 116.1 kB / 1.103 GB, free: 115.7 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005449/2.596, allocations: 2.572 MB / 1.106 GB, free: 113.1 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007398/2.603, allocations: 2.098 MB / 1.108 GB, free: 111 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02828/2.631, allocations: 30.79 MB / 1.138 GB, free: 79.13 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007755/2.639, allocations: 0.5306 MB / 1.138 GB, free: 78.6 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00194/2.641, allocations: 463.9 kB / 1.139 GB, free: 78.14 MB / 0.6232 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 511 * Number of states: 0 () * Number of discrete variables: 12 (booleanStepQS[3].y,booleanStepQS[2].y,booleanStepQS[1].y,rheostatQS.booleanStep[3].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[1].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1089): * Single equations (assignments): 1079 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 8 * 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): 8 systems {(1,1,100.0%), (18,100,38.3%), (1,5,100.0%), (1,1,100.0%), (1,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01124/2.652, allocations: 6.764 MB / 1.146 GB, free: 71.36 MB / 0.6232 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001995/2.655, allocations: 0.7678 MB / 1.146 GB, free: 70.59 MB / 0.6232 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01909/2.674, allocations: 13.07 MB / 1.159 GB, free: 57.3 MB / 0.6232 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01159/2.685, allocations: 8.216 MB / 1.167 GB, free: 48.99 MB / 0.6232 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.164e-05/2.685, allocations: 28 kB / 1.167 GB, free: 48.96 MB / 0.6232 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001184/2.685, allocations: 35.81 kB / 1.167 GB, free: 48.93 MB / 0.6232 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04936/2.735, allocations: 27.93 MB / 1.194 GB, free: 20.84 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.353e-05/2.735, allocations: 0 / 1.194 GB, free: 20.84 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004893/2.74, allocations: 1.108 MB / 1.195 GB, free: 19.73 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006091/2.746, allocations: 2.638 MB / 1.198 GB, free: 17.05 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001285/2.747, allocations: 148 kB / 1.198 GB, free: 16.91 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3284/3.076, allocations: 35.84 MB / 1.233 GB, free: 198.8 MB / 0.6232 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.182e-06/3.076, allocations: 4.062 kB / 1.233 GB, free: 198.8 MB / 0.6232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03621/3.112, allocations: 18.78 MB / 1.252 GB, free: 194.6 MB / 0.6232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006251/3.118, allocations: 1.759 MB / 1.253 GB, free: 194 MB / 0.6232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002737/3.121, allocations: 127.4 kB / 1.253 GB, free: 193.9 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005552/3.127, allocations: 396.5 kB / 1.254 GB, free: 193.9 MB / 0.6232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001716/3.128, allocations: 0.5279 MB / 1.254 GB, free: 193.8 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005182/3.129, allocations: 196.4 kB / 1.254 GB, free: 193.7 MB / 0.6232 GB Notification: Performance of sorting global known variables: time 0.008632/3.138, allocations: 4.791 MB / 1.259 GB, free: 192 MB / 0.6232 GB Notification: Performance of sort global known variables: time 5.01e-07/3.138, allocations: 0 / 1.259 GB, free: 192 MB / 0.6232 GB Notification: Performance of remove unused functions: time 0.01726/3.155, allocations: 3.056 MB / 1.262 GB, free: 191.7 MB / 0.6232 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 11 (ims.inertiaRotor.w,ims.stator.zeroInductor.i0,ims.stator.core.Phi.re,ims.stator.core.Phi.im,ims.rotor.zeroInductor.i0,ims.rotor.core.Phi.re,ims.rotor.core.Phi.im,quadraticLoadTorque.phi,imsQS.inertiaRotor.w,imsQS.rotor.stray.port_p.reference.gamma,quadraticLoadTorqueQS.phi) * Number of discrete variables: 12 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (560): * Single equations (assignments): 548 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(1,1,100.0%), (1,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (1,5,100.0%), (1,8,100.0%), (1,8,100.0%), (2,12,100.0%), (1,1,100.0%), (18,100,41.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002055/3.157, allocations: 362.3 kB / 1.262 GB, free: 191.5 MB / 0.6232 GB Notification: Performance of simCode: created initialization part: time 0.02161/3.179, allocations: 13.37 MB / 1.276 GB, free: 185.8 MB / 0.6232 GB Notification: Performance of simCode: created event and clocks part: time 1.313e-05/3.179, allocations: 5.25 kB / 1.276 GB, free: 185.8 MB / 0.6232 GB Notification: Performance of simCode: created simulation system equations: time 0.01245/3.191, allocations: 7.542 MB / 1.283 GB, free: 182 MB / 0.6232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01346/3.205, allocations: 2.157 MB / 1.285 GB, free: 181.3 MB / 0.6232 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06191/3.267, allocations: 31.43 MB / 1.316 GB, free: 154.9 MB / 0.6232 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01949/3.286, allocations: 10.99 MB / 1.326 GB, free: 146.5 MB / 0.6232 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00318/3.289, allocations: 0.6454 MB / 1.327 GB, free: 145.9 MB / 0.6232 GB Notification: Performance of SimCode: time 1.032e-06/3.289, allocations: 0 / 1.327 GB, free: 145.9 MB / 0.6232 GB Notification: Performance of Templates: time 2.525/5.814, allocations: 1.229 GB / 2.556 GB, free: 59.41 MB / 0.6388 GB make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMS_Start.makefile (rm -f HanserModelica_HanserModelica.InductionMachines.IMS_Start.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMS_Start.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMS_Start.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMS_Start.sim & ./HanserModelica_HanserModelica.InductionMachines.IMS_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMS_Start.pipe 2>&1)