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.009016/0.009016, allocations: 104.7 kB / 15.74 MB, free: 6.488 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.484/1.484, allocations: 222.9 MB / 239.4 MB, free: 4.543 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.001507/0.001507, allocations: 200.3 kB / 289.7 MB, free: 2.254 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0341/0.0341, allocations: 8.784 MB / 348.6 MB, free: 4.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 79.88 kB / 463.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1248, allocations: 51.56 MB / 0.5034 GB, free: 9.453 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMS_Start): time 0.3673/0.4921, allocations: 45.31 MB / 0.5477 GB, free: 2.652 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0346/0.5268, allocations: 11.79 MB / 0.5592 GB, free: 14.17 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01477/0.5416, allocations: 358.9 kB / 0.5595 GB, free: 14.09 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03424/0.5759, allocations: 12.43 MB / 0.5717 GB, free: 6.184 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02541/0.6014, allocations: 4.907 MB / 0.5764 GB, free: 2.215 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01311/0.6145, allocations: 2.926 MB / 0.5793 GB, free: 15.87 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.03673/0.6512, allocations: 20.94 MB / 0.5998 GB, free: 15.32 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0846/0.7359, allocations: 41.95 MB / 0.6407 GB, free: 5.086 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0272/0.7631, allocations: 10.98 MB / 0.6514 GB, free: 10.08 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02451/0.7877, allocations: 12.02 MB / 0.6632 GB, free: 14.02 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01177/0.7995, allocations: 3.137 MB / 0.6662 GB, free: 10.89 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01965/0.8192, allocations: 3.535 MB / 0.6697 GB, free: 7.352 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01307/0.8323, allocations: 6.247 MB / 0.6758 GB, free: 1.09 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.03412/0.8664, allocations: 11.9 MB / 0.6874 GB, free: 5.141 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.6908/1.557, allocations: 41.42 MB / 0.7279 GB, free: 84.12 MB / 0.5138 GB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/1.557, allocations: 5.266 kB / 0.7279 GB, free: 84.12 MB / 0.5138 GB Notification: Performance of FrontEnd: time 1.503e-06/1.557, allocations: 0 / 0.7279 GB, free: 84.12 MB / 0.5138 GB Notification: Performance of Transformations before backend: time 0.001206/1.559, allocations: 0 / 0.7279 GB, free: 84.12 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.0791/1.638, allocations: 23.88 MB / 0.7512 GB, free: 78.22 MB / 0.5138 GB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/1.638, allocations: 13.23 kB / 0.7512 GB, free: 78.22 MB / 0.5138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05981/1.698, allocations: 11.35 MB / 0.7623 GB, free: 75.5 MB / 0.5138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03268/1.73, allocations: 13.41 MB / 0.7754 GB, free: 70.91 MB / 0.5138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001526/1.732, allocations: 1.365 MB / 0.7767 GB, free: 70.18 MB / 0.5138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01114/1.743, allocations: 1.786 MB / 0.7785 GB, free: 68.41 MB / 0.5138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08015/1.823, allocations: 29.58 MB / 0.8074 GB, free: 38.76 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009141/1.824, allocations: 27.8 kB / 0.8074 GB, free: 38.73 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007884/1.832, allocations: 0.7385 MB / 0.8081 GB, free: 38.01 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008246/1.833, allocations: 0.9866 MB / 0.8091 GB, free: 37.02 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05817/1.891, allocations: 27.3 MB / 0.8357 GB, free: 9.703 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1886/2.08, allocations: 92.91 MB / 0.9265 GB, free: 12.4 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3066/2.386, allocations: 51.96 MB / 0.9772 GB, free: 201.9 MB / 0.6232 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01279/2.399, allocations: 7.299 MB / 0.9843 GB, free: 201.8 MB / 0.6232 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0388/2.438, allocations: 20 MB / 1.004 GB, free: 195.1 MB / 0.6232 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.833e-05/2.438, allocations: 119.1 kB / 1.004 GB, free: 195 MB / 0.6232 GB Notification: Performance of pre-optimization done (n=677): time 8.255e-06/2.438, allocations: 2.594 kB / 1.004 GB, free: 195 MB / 0.6232 GB Notification: Performance of matching and sorting (n=685): time 0.0916/2.53, allocations: 38.13 MB / 1.041 GB, free: 179.3 MB / 0.6232 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.755e-05/2.53, allocations: 150.7 kB / 1.041 GB, free: 179.2 MB / 0.6232 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01129/2.541, allocations: 7.112 MB / 1.048 GB, free: 174.7 MB / 0.6232 GB Notification: Performance of collectPreVariables (initialization): time 0.001639/2.543, allocations: 139.9 kB / 1.048 GB, free: 174.6 MB / 0.6232 GB Notification: Performance of collectInitialEqns (initialization): time 0.004323/2.547, allocations: 7.808 MB / 1.056 GB, free: 167.1 MB / 0.6232 GB Notification: Performance of collectInitialBindings (initialization): time 0.003053/2.55, allocations: 2.323 MB / 1.058 GB, free: 164.8 MB / 0.6232 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004129/2.554, allocations: 1.862 MB / 1.06 GB, free: 162.9 MB / 0.6232 GB Notification: Performance of setup shared object (initialization): time 5.657e-05/2.554, allocations: 301.1 kB / 1.06 GB, free: 162.6 MB / 0.6232 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007712/2.562, allocations: 4.86 MB / 1.065 GB, free: 157.7 MB / 0.6232 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01046/2.573, allocations: 8.34 MB / 1.073 GB, free: 147.8 MB / 0.6232 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01623/2.589, allocations: 13.99 MB / 1.087 GB, free: 132.1 MB / 0.6232 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001066/2.589, allocations: 32 kB / 1.087 GB, free: 132.1 MB / 0.6232 GB Notification: Performance of matching and sorting (n=1235) (initialization): time 0.02595/2.615, allocations: 16.09 MB / 1.103 GB, free: 115.9 MB / 0.6232 GB Notification: Performance of prepare postOptimizeDAE: time 8.051e-05/2.615, allocations: 52 kB / 1.103 GB, free: 115.8 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000132/2.615, allocations: 115.8 kB / 1.103 GB, free: 115.7 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00559/2.621, allocations: 2.571 MB / 1.105 GB, free: 113.1 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007771/2.629, allocations: 2.102 MB / 1.107 GB, free: 111 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02919/2.658, allocations: 30.79 MB / 1.138 GB, free: 79.14 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008785/2.667, allocations: 0.5307 MB / 1.138 GB, free: 78.61 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001846/2.669, allocations: 460 kB / 1.138 GB, free: 78.16 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.01082/2.679, allocations: 6.76 MB / 1.145 GB, free: 71.38 MB / 0.6232 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0016/2.681, allocations: 0.7717 MB / 1.146 GB, free: 70.6 MB / 0.6232 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01775/2.699, allocations: 13.07 MB / 1.159 GB, free: 57.31 MB / 0.6232 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0103/2.709, allocations: 8.212 MB / 1.167 GB, free: 49 MB / 0.6232 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.792e-05/2.709, allocations: 28 kB / 1.167 GB, free: 48.98 MB / 0.6232 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.001e-05/2.709, allocations: 39.8 kB / 1.167 GB, free: 48.94 MB / 0.6232 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04343/2.753, allocations: 27.91 MB / 1.194 GB, free: 20.86 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.225e-05/2.753, allocations: 8 kB / 1.194 GB, free: 20.85 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004274/2.757, allocations: 1.108 MB / 1.195 GB, free: 19.74 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005794/2.763, allocations: 2.634 MB / 1.198 GB, free: 17.07 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007033/2.764, allocations: 152 kB / 1.198 GB, free: 16.92 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3371/3.101, allocations: 35.85 MB / 1.233 GB, free: 199.1 MB / 0.6232 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.62e-06/3.101, allocations: 4.281 kB / 1.233 GB, free: 199.1 MB / 0.6232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03185/3.133, allocations: 18.78 MB / 1.251 GB, free: 194.7 MB / 0.6232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00574/3.138, allocations: 1.765 MB / 1.253 GB, free: 194.1 MB / 0.6232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00227/3.141, allocations: 124.5 kB / 1.253 GB, free: 194 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005086/3.146, allocations: 401.4 kB / 1.253 GB, free: 193.9 MB / 0.6232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001461/3.147, allocations: 0.5235 MB / 1.254 GB, free: 193.9 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004695/3.148, allocations: 194.4 kB / 1.254 GB, free: 193.8 MB / 0.6232 GB Notification: Performance of sorting global known variables: time 0.008162/3.156, allocations: 4.793 MB / 1.259 GB, free: 192.1 MB / 0.6232 GB Notification: Performance of sort global known variables: time 2.11e-07/3.156, allocations: 0 / 1.259 GB, free: 192.1 MB / 0.6232 GB Notification: Performance of remove unused functions: time 0.01188/3.168, allocations: 3.052 MB / 1.262 GB, free: 191.8 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.001529/3.169, allocations: 362.9 kB / 1.262 GB, free: 191.6 MB / 0.6232 GB Notification: Performance of simCode: created initialization part: time 0.02786/3.197, allocations: 13.38 MB / 1.275 GB, free: 185.9 MB / 0.6232 GB Notification: Performance of simCode: created event and clocks part: time 1.457e-05/3.197, allocations: 7.875 kB / 1.275 GB, free: 185.9 MB / 0.6232 GB Notification: Performance of simCode: created simulation system equations: time 0.01623/3.214, allocations: 7.556 MB / 1.282 GB, free: 182.1 MB / 0.6232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01758/3.231, allocations: 2.142 MB / 1.285 GB, free: 181.4 MB / 0.6232 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07897/3.31, allocations: 31.93 MB / 1.316 GB, free: 154.6 MB / 0.6232 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01887/3.329, allocations: 11.35 MB / 1.327 GB, free: 145.9 MB / 0.6232 GB Notification: Performance of simCode: alias equations: time 0.009578/3.339, allocations: 3.284 MB / 1.33 GB, free: 143.7 MB / 0.6232 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00271/3.341, allocations: 0.5677 MB / 1.331 GB, free: 143.1 MB / 0.6232 GB Notification: Performance of SimCode: time 2.725e-06/3.342, allocations: 0 / 1.331 GB, free: 143.1 MB / 0.6232 GB Notification: Performance of Templates: time 0.4927/3.834, allocations: 130.6 MB / 1.458 GB, free: 201.7 MB / 0.6232 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)