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.01084/0.01084, allocations: 100.7 kB / 15.73 MB, free: 6.039 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.505/1.505, allocations: 222.9 MB / 239.4 MB, free: 4.527 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.001683/0.001683, allocations: 200.4 kB / 289.7 MB, free: 2.234 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03604/0.03604, allocations: 8.787 MB / 348.6 MB, free: 4.59 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001621/0.001621, allocations: 75.88 kB / 463.9 MB, free: 13.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1437/0.1453, allocations: 51.55 MB / 0.5034 GB, free: 9.555 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMS_Start): time 0.378/0.5233, allocations: 45.32 MB / 0.5477 GB, free: 2.625 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03387/0.5572, allocations: 11.79 MB / 0.5592 GB, free: 14.14 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0157/0.573, allocations: 350.8 kB / 0.5595 GB, free: 14.07 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03662/0.6096, allocations: 12.35 MB / 0.5716 GB, free: 6.277 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02745/0.6371, allocations: 4.804 MB / 0.5763 GB, free: 2.375 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01294/0.6501, allocations: 2.915 MB / 0.5791 GB, free: 44 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.03841/0.6885, allocations: 20.94 MB / 0.5996 GB, free: 15.59 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.08732/0.7759, allocations: 41.95 MB / 0.6405 GB, free: 5.367 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02812/0.804, allocations: 10.98 MB / 0.6512 GB, free: 10.36 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02533/0.8294, allocations: 12.02 MB / 0.663 GB, free: 14.3 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01195/0.8414, allocations: 3.133 MB / 0.666 GB, free: 11.16 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01739/0.8588, allocations: 3.546 MB / 0.6695 GB, free: 7.617 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01866/0.8775, allocations: 6.243 MB / 0.6756 GB, free: 1.359 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02942/0.907, allocations: 11.9 MB / 0.6872 GB, free: 5.41 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.6436/1.551, allocations: 41.42 MB / 0.7277 GB, free: 84.04 MB / 0.5138 GB Notification: Performance of FrontEnd - DAE generated: time 8.776e-06/1.551, allocations: 3.25 kB / 0.7277 GB, free: 84.04 MB / 0.5138 GB Notification: Performance of FrontEnd: time 1.953e-06/1.551, allocations: 0.625 kB / 0.7277 GB, free: 84.04 MB / 0.5138 GB Notification: Performance of Transformations before backend: time 0.001124/1.552, allocations: 0 / 0.7277 GB, free: 84.04 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.08386/1.636, allocations: 23.89 MB / 0.751 GB, free: 78.14 MB / 0.5138 GB Notification: Performance of prepare preOptimizeDAE: time 5.001e-05/1.636, allocations: 9.094 kB / 0.751 GB, free: 78.14 MB / 0.5138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06435/1.7, allocations: 11.34 MB / 0.7621 GB, free: 75.55 MB / 0.5138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03525/1.735, allocations: 13.4 MB / 0.7752 GB, free: 70.89 MB / 0.5138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002099/1.738, allocations: 1.372 MB / 0.7765 GB, free: 70.27 MB / 0.5138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0103/1.748, allocations: 1.792 MB / 0.7783 GB, free: 68.49 MB / 0.5138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08603/1.834, allocations: 29.58 MB / 0.8072 GB, free: 38.84 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008767/1.835, allocations: 23.36 kB / 0.8072 GB, free: 38.82 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007902/1.843, allocations: 0.7441 MB / 0.8079 GB, free: 38.09 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008637/1.844, allocations: 0.9907 MB / 0.8089 GB, free: 37.09 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05511/1.899, allocations: 27.29 MB / 0.8355 GB, free: 9.785 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1846/2.083, allocations: 92.91 MB / 0.9263 GB, free: 12.46 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3188/2.402, allocations: 51.96 MB / 0.977 GB, free: 201.8 MB / 0.6232 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02098/2.423, allocations: 7.293 MB / 0.9841 GB, free: 201.7 MB / 0.6232 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0413/2.465, allocations: 20.01 MB / 1.004 GB, free: 195.2 MB / 0.6232 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.286e-05/2.465, allocations: 117.8 kB / 1.004 GB, free: 195.1 MB / 0.6232 GB Notification: Performance of pre-optimization done (n=677): time 8.946e-06/2.465, allocations: 0 / 1.004 GB, free: 195.1 MB / 0.6232 GB Notification: Performance of matching and sorting (n=685): time 0.0848/2.55, allocations: 38.13 MB / 1.041 GB, free: 179.5 MB / 0.6232 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.982e-05/2.55, allocations: 149.5 kB / 1.041 GB, free: 179.4 MB / 0.6232 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01111/2.561, allocations: 7.111 MB / 1.048 GB, free: 174.9 MB / 0.6232 GB Notification: Performance of collectPreVariables (initialization): time 0.001173/2.562, allocations: 137.7 kB / 1.048 GB, free: 174.8 MB / 0.6232 GB Notification: Performance of collectInitialEqns (initialization): time 0.003281/2.565, allocations: 7.807 MB / 1.056 GB, free: 167.2 MB / 0.6232 GB Notification: Performance of collectInitialBindings (initialization): time 0.001961/2.567, allocations: 2.324 MB / 1.058 GB, free: 164.9 MB / 0.6232 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002618/2.57, allocations: 1.87 MB / 1.06 GB, free: 163 MB / 0.6232 GB Notification: Performance of setup shared object (initialization): time 3.948e-05/2.57, allocations: 305.1 kB / 1.06 GB, free: 162.7 MB / 0.6232 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006045/2.576, allocations: 4.852 MB / 1.065 GB, free: 157.8 MB / 0.6232 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007623/2.584, allocations: 8.344 MB / 1.073 GB, free: 147.9 MB / 0.6232 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01366/2.597, allocations: 13.99 MB / 1.087 GB, free: 132.3 MB / 0.6232 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.144e-05/2.597, allocations: 32 kB / 1.087 GB, free: 132.2 MB / 0.6232 GB Notification: Performance of matching and sorting (n=1235) (initialization): time 0.02522/2.623, allocations: 16.08 MB / 1.103 GB, free: 116 MB / 0.6232 GB Notification: Performance of prepare postOptimizeDAE: time 7.443e-05/2.623, allocations: 52 kB / 1.103 GB, free: 115.9 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001437/2.623, allocations: 112.8 kB / 1.103 GB, free: 115.8 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005711/2.629, allocations: 2.578 MB / 1.105 GB, free: 113.2 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00768/2.636, allocations: 2.106 MB / 1.107 GB, free: 111.1 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02856/2.665, allocations: 30.78 MB / 1.137 GB, free: 79.25 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008453/2.673, allocations: 0.5306 MB / 1.138 GB, free: 78.71 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001923/2.675, allocations: 456 kB / 1.138 GB, free: 78.27 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.01391/2.689, allocations: 6.772 MB / 1.145 GB, free: 71.48 MB / 0.6232 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001964/2.691, allocations: 0.7678 MB / 1.146 GB, free: 70.7 MB / 0.6232 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02061/2.712, allocations: 13.06 MB / 1.158 GB, free: 57.43 MB / 0.6232 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01123/2.723, allocations: 8.216 MB / 1.166 GB, free: 49.11 MB / 0.6232 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.589e-05/2.723, allocations: 24 kB / 1.166 GB, free: 49.09 MB / 0.6232 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.322e-05/2.723, allocations: 39.8 kB / 1.166 GB, free: 49.05 MB / 0.6232 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04796/2.771, allocations: 27.93 MB / 1.194 GB, free: 20.96 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.442e-05/2.771, allocations: 4 kB / 1.194 GB, free: 20.96 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004472/2.776, allocations: 1.108 MB / 1.195 GB, free: 19.85 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005831/2.782, allocations: 2.633 MB / 1.197 GB, free: 17.18 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007068/2.782, allocations: 152 kB / 1.198 GB, free: 17.03 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2846/3.067, allocations: 35.85 MB / 1.233 GB, free: 199 MB / 0.6232 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.111e-06/3.067, allocations: 6.375 kB / 1.233 GB, free: 199 MB / 0.6232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03151/3.099, allocations: 18.78 MB / 1.251 GB, free: 194.8 MB / 0.6232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005099/3.104, allocations: 1.763 MB / 1.253 GB, free: 194.2 MB / 0.6232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00265/3.106, allocations: 127.6 kB / 1.253 GB, free: 194.1 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005577/3.112, allocations: 393.1 kB / 1.253 GB, free: 194.1 MB / 0.6232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001409/3.113, allocations: 0.5297 MB / 1.254 GB, free: 194 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000453/3.114, allocations: 192.8 kB / 1.254 GB, free: 193.9 MB / 0.6232 GB Notification: Performance of sorting global known variables: time 0.008047/3.122, allocations: 4.791 MB / 1.258 GB, free: 192.2 MB / 0.6232 GB Notification: Performance of sort global known variables: time 3.51e-07/3.122, allocations: 6.969 kB / 1.258 GB, free: 192.2 MB / 0.6232 GB Notification: Performance of remove unused functions: time 0.01601/3.138, allocations: 3.047 MB / 1.261 GB, free: 191.9 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.002045/3.14, allocations: 364.2 kB / 1.262 GB, free: 191.7 MB / 0.6232 GB Notification: Performance of simCode: created initialization part: time 0.02028/3.16, allocations: 13.38 MB / 1.275 GB, free: 186 MB / 0.6232 GB Notification: Performance of simCode: created event and clocks part: time 1.057e-05/3.16, allocations: 3.812 kB / 1.275 GB, free: 186 MB / 0.6232 GB Notification: Performance of simCode: created simulation system equations: time 0.01122/3.172, allocations: 7.555 MB / 1.282 GB, free: 182.2 MB / 0.6232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01309/3.185, allocations: 2.151 MB / 1.284 GB, free: 181.5 MB / 0.6232 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06347/3.248, allocations: 31.92 MB / 1.316 GB, free: 154.8 MB / 0.6232 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02087/3.269, allocations: 11.35 MB / 1.327 GB, free: 146.1 MB / 0.6232 GB Notification: Performance of simCode: alias equations: time 0.01172/3.281, allocations: 3.282 MB / 1.33 GB, free: 143.9 MB / 0.6232 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00346/3.285, allocations: 0.5637 MB / 1.33 GB, free: 143.3 MB / 0.6232 GB Notification: Performance of SimCode: time 2.034e-06/3.285, allocations: 4 kB / 1.33 GB, free: 143.3 MB / 0.6232 GB Notification: Performance of Templates: time 0.4808/3.765, allocations: 131.4 MB / 1.459 GB, free: 193.1 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)