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.001176/0.001176, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.402/1.402, allocations: 222.9 MB / 239.2 MB, free: 4.582 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.001654/0.001654, allocations: 187.6 kB / 289.5 MB, free: 2.309 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03441/0.03441, allocations: 8.792 MB / 348.5 MB, free: 4.707 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001599/0.001599, allocations: 79.05 kB / 411.1 MB, free: 42 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1255/0.1271, allocations: 51.56 MB / 462.6 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMS_Characteristics1): time 0.03253/0.1597, allocations: 27.01 MB / 489.6 MB, free: 3.227 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02108/0.1808, allocations: 8.043 MB / 497.7 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009679/0.1906, allocations: 195.4 kB / 497.9 MB, free: 10.97 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02333/0.2139, allocations: 9.33 MB / 0.4953 GB, free: 1.617 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01706/0.231, allocations: 3.312 MB / 0.4986 GB, free: 14.29 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008347/0.2394, allocations: 1.814 MB / 0.5003 GB, free: 12.49 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.02472/0.2641, allocations: 12.05 MB / 0.5121 GB, free: 408 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3452/0.6094, allocations: 24.48 MB / 0.536 GB, free: 11.88 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01354/0.623, allocations: 6.437 MB / 0.5423 GB, free: 11.46 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01465/0.6377, allocations: 7.21 MB / 0.5493 GB, free: 10.35 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.008221/0.6459, allocations: 1.839 MB / 0.5511 GB, free: 10.35 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01286/0.6588, allocations: 2.206 MB / 0.5533 GB, free: 10.35 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.009876/0.6687, allocations: 3.616 MB / 0.5568 GB, free: 9.953 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01581/0.6846, allocations: 6.934 MB / 0.5636 GB, free: 8.379 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03482/0.7194, allocations: 24.6 MB / 0.5876 GB, free: 9.73 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.526e-06/0.7195, allocations: 0 / 0.5876 GB, free: 9.73 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.7195, allocations: 4 kB / 0.5876 GB, free: 9.727 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.001062/0.7206, allocations: 0 / 0.5876 GB, free: 9.727 MB / 382.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.05751/0.7781, allocations: 14.55 MB / 0.6018 GB, free: 11.2 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.204e-05/0.7782, allocations: 12.03 kB / 0.6018 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04712/0.8253, allocations: 8.44 MB / 0.6101 GB, free: 2.836 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01913/0.8445, allocations: 7.441 MB / 0.6173 GB, free: 11.64 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009514/0.8455, allocations: 0.8121 MB / 0.6181 GB, free: 10.84 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00552/0.851, allocations: 1.055 MB / 0.6192 GB, free: 9.797 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05097/0.902, allocations: 18.29 MB / 0.637 GB, free: 7.492 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004299/0.9025, allocations: 23.55 kB / 0.637 GB, free: 7.473 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004658/0.9071, allocations: 452.4 kB / 0.6375 GB, free: 7.047 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007596/0.9079, allocations: 0.6595 MB / 0.6381 GB, free: 6.387 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04182/0.9497, allocations: 17.53 MB / 0.6552 GB, free: 4.848 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6392/1.589, allocations: 58.72 MB / 0.7126 GB, free: 130.7 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03018/1.619, allocations: 37.47 MB / 0.7492 GB, free: 100.3 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006052/1.625, allocations: 4.122 MB / 0.7532 GB, free: 100.2 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005096/1.626, allocations: 197.2 kB / 0.7534 GB, free: 100.1 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.677e-05/1.626, allocations: 84.91 kB / 0.7535 GB, free: 100 MB / 494.1 MB Notification: Performance of pre-optimization done (n=518): time 7.323e-06/1.626, allocations: 0 / 0.7535 GB, free: 100 MB / 494.1 MB Notification: Performance of matching and sorting (n=524): time 0.04398/1.67, allocations: 21.44 MB / 0.7744 GB, free: 97.69 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.416e-05/1.67, allocations: 119.9 kB / 0.7745 GB, free: 97.61 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005892/1.676, allocations: 4.174 MB / 0.7786 GB, free: 97.07 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007464/1.677, allocations: 112.5 kB / 0.7787 GB, free: 96.97 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002264/1.679, allocations: 4.521 MB / 0.7831 GB, free: 93.58 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001699/1.681, allocations: 1.77 MB / 0.7849 GB, free: 92.21 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001935/1.683, allocations: 1.355 MB / 0.7862 GB, free: 91.57 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 6.081e-05/1.683, allocations: 301.1 kB / 0.7865 GB, free: 91.27 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004737/1.687, allocations: 3.445 MB / 0.7898 GB, free: 89.97 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005524/1.693, allocations: 5.887 MB / 0.7956 GB, free: 85.58 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01117/1.704, allocations: 10.01 MB / 0.8054 GB, free: 78.71 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.087e-05/1.704, allocations: 27.05 kB / 0.8054 GB, free: 78.7 MB / 494.1 MB Notification: Performance of matching and sorting (n=910) (initialization): time 0.01639/1.721, allocations: 10.94 MB / 0.8161 GB, free: 71.55 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.316e-05/1.721, allocations: 39.94 kB / 0.8161 GB, free: 71.51 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001141/1.721, allocations: 80 kB / 0.8162 GB, free: 71.43 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003503/1.724, allocations: 1.423 MB / 0.8176 GB, free: 70.01 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00552/1.73, allocations: 1.615 MB / 0.8191 GB, free: 68.39 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01385/1.744, allocations: 11.47 MB / 0.8303 GB, free: 56.79 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005586/1.749, allocations: 407.3 kB / 0.8307 GB, free: 56.39 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001095/1.751, allocations: 337.3 kB / 0.8311 GB, free: 56.06 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 (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.008064/1.759, allocations: 4.17 MB / 0.8351 GB, free: 51.88 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001247/1.76, allocations: 478.1 kB / 0.8356 GB, free: 51.41 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01315/1.773, allocations: 8.481 MB / 0.8439 GB, free: 42.82 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01049/1.784, allocations: 7.08 MB / 0.8508 GB, free: 35.64 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.394e-05/1.784, allocations: 12 kB / 0.8508 GB, free: 35.63 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.766e-05/1.784, allocations: 27.89 kB / 0.8508 GB, free: 35.61 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03084/1.815, allocations: 19.33 MB / 0.8697 GB, free: 16.02 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.85e-05/1.815, allocations: 4 kB / 0.8697 GB, free: 16.01 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00342/1.818, allocations: 0.9284 MB / 0.8706 GB, free: 15.08 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003239/1.821, allocations: 1.289 MB / 0.8719 GB, free: 13.79 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004454/1.822, allocations: 112 kB / 0.872 GB, free: 13.68 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01163/1.833, allocations: 10.17 MB / 0.8819 GB, free: 3.391 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/1.833, allocations: 9.578 kB / 0.8819 GB, free: 3.383 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01967/1.853, allocations: 12.27 MB / 0.8939 GB, free: 6.906 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003051/1.856, allocations: 1.151 MB / 0.895 GB, free: 5.73 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009267/1.857, allocations: 95.98 kB / 0.8951 GB, free: 5.637 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002755/1.86, allocations: 271.8 kB / 0.8954 GB, free: 5.371 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008218/1.861, allocations: 344.4 kB / 0.8957 GB, free: 5.031 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003121/1.861, allocations: 152 kB / 0.8958 GB, free: 4.883 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.004874/1.866, allocations: 2.823 MB / 0.8986 GB, free: 2.047 MB / 0.4982 GB Notification: Performance of sort global known variables: time 4.91e-07/1.866, allocations: 0 / 0.8986 GB, free: 2.047 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.00781/1.874, allocations: 1.93 MB / 0.9005 GB, free: 124 kB / 0.4982 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.2498/2.124, allocations: 298.5 kB / 0.9008 GB, free: 157.3 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.04908/2.173, allocations: 20.62 MB / 0.9209 GB, free: 156.8 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 9.548e-06/2.173, allocations: 7.344 kB / 0.9209 GB, free: 156.8 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.007832/2.181, allocations: 4.167 MB / 0.925 GB, free: 156.4 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00879/2.189, allocations: 1.124 MB / 0.9261 GB, free: 156.3 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04597/2.235, allocations: 19.4 MB / 0.945 GB, free: 148 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01101/2.247, allocations: 7.006 MB / 0.9519 GB, free: 142.6 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.006318/2.253, allocations: 2.315 MB / 0.9541 GB, free: 141 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001214/2.254, allocations: 418.7 kB / 0.9545 GB, free: 140.6 MB / 0.4982 GB Notification: Performance of SimCode: time 7.51e-07/2.254, allocations: 0 / 0.9545 GB, free: 140.6 MB / 0.4982 GB Notification: Performance of Templates: time 0.1276/2.382, allocations: 82.62 MB / 1.035 GB, free: 63.65 MB / 0.4982 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)