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.001033/0.001032, allocations: 107.4 kB / 15.23 MB, free: 0.6406 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.257/1.257, allocations: 222.9 MB / 238.9 MB, free: 4.84 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.001252/0.001252, allocations: 200.2 kB / 289.1 MB, free: 2.57 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03237/0.03237, allocations: 8.785 MB / 348.1 MB, free: 4.98 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001342/0.001342, allocations: 72.56 kB / 410.4 MB, free: 42.49 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08772/0.08908, allocations: 51.56 MB / 462 MB, free: 15.06 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMS_Characteristics1): time 0.02293/0.112, allocations: 26.53 MB / 488.5 MB, free: 4.395 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01639/0.1285, allocations: 7.977 MB / 496.5 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006193/0.1347, allocations: 199.4 kB / 496.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01914/0.1539, allocations: 8.824 MB / 0.4936 GB, free: 3.359 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01062/0.1645, allocations: 3.055 MB / 0.4966 GB, free: 304 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004995/0.1695, allocations: 1.691 MB / 0.4983 GB, free: 14.62 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01458/0.1841, allocations: 12.22 MB / 0.5102 GB, free: 2.352 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2283/0.4125, allocations: 20.23 MB / 0.53 GB, free: 16.04 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008189/0.4207, allocations: 5.602 MB / 0.5354 GB, free: 15.61 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01139/0.4322, allocations: 6.855 MB / 0.5421 GB, free: 14.5 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005424/0.4376, allocations: 1.217 MB / 0.5433 GB, free: 14.5 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007877/0.4455, allocations: 1.582 MB / 0.5449 GB, free: 14.5 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00528/0.4508, allocations: 2.966 MB / 0.5478 GB, free: 14.11 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01209/0.4629, allocations: 6.265 MB / 0.5539 GB, free: 12.54 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02158/0.4846, allocations: 24.19 MB / 0.5775 GB, free: 0.9492 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.694e-06/0.4846, allocations: 0 / 0.5775 GB, free: 0.9492 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.4846, allocations: 0 / 0.5775 GB, free: 0.9492 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000787/0.4854, allocations: 0 / 0.5775 GB, free: 0.9492 MB / 366.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.04418/0.5296, allocations: 14.57 MB / 0.5917 GB, free: 7.875 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.019e-05/0.5297, allocations: 11.59 kB / 0.5917 GB, free: 7.875 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04536/0.575, allocations: 8.436 MB / 0.6 GB, free: 15.65 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01494/0.59, allocations: 7.439 MB / 0.6072 GB, free: 8.457 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006858/0.5907, allocations: 0.8085 MB / 0.608 GB, free: 7.66 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003703/0.5944, allocations: 1.064 MB / 0.6091 GB, free: 6.613 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04181/0.6363, allocations: 18.31 MB / 0.6269 GB, free: 4.289 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003043/0.6366, allocations: 15.89 kB / 0.627 GB, free: 4.273 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002055/0.6387, allocations: 453 kB / 0.6274 GB, free: 3.848 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006134/0.6393, allocations: 0.6711 MB / 0.6281 GB, free: 3.176 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03487/0.6742, allocations: 17.53 MB / 0.6452 GB, free: 1.633 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09354/0.7677, allocations: 58.7 MB / 0.7025 GB, free: 6.504 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2207/0.9885, allocations: 37.49 MB / 0.7391 GB, free: 120.9 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008278/0.9968, allocations: 4.15 MB / 0.7432 GB, free: 120.9 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006932/0.9975, allocations: 192.2 kB / 0.7433 GB, free: 120.8 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.582e-05/0.9976, allocations: 90.83 kB / 0.7434 GB, free: 120.7 MB / 494.1 MB Notification: Performance of pre-optimization done (n=524): time 7.293e-06/0.9976, allocations: 0 / 0.7434 GB, free: 120.7 MB / 494.1 MB Notification: Performance of matching and sorting (n=530): time 0.04885/1.046, allocations: 21.85 MB / 0.7648 GB, free: 117.7 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.966e-05/1.047, allocations: 105 kB / 0.7649 GB, free: 117.6 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006496/1.053, allocations: 4.177 MB / 0.769 GB, free: 116.1 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001085/1.054, allocations: 113.1 kB / 0.7691 GB, free: 116 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002444/1.057, allocations: 4.507 MB / 0.7735 GB, free: 112.6 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001796/1.058, allocations: 1.793 MB / 0.7752 GB, free: 111.2 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001956/1.06, allocations: 1.361 MB / 0.7765 GB, free: 110.6 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.636e-05/1.06, allocations: 301.1 kB / 0.7768 GB, free: 110.3 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004348/1.065, allocations: 3.476 MB / 0.7802 GB, free: 109 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00522/1.07, allocations: 5.912 MB / 0.786 GB, free: 104.6 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01102/1.081, allocations: 10.09 MB / 0.7959 GB, free: 97.93 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.558e-05/1.081, allocations: 22.19 kB / 0.7959 GB, free: 97.93 MB / 494.1 MB Notification: Performance of matching and sorting (n=916) (initialization): time 0.01711/1.098, allocations: 10.99 MB / 0.8066 GB, free: 88.69 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.277e-05/1.098, allocations: 43.52 kB / 0.8067 GB, free: 88.65 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001194/1.099, allocations: 76 kB / 0.8067 GB, free: 88.58 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003193/1.102, allocations: 1.381 MB / 0.8081 GB, free: 87.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005467/1.107, allocations: 1.611 MB / 0.8096 GB, free: 85.59 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01229/1.12, allocations: 10.58 MB / 0.82 GB, free: 74.87 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004912/1.125, allocations: 407.3 kB / 0.8204 GB, free: 74.47 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008853/1.125, allocations: 336 kB / 0.8207 GB, free: 74.14 MB / 494.1 MB 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 (843): * Single equations (assignments): 838 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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,41.3%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006154/1.132, allocations: 4.176 MB / 0.8248 GB, free: 69.96 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001037/1.133, allocations: 478.2 kB / 0.8252 GB, free: 69.48 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01183/1.144, allocations: 8.529 MB / 0.8335 GB, free: 60.85 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008821/1.153, allocations: 7.132 MB / 0.8405 GB, free: 53.62 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.776e-05/1.153, allocations: 15.98 kB / 0.8405 GB, free: 53.61 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.608e-05/1.153, allocations: 23.91 kB / 0.8406 GB, free: 53.59 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02615/1.18, allocations: 19.4 MB / 0.8595 GB, free: 33.92 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.524e-05/1.18, allocations: 0 / 0.8595 GB, free: 33.92 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003134/1.183, allocations: 0.9364 MB / 0.8604 GB, free: 32.98 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00291/1.186, allocations: 1.238 MB / 0.8616 GB, free: 31.74 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003303/1.186, allocations: 116 kB / 0.8617 GB, free: 31.63 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0104/1.196, allocations: 9.299 MB / 0.8708 GB, free: 22.2 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/1.196, allocations: 3.938 kB / 0.8708 GB, free: 22.2 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01525/1.212, allocations: 12.36 MB / 0.8829 GB, free: 9.633 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002435/1.214, allocations: 1.159 MB / 0.884 GB, free: 8.449 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007049/1.215, allocations: 92 kB / 0.8841 GB, free: 8.359 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002135/1.217, allocations: 275.8 kB / 0.8844 GB, free: 8.09 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006522/1.218, allocations: 352.4 kB / 0.8847 GB, free: 7.742 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002689/1.218, allocations: 148 kB / 0.8848 GB, free: 7.598 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003395/1.221, allocations: 2.823 MB / 0.8876 GB, free: 4.762 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.81e-07/1.221, allocations: 6.297 kB / 0.8876 GB, free: 4.758 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005301/1.227, allocations: 1.93 MB / 0.8895 GB, free: 2.832 MB / 494.1 MB 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 (502): * Single equations (assignments): 497 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0005684/1.227, allocations: 313.5 kB / 0.8898 GB, free: 2.535 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.1889/1.416, allocations: 8.759 MB / 0.8983 GB, free: 146.8 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.114e-06/1.416, allocations: 2.094 kB / 0.8983 GB, free: 146.8 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006839/1.423, allocations: 4.201 MB / 0.9024 GB, free: 146.5 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005277/1.428, allocations: 1.064 MB / 0.9035 GB, free: 146.4 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03443/1.463, allocations: 24 MB / 0.9269 GB, free: 136.7 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008915/1.472, allocations: 7.01 MB / 0.9338 GB, free: 135.3 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006017/1.478, allocations: 2.317 MB / 0.936 GB, free: 135.1 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001259/1.479, allocations: 414.7 kB / 0.9364 GB, free: 135 MB / 494.1 MB Notification: Performance of SimCode: time 9.92e-07/1.479, allocations: 0 / 0.9364 GB, free: 135 MB / 494.1 MB Notification: Performance of Templates: time 0.09833/1.577, allocations: 79.97 MB / 1.015 GB, free: 64.48 MB / 494.1 MB 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)