Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.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.IMC_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_withLosses") translateModel(HanserModelica.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00138/0.00138, allocations: 109 kB / 16.41 MB, free: 6.469 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.44/1.44, allocations: 222.9 MB / 240.1 MB, free: 4.539 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.001871/0.001871, allocations: 191.8 kB / 290.4 MB, free: 2.258 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0348/0.0348, allocations: 8.8 MB / 349.3 MB, free: 4.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001515/0.001515, allocations: 79.86 kB / 464.6 MB, free: 13.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1249/0.1265, allocations: 51.56 MB / 0.5041 GB, free: 9.5 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_withLosses): time 0.02961/0.1561, allocations: 24.87 MB / 0.5283 GB, free: 0.5195 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.334/0.4902, allocations: 7.985 MB / 0.5361 GB, free: 4.871 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006697/0.4969, allocations: 178.2 kB / 0.5363 GB, free: 4.871 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02011/0.5171, allocations: 8.372 MB / 0.5445 GB, free: 3.965 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01251/0.5297, allocations: 2.99 MB / 0.5474 GB, free: 3.125 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006674/0.5363, allocations: 1.808 MB / 0.5492 GB, free: 2.969 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01837/0.5547, allocations: 11.11 MB / 0.56 GB, free: 14.54 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0407/0.5955, allocations: 23.27 MB / 0.5827 GB, free: 14.21 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01183/0.6074, allocations: 5.92 MB / 0.5885 GB, free: 8.418 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01405/0.6215, allocations: 6.441 MB / 0.5948 GB, free: 2.145 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005691/0.6272, allocations: 1.715 MB / 0.5965 GB, free: 440 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008682/0.6359, allocations: 2.125 MB / 0.5986 GB, free: 14.31 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006267/0.6422, allocations: 3.4 MB / 0.6019 GB, free: 10.95 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01386/0.6561, allocations: 6.35 MB / 0.6081 GB, free: 4.621 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0332/0.6893, allocations: 23.11 MB / 0.6307 GB, free: 13.88 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.787e-06/0.6894, allocations: 4 kB / 0.6307 GB, free: 13.88 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.116e-06/0.6894, allocations: 0 / 0.6307 GB, free: 13.88 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0007949/0.6902, allocations: 0 / 0.6307 GB, free: 13.88 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2685 * Number of variables: 2685 Notification: Performance of Generate backend data structure: time 0.04727/0.7375, allocations: 13.37 MB / 0.6437 GB, free: 0.4922 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.012e-05/0.7375, allocations: 12.03 kB / 0.6437 GB, free: 492 kB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03587/0.7734, allocations: 6.263 MB / 0.6499 GB, free: 10.27 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01818/0.7917, allocations: 7.246 MB / 0.6569 GB, free: 3 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008074/0.7925, allocations: 0.7221 MB / 0.6576 GB, free: 2.289 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005465/0.798, allocations: 0.9436 MB / 0.6586 GB, free: 1.355 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04926/0.8473, allocations: 16.13 MB / 0.6743 GB, free: 1.195 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003897/0.8477, allocations: 15.89 kB / 0.6743 GB, free: 1.18 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004345/0.8521, allocations: 407.2 kB / 0.6747 GB, free: 0.793 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007041/0.8528, allocations: 0.5591 MB / 0.6753 GB, free: 236 kB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03863/0.8914, allocations: 15.11 MB / 0.69 GB, free: 1.105 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6532/1.545, allocations: 52 MB / 0.7408 GB, free: 120.8 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0211/1.566, allocations: 20.1 MB / 0.7604 GB, free: 106.8 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007141/1.573, allocations: 3.636 MB / 0.764 GB, free: 106.7 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005669/1.574, allocations: 178.5 kB / 0.7641 GB, free: 106.6 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.14e-05/1.574, allocations: 84.38 kB / 0.7642 GB, free: 106.6 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=447): time 5.851e-06/1.574, allocations: 0 / 0.7642 GB, free: 106.6 MB / 0.5138 GB Notification: Performance of matching and sorting (n=452): time 0.05152/1.625, allocations: 20.63 MB / 0.7844 GB, free: 101.4 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.757e-05/1.625, allocations: 101.3 kB / 0.7845 GB, free: 101.3 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006844/1.632, allocations: 4.504 MB / 0.7889 GB, free: 99 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.001093/1.633, allocations: 96.77 kB / 0.7889 GB, free: 98.91 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002477/1.636, allocations: 4.193 MB / 0.793 GB, free: 95.27 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.002106/1.638, allocations: 1.538 MB / 0.7945 GB, free: 93.94 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001837/1.64, allocations: 1.193 MB / 0.7957 GB, free: 93.26 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 6.645e-05/1.64, allocations: 301.1 kB / 0.796 GB, free: 92.96 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004113/1.644, allocations: 3.061 MB / 0.799 GB, free: 91.3 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00526/1.649, allocations: 5.213 MB / 0.8041 GB, free: 86.8 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01082/1.66, allocations: 8.87 MB / 0.8127 GB, free: 80.18 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.992e-05/1.66, allocations: 21.12 kB / 0.8128 GB, free: 80.18 MB / 0.5138 GB Notification: Performance of matching and sorting (n=794) (initialization): time 0.0171/1.677, allocations: 9.856 MB / 0.8224 GB, free: 72.04 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 6.573e-05/1.677, allocations: 36 kB / 0.8224 GB, free: 72 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001294/1.677, allocations: 68 kB / 0.8225 GB, free: 71.93 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003394/1.681, allocations: 1.407 MB / 0.8239 GB, free: 70.52 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004941/1.686, allocations: 1.388 MB / 0.8252 GB, free: 69.13 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01415/1.7, allocations: 12.65 MB / 0.8376 GB, free: 56.22 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005219/1.705, allocations: 359.5 kB / 0.8379 GB, free: 55.87 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009595/1.706, allocations: 296 kB / 0.8382 GB, free: 55.58 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 313 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (720): * Single equations (assignments): 717 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (14,54,45.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006784/1.713, allocations: 3.892 MB / 0.842 GB, free: 51.67 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001273/1.714, allocations: 462.3 kB / 0.8424 GB, free: 51.21 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01146/1.726, allocations: 8.51 MB / 0.8507 GB, free: 42.64 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008626/1.734, allocations: 6.248 MB / 0.8568 GB, free: 36.38 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.132e-05/1.735, allocations: 14.19 kB / 0.8569 GB, free: 36.37 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.826e-05/1.735, allocations: 23.91 kB / 0.8569 GB, free: 36.34 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02798/1.763, allocations: 17.4 MB / 0.8739 GB, free: 18.86 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-05/1.763, allocations: 11.98 kB / 0.8739 GB, free: 18.84 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002895/1.766, allocations: 0.8121 MB / 0.8747 GB, free: 18.03 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003095/1.769, allocations: 1.286 MB / 0.8759 GB, free: 16.74 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004906/1.769, allocations: 104 kB / 0.876 GB, free: 16.64 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01271/1.782, allocations: 11.54 MB / 0.8873 GB, free: 4.836 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.364e-06/1.782, allocations: 16 kB / 0.8873 GB, free: 4.82 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01696/1.799, allocations: 11.19 MB / 0.8982 GB, free: 9.488 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003545/1.802, allocations: 1.089 MB / 0.8993 GB, free: 8.375 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001388/1.804, allocations: 91.98 kB / 0.8994 GB, free: 8.285 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003116/1.807, allocations: 239.8 kB / 0.8996 GB, free: 8.051 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008765/1.808, allocations: 327.5 kB / 0.8999 GB, free: 7.73 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003154/1.808, allocations: 140 kB / 0.9001 GB, free: 7.594 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006847/1.815, allocations: 3.107 MB / 0.9031 GB, free: 4.477 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.61e-07/1.815, allocations: 0 / 0.9031 GB, free: 4.477 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00833/1.823, allocations: 1.721 MB / 0.9048 GB, free: 2.762 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * Number of states: 4 (imc.inertiaRotor.w,imc.rotorCage.port_p.reference.gamma,loadInertia.phi,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (417): * Single equations (assignments): 414 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (14,54,43.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001884/1.825, allocations: 0.5432 MB / 0.9053 GB, free: 2.371 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01603/1.841, allocations: 7.972 MB / 0.9131 GB, free: 10.38 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.297e-05/1.841, allocations: 384 / 0.9131 GB, free: 10.38 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.008491/1.85, allocations: 3.954 MB / 0.917 GB, free: 6.398 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007782/1.858, allocations: 1.041 MB / 0.918 GB, free: 5.383 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04354/1.901, allocations: 17.76 MB / 0.9353 GB, free: 3.508 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2951/2.197, allocations: 6.324 MB / 0.9415 GB, free: 175.8 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002313/2.199, allocations: 420.4 kB / 0.9419 GB, free: 175.8 MB / 0.5607 GB Notification: Performance of SimCode: time 8.52e-07/2.199, allocations: 0 / 0.9419 GB, free: 175.8 MB / 0.5607 GB Notification: Performance of Templates: time 0.586/2.785, allocations: 227.8 MB / 1.164 GB, free: 164.9 MB / 0.5607 GB make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.makefile (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.sim & ./HanserModelica_HanserModelica.InductionMachines.IMC_withLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe 2>&1)