Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.conf.json 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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 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) Running command: translateModel(HanserModelica.InductionMachines.IMC_Steinmetz,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz") translateModel(HanserModelica.InductionMachines.IMC_Steinmetz,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz") [: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 4.0.0+maint.om/package.mo): time 0.003756/0.003756, allocations: 180 kB / 7.453 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.06007/0.06007, allocations: 8.704 MB / 16.57 MB, free: 440 kB / 10.45 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.236/1.236, allocations: 221.4 MB / 240.5 MB, free: 8.238 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009393/0.0009391, allocations: 97.31 kB / 293.5 MB, free: 5.5 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.731e-06/5.891e-06, allocations: 0 / 352.1 MB, free: 10.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2498/0.2498, allocations: 52.55 MB / 404.6 MB, free: 26.8 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3063/0.5562, allocations: 109.4 MB / 0.502 GB, free: 96.25 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002071/0.5564, allocations: 73.38 kB / 0.5021 GB, free: 96.25 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.172/0.7285, allocations: 79.76 MB / 0.58 GB, free: 25.79 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003035/0.7288, allocations: 79.88 kB / 0.58 GB, free: 25.71 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 852 * Number of variables: 852 Notification: Performance of Generate backend data structure: time 0.0093/0.7381, allocations: 3.247 MB / 0.5832 GB, free: 22.39 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.7382, allocations: 8.031 kB / 0.5832 GB, free: 22.38 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004547/0.7428, allocations: 0.745 MB / 0.5839 GB, free: 21.63 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007834/0.7506, allocations: 3.328 MB / 0.5872 GB, free: 18.25 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000156/0.7508, allocations: 104 kB / 0.5873 GB, free: 18.14 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008523/0.7517, allocations: 199.9 kB / 0.5875 GB, free: 17.95 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006215/0.7579, allocations: 3.16 MB / 0.5906 GB, free: 14.79 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007062/0.765, allocations: 3.739 MB / 0.5942 GB, free: 10.93 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.336e-05/0.7651, allocations: 11.84 kB / 0.5942 GB, free: 10.92 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003931/0.7655, allocations: 7.984 kB / 0.5942 GB, free: 10.91 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001042/0.7656, allocations: 150.5 kB / 0.5944 GB, free: 10.76 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02041/0.786, allocations: 13.31 MB / 0.6074 GB, free: 13.09 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001852/0.7879, allocations: 1.124 MB / 0.6085 GB, free: 11.96 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002304/0.7902, allocations: 1.346 MB / 0.6098 GB, free: 10.62 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00623/0.7965, allocations: 3.274 MB / 0.613 GB, free: 7.258 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001505/0.798, allocations: 0.9923 MB / 0.614 GB, free: 6.234 MB / 394.7 MB Notification: Performance of pre-optimization done (n=168): time 4.067e-06/0.798, allocations: 3.938 kB / 0.614 GB, free: 6.23 MB / 394.7 MB Notification: Performance of matching and sorting (n=171): time 0.009639/0.8077, allocations: 4.641 MB / 0.6185 GB, free: 1.477 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001598/0.8079, allocations: 227.6 kB / 0.6187 GB, free: 1.207 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003737/0.8116, allocations: 1.275 MB / 0.62 GB, free: 15.93 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001847/0.8118, allocations: 25.7 kB / 0.62 GB, free: 15.89 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001487/0.8134, allocations: 1.192 MB / 0.6211 GB, free: 14.68 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006175/0.814, allocations: 0.5582 MB / 0.6217 GB, free: 14.12 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001182/0.8141, allocations: 0 / 0.6217 GB, free: 14.12 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.00021/0.8143, allocations: 389.9 kB / 0.6221 GB, free: 13.73 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001256/0.8156, allocations: 0.7421 MB / 0.6228 GB, free: 12.98 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001748/0.8174, allocations: 1.373 MB / 0.6241 GB, free: 11.33 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002037/0.8194, allocations: 1.052 MB / 0.6252 GB, free: 10.28 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.592e-05/0.8194, allocations: 4 kB / 0.6252 GB, free: 10.27 MB / 410.7 MB Notification: Performance of matching and sorting (n=264) (initialization): time 0.005147/0.8246, allocations: 2.653 MB / 0.6278 GB, free: 7.574 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.435e-05/0.8246, allocations: 12.03 kB / 0.6278 GB, free: 7.562 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.266e-05/0.8247, allocations: 23.88 kB / 0.6278 GB, free: 7.539 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001101/0.8258, allocations: 360 kB / 0.6281 GB, free: 7.172 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001735/0.8275, allocations: 435.3 kB / 0.6285 GB, free: 6.746 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007672/0.8352, allocations: 7.287 MB / 0.6357 GB, free: 15 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001932/0.8372, allocations: 63.94 kB / 0.6357 GB, free: 14.93 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000369/0.8376, allocations: 92.48 kB / 0.6358 GB, free: 14.84 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.rmsI[1].mean.y_last,rmsI[1].mean.y_last,$PRE.rmsI[2].mean.y_last,rmsI[2].mean.y_last,$PRE.rmsI[3].mean.y_last,rmsI[3].mean.y_last,booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (233): * Single equations (assignments): 228 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 7,(2,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005912/0.8382, allocations: 164.4 kB / 0.636 GB, free: 14.68 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005288/0.8387, allocations: 189.7 kB / 0.6361 GB, free: 14.49 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005267/0.844, allocations: 2.451 MB / 0.6385 GB, free: 11.97 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-05/0.844, allocations: 20 kB / 0.6386 GB, free: 11.95 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.491e-05/0.8441, allocations: 8 kB / 0.6386 GB, free: 11.94 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.629e-05/0.8441, allocations: 7.969 kB / 0.6386 GB, free: 11.93 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01036/0.8544, allocations: 5.222 MB / 0.6437 GB, free: 6.551 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.056e-05/0.8545, allocations: 4 kB / 0.6437 GB, free: 6.547 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001086/0.8556, allocations: 215.9 kB / 0.6439 GB, free: 6.336 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001571/0.8572, allocations: 0.5162 MB / 0.6444 GB, free: 5.801 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001325/0.8573, allocations: 27.97 kB / 0.6444 GB, free: 5.773 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01249/0.8698, allocations: 11.37 MB / 0.6555 GB, free: 9.711 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.332e-06/0.8699, allocations: 3.938 kB / 0.6555 GB, free: 9.707 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00684/0.8767, allocations: 3.581 MB / 0.659 GB, free: 5.992 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001303/0.8781, allocations: 438.6 kB / 0.6594 GB, free: 5.543 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006301/0.8787, allocations: 19.98 kB / 0.6595 GB, free: 5.523 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001302/0.8801, allocations: 47.95 kB / 0.6595 GB, free: 5.477 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002306/0.8803, allocations: 89.17 kB / 0.6596 GB, free: 5.391 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001156/0.8804, allocations: 47.98 kB / 0.6596 GB, free: 5.344 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.002009/0.8824, allocations: 0.9412 MB / 0.6606 GB, free: 4.406 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003248/0.8857, allocations: 0.5624 MB / 0.6611 GB, free: 3.844 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 (imc.inertiaRotor.w,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.zeroInductor.i0,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi,cRun.v,cStart.v,rmsI[1].mean.x,rmsI[2].mean.x,rmsI[3].mean.x) * Number of discrete variables: 8 ($whenCondition3,$whenCondition2,$whenCondition1,booleanStep.y,greaterThreshold.y,rmsI[1].mean.y_last,rmsI[2].mean.y_last,rmsI[3].mean.y_last) * Number of discrete states: 3 (rmsI[3].mean.x,rmsI[2].mean.x,rmsI[1].mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (120): * Single equations (assignments): 111 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 13,(1,100.0%) 1,(1,100.0%) 7,(2,100.0%) 8,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007031/0.8864, allocations: 347.2 kB / 0.6614 GB, free: 3.496 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004491/0.8909, allocations: 2.42 MB / 0.6638 GB, free: 1.02 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.703e-06/0.891, allocations: 0 / 0.6638 GB, free: 1.02 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1901/1.081, allocations: 1.631 MB / 0.6654 GB, free: 119.6 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002305/1.083, allocations: 375 kB / 0.6657 GB, free: 119.6 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009121/1.093, allocations: 4.94 MB / 0.6706 GB, free: 118.6 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002135/1.095, allocations: 2.52 MB / 0.673 GB, free: 117.9 MB / 442.7 MB Notification: Performance of SimCode: time 1.242e-06/1.095, allocations: 0 / 0.673 GB, free: 117.9 MB / 442.7 MB Notification: Performance of Templates: time 0.04929/1.144, allocations: 29.27 MB / 0.7016 GB, free: 116.6 MB / 442.7 MB make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.makefile (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.sim & ./HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe 2>&1)