Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMS_Characteristics1.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_Characteristics1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMS_Characteristics1") translateModel(HanserModelica.InductionMachines.IMS_Characteristics1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMS_Characteristics1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008711/0.008711, allocations: 100.6 kB / 15.73 MB, free: 6.031 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.523/1.523, allocations: 222.9 MB / 239.4 MB, free: 4.551 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.001607/0.001607, allocations: 196.4 kB / 289.7 MB, free: 2.266 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03409/0.03409, allocations: 8.794 MB / 348.6 MB, free: 4.633 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002275/0.002275, allocations: 79.88 kB / 463.9 MB, free: 13.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1426/0.1449, allocations: 51.55 MB / 0.5034 GB, free: 9.5 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMS_Characteristics1): time 0.3313/0.4762, allocations: 27 MB / 0.5298 GB, free: 4.938 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01994/0.4962, allocations: 8.047 MB / 0.5376 GB, free: 4.84 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00844/0.5047, allocations: 199.7 kB / 0.5378 GB, free: 4.84 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02332/0.5281, allocations: 9.333 MB / 0.5469 GB, free: 3.562 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01721/0.5454, allocations: 3.31 MB / 0.5501 GB, free: 2.656 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009069/0.5544, allocations: 1.803 MB / 0.5519 GB, free: 2.508 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02455/0.579, allocations: 12.15 MB / 0.5638 GB, free: 12.73 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04182/0.6209, allocations: 24.39 MB / 0.5876 GB, free: 9.848 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01837/0.6393, allocations: 6.477 MB / 0.5939 GB, free: 3.508 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01624/0.6556, allocations: 7.168 MB / 0.6009 GB, free: 12.54 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006821/0.6624, allocations: 1.84 MB / 0.6027 GB, free: 10.7 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01126/0.6737, allocations: 2.207 MB / 0.6049 GB, free: 8.504 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.009603/0.6834, allocations: 3.601 MB / 0.6084 GB, free: 4.945 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01979/0.7032, allocations: 6.927 MB / 0.6152 GB, free: 14.04 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04135/0.7446, allocations: 24.72 MB / 0.6393 GB, free: 5.727 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.7446, allocations: 0 / 0.6393 GB, free: 5.727 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.7447, allocations: 0 / 0.6393 GB, free: 5.727 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0008735/0.7455, allocations: 0 / 0.6393 GB, free: 5.727 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: 3035 * Number of variables: 3035 Notification: Performance of Generate backend data structure: time 0.05713/0.8027, allocations: 14.49 MB / 0.6535 GB, free: 7.246 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.301e-05/0.8028, allocations: 8.031 kB / 0.6535 GB, free: 7.238 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04816/0.8509, allocations: 8.484 MB / 0.6617 GB, free: 14.84 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02021/0.8712, allocations: 7.641 MB / 0.6692 GB, free: 7.16 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001055/0.8723, allocations: 0.8049 MB / 0.67 GB, free: 6.367 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006181/0.8785, allocations: 1.061 MB / 0.671 GB, free: 5.32 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05781/0.9363, allocations: 18.29 MB / 0.6889 GB, free: 3.016 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006042/0.937, allocations: 19.88 kB / 0.6889 GB, free: 2.996 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006266/0.9433, allocations: 446.5 kB / 0.6893 GB, free: 2.574 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008065/0.9441, allocations: 0.6711 MB / 0.69 GB, free: 1.902 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04205/0.9862, allocations: 17.53 MB / 0.7071 GB, free: 364 kB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6897/1.676, allocations: 58.05 MB / 0.7638 GB, free: 119.2 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02647/1.703, allocations: 37.48 MB / 0.8004 GB, free: 83.42 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005867/1.708, allocations: 4.1 MB / 0.8044 GB, free: 81.27 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004344/1.709, allocations: 194.9 kB / 0.8046 GB, free: 81.14 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.67e-05/1.709, allocations: 86.44 kB / 0.8047 GB, free: 81.06 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=518): time 6.963e-06/1.709, allocations: 0 / 0.8047 GB, free: 81.06 MB / 0.5138 GB Notification: Performance of matching and sorting (n=524): time 0.04561/1.755, allocations: 21.45 MB / 0.8256 GB, free: 68.47 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.106e-05/1.755, allocations: 103.5 kB / 0.8257 GB, free: 68.36 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006744/1.761, allocations: 4.179 MB / 0.8298 GB, free: 64.15 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.001333/1.763, allocations: 113.7 kB / 0.8299 GB, free: 64.03 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002279/1.765, allocations: 4.508 MB / 0.8343 GB, free: 59.49 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001931/1.767, allocations: 1.776 MB / 0.8361 GB, free: 57.73 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002047/1.769, allocations: 1.347 MB / 0.8374 GB, free: 56.38 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 5.642e-05/1.769, allocations: 316 kB / 0.8377 GB, free: 56.07 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004351/1.774, allocations: 3.449 MB / 0.841 GB, free: 52.62 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005682/1.779, allocations: 5.881 MB / 0.8468 GB, free: 45.64 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01104/1.79, allocations: 10.02 MB / 0.8566 GB, free: 34.45 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.859e-05/1.79, allocations: 20 kB / 0.8566 GB, free: 34.43 MB / 0.5138 GB Notification: Performance of matching and sorting (n=910) (initialization): time 0.0186/1.809, allocations: 10.94 MB / 0.8673 GB, free: 23.4 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 5.788e-05/1.809, allocations: 40 kB / 0.8673 GB, free: 23.36 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001195/1.809, allocations: 79.98 kB / 0.8674 GB, free: 23.29 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003525/1.813, allocations: 1.422 MB / 0.8688 GB, free: 21.86 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005586/1.818, allocations: 1.622 MB / 0.8704 GB, free: 20.24 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01371/1.832, allocations: 11.47 MB / 0.8816 GB, free: 8.633 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005183/1.837, allocations: 407.3 kB / 0.8819 GB, free: 8.234 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001218/1.839, allocations: 340 kB / 0.8823 GB, free: 7.902 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 354 * 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 (840): * Single equations (assignments): 838 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(14,56,40.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006189/1.845, allocations: 4.169 MB / 0.8863 GB, free: 3.719 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00109/1.846, allocations: 470.2 kB / 0.8868 GB, free: 3.254 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01404/1.86, allocations: 8.479 MB / 0.8951 GB, free: 10.67 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01275/1.873, allocations: 7.08 MB / 0.902 GB, free: 3.492 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.812e-05/1.873, allocations: 12 kB / 0.902 GB, free: 3.48 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.64e-05/1.873, allocations: 31.89 kB / 0.902 GB, free: 3.449 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03954/1.913, allocations: 18.76 MB / 0.9203 GB, free: 0.6172 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.367e-05/1.913, allocations: 7.938 kB / 0.9203 GB, free: 0.6094 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004423/1.917, allocations: 0.9324 MB / 0.9213 GB, free: 15.67 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00411/1.921, allocations: 1.285 MB / 0.9225 GB, free: 14.38 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001169/1.922, allocations: 112 kB / 0.9226 GB, free: 14.27 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01564/1.938, allocations: 10.16 MB / 0.9325 GB, free: 3.988 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/1.938, allocations: 4 kB / 0.9325 GB, free: 3.984 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3024/2.24, allocations: 12.27 MB / 0.9445 GB, free: 178.9 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005613/2.246, allocations: 1.16 MB / 0.9457 GB, free: 178.8 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002029/2.248, allocations: 93.72 kB / 0.9457 GB, free: 178.8 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005135/2.253, allocations: 273.5 kB / 0.946 GB, free: 178.8 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001471/2.255, allocations: 346.1 kB / 0.9463 GB, free: 178.8 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004818/2.255, allocations: 147.5 kB / 0.9465 GB, free: 178.8 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.006027/2.261, allocations: 2.822 MB / 0.9492 GB, free: 178.6 MB / 0.5607 GB Notification: Performance of sort global known variables: time 1.363e-06/2.261, allocations: 0 / 0.9492 GB, free: 178.6 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.008651/2.27, allocations: 1.933 MB / 0.9511 GB, free: 178.6 MB / 0.5607 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (ims.rotor.stray.port_p.reference.gamma,speed.phi) * 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 (499): * Single equations (assignments): 497 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(14,56,40.3%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001372/2.271, allocations: 309.3 kB / 0.9514 GB, free: 178.5 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.01571/2.287, allocations: 8.727 MB / 0.9599 GB, free: 176.3 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 6.372e-06/2.287, allocations: 3.938 kB / 0.9599 GB, free: 176.3 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.006597/2.294, allocations: 4.169 MB / 0.964 GB, free: 174.6 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005361/2.299, allocations: 1.124 MB / 0.9651 GB, free: 174.2 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03463/2.334, allocations: 19.18 MB / 0.9838 GB, free: 165.9 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009256/2.343, allocations: 7.003 MB / 0.9907 GB, free: 162.8 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.005927/2.349, allocations: 2.315 MB / 0.9929 GB, free: 161.2 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001414/2.351, allocations: 418.1 kB / 0.9933 GB, free: 160.8 MB / 0.5607 GB Notification: Performance of SimCode: time 9.12e-07/2.351, allocations: 0 / 0.9933 GB, free: 160.8 MB / 0.5607 GB Notification: Performance of Templates: time 0.1121/2.463, allocations: 79.36 MB / 1.071 GB, free: 82.27 MB / 0.5607 GB make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMS_Characteristics1.makefile (rm -f HanserModelica_HanserModelica.InductionMachines.IMS_Characteristics1.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMS_Characteristics1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMS_Characteristics1.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMS_Characteristics1.sim & ./HanserModelica_HanserModelica.InductionMachines.IMS_Characteristics1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMS_Characteristics1.pipe 2>&1)