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.004251/0.004251, allocations: 99.56 kB / 15.73 MB, free: 6.059 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.274/1.274, allocations: 222.9 MB / 239.4 MB, free: 4.535 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.001296/0.001296, allocations: 180.5 kB / 289.7 MB, free: 2.246 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03347/0.03347, allocations: 8.792 MB / 348.6 MB, free: 4.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001321/0.001321, allocations: 79.88 kB / 463.9 MB, free: 13.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08594/0.08727, allocations: 51.56 MB / 0.5034 GB, free: 9.492 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMS_Characteristics1): time 0.2039/0.2912, allocations: 27.01 MB / 0.5298 GB, free: 4.977 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01404/0.3053, allocations: 8.043 MB / 0.5376 GB, free: 4.863 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007127/0.3124, allocations: 204.5 kB / 0.5378 GB, free: 4.859 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01936/0.3319, allocations: 9.322 MB / 0.5469 GB, free: 3.574 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01065/0.3426, allocations: 3.313 MB / 0.5502 GB, free: 2.66 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004906/0.3475, allocations: 1.799 MB / 0.5519 GB, free: 2.52 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01522/0.3627, allocations: 12.16 MB / 0.5638 GB, free: 12.71 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03275/0.3955, allocations: 24.39 MB / 0.5876 GB, free: 9.848 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01036/0.4059, allocations: 6.451 MB / 0.5939 GB, free: 3.531 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01083/0.4168, allocations: 7.165 MB / 0.6009 GB, free: 12.57 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004309/0.4211, allocations: 1.84 MB / 0.6027 GB, free: 10.73 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006584/0.4277, allocations: 2.207 MB / 0.6049 GB, free: 8.527 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004211/0.4319, allocations: 3.608 MB / 0.6084 GB, free: 4.965 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01083/0.4428, allocations: 6.923 MB / 0.6151 GB, free: 14.06 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02691/0.4697, allocations: 24.79 MB / 0.6393 GB, free: 5.68 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.4697, allocations: 0 / 0.6393 GB, free: 5.68 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.4698, allocations: 0 / 0.6393 GB, free: 5.68 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005055/0.4703, allocations: 0 / 0.6393 GB, free: 5.68 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.03716/0.5074, allocations: 14.74 MB / 0.6537 GB, free: 6.93 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.892e-05/0.5075, allocations: 8.031 kB / 0.6537 GB, free: 6.922 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04442/0.5519, allocations: 8.543 MB / 0.6621 GB, free: 14.47 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01361/0.5656, allocations: 7.665 MB / 0.6696 GB, free: 6.77 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005448/0.5661, allocations: 0.8065 MB / 0.6704 GB, free: 5.977 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002781/0.5689, allocations: 1.061 MB / 0.6714 GB, free: 4.93 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03792/0.6069, allocations: 18.28 MB / 0.6893 GB, free: 2.633 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004607/0.6073, allocations: 19.94 kB / 0.6893 GB, free: 2.613 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002674/0.61, allocations: 446.1 kB / 0.6897 GB, free: 2.191 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005975/0.6106, allocations: 0.675 MB / 0.6904 GB, free: 1.516 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03281/0.6435, allocations: 17.54 MB / 0.7075 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4476/1.091, allocations: 58.19 MB / 0.7643 GB, free: 118.7 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02198/1.113, allocations: 37.48 MB / 0.8009 GB, free: 82.95 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005456/1.119, allocations: 4.103 MB / 0.8049 GB, free: 80.8 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004855/1.119, allocations: 189.7 kB / 0.8051 GB, free: 80.68 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.79e-05/1.119, allocations: 95.58 kB / 0.8052 GB, free: 80.59 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=518): time 7.364e-06/1.119, allocations: 0 / 0.8052 GB, free: 80.59 MB / 0.5138 GB Notification: Performance of matching and sorting (n=524): time 0.04078/1.16, allocations: 21.58 MB / 0.8263 GB, free: 68.05 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.822e-05/1.16, allocations: 103.5 kB / 0.8264 GB, free: 67.94 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005326/1.165, allocations: 4.185 MB / 0.8305 GB, free: 63.78 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0003331/1.166, allocations: 109.7 kB / 0.8306 GB, free: 63.66 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.001803/1.168, allocations: 4.673 MB / 0.8351 GB, free: 59.57 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001058/1.169, allocations: 1.865 MB / 0.8369 GB, free: 57.73 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001867/1.17, allocations: 1.351 MB / 0.8383 GB, free: 56.38 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 3.407e-05/1.171, allocations: 308.1 kB / 0.8386 GB, free: 56.07 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004095/1.175, allocations: 3.449 MB / 0.8419 GB, free: 52.62 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004995/1.18, allocations: 5.881 MB / 0.8477 GB, free: 45.64 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009964/1.19, allocations: 10.02 MB / 0.8574 GB, free: 34.46 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.344e-05/1.19, allocations: 20 kB / 0.8575 GB, free: 34.44 MB / 0.5138 GB Notification: Performance of matching and sorting (n=910) (initialization): time 0.01498/1.205, allocations: 10.97 MB / 0.8682 GB, free: 23.38 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 5.465e-05/1.205, allocations: 40 kB / 0.8682 GB, free: 23.34 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.19e-05/1.205, allocations: 76 kB / 0.8683 GB, free: 23.26 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003362/1.208, allocations: 1.422 MB / 0.8697 GB, free: 21.84 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004747/1.213, allocations: 1.618 MB / 0.8713 GB, free: 20.21 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01308/1.226, allocations: 11.48 MB / 0.8825 GB, free: 8.594 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004096/1.23, allocations: 407.5 kB / 0.8829 GB, free: 8.195 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000565/1.231, allocations: 332 kB / 0.8832 GB, free: 7.871 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.00492/1.236, allocations: 4.18 MB / 0.8873 GB, free: 3.676 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009029/1.237, allocations: 496.8 kB / 0.8877 GB, free: 3.188 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01302/1.25, allocations: 8.471 MB / 0.896 GB, free: 10.61 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01051/1.26, allocations: 7.088 MB / 0.9029 GB, free: 3.426 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.16e-05/1.26, allocations: 12 kB / 0.9029 GB, free: 3.414 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.35e-05/1.26, allocations: 31.89 kB / 0.903 GB, free: 3.383 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02983/1.29, allocations: 18.76 MB / 0.9213 GB, free: 0.5469 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-05/1.29, allocations: 3.938 kB / 0.9213 GB, free: 0.543 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003424/1.294, allocations: 0.94 MB / 0.9222 GB, free: 15.6 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003378/1.297, allocations: 1.289 MB / 0.9235 GB, free: 14.3 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003385/1.297, allocations: 108 kB / 0.9236 GB, free: 14.2 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01365/1.311, allocations: 10.18 MB / 0.9335 GB, free: 3.895 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/1.311, allocations: 4 kB / 0.9335 GB, free: 3.891 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2142/1.525, allocations: 12.28 MB / 0.9455 GB, free: 178.9 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002508/1.528, allocations: 1.186 MB / 0.9467 GB, free: 178.8 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006886/1.528, allocations: 92.81 kB / 0.9468 GB, free: 178.8 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002312/1.531, allocations: 274.3 kB / 0.947 GB, free: 178.8 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000724/1.531, allocations: 343.9 kB / 0.9474 GB, free: 178.8 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003036/1.532, allocations: 148.4 kB / 0.9475 GB, free: 178.8 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.004127/1.536, allocations: 2.818 MB / 0.9502 GB, free: 178.6 MB / 0.5607 GB Notification: Performance of sort global known variables: time 2.3e-07/1.536, allocations: 0 / 0.9502 GB, free: 178.6 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.006441/1.542, allocations: 1.934 MB / 0.9521 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.0007884/1.543, allocations: 307.1 kB / 0.9524 GB, free: 178.5 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.0131/1.556, allocations: 8.735 MB / 0.961 GB, free: 176.4 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 6.783e-06/1.556, allocations: 1.688 kB / 0.961 GB, free: 176.4 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.005868/1.562, allocations: 4.181 MB / 0.965 GB, free: 174.7 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004659/1.567, allocations: 1.129 MB / 0.9661 GB, free: 174.3 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02621/1.593, allocations: 19.46 MB / 0.9851 GB, free: 165.6 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005833/1.599, allocations: 7.004 MB / 0.992 GB, free: 162.4 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.004925/1.604, allocations: 2.317 MB / 0.9943 GB, free: 160.8 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00113/1.605, allocations: 417.9 kB / 0.9947 GB, free: 160.5 MB / 0.5607 GB Notification: Performance of SimCode: time 1.944e-06/1.605, allocations: 0 / 0.9947 GB, free: 160.5 MB / 0.5607 GB Notification: Performance of Templates: time 0.09633/1.701, allocations: 79.01 MB / 1.072 GB, free: 82.28 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)