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.007272/0.007272, allocations: 101.1 kB / 15.73 MB, free: 6.051 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.416/1.416, allocations: 222.9 MB / 239.4 MB, free: 4.559 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.001757/0.001757, allocations: 192.5 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.03332/0.03332, allocations: 8.783 MB / 348.6 MB, free: 4.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00143/0.00143, allocations: 87.88 kB / 463.9 MB, free: 13.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1287/0.1301, allocations: 51.56 MB / 0.5034 GB, free: 9.488 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMS_Characteristics1): time 0.3278/0.458, allocations: 27 MB / 0.5298 GB, free: 5.559 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01953/0.4776, allocations: 8.044 MB / 0.5376 GB, free: 5.457 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007538/0.4851, allocations: 202.3 kB / 0.5378 GB, free: 5.457 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02114/0.5064, allocations: 9.321 MB / 0.5469 GB, free: 4.172 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01338/0.5198, allocations: 3.316 MB / 0.5501 GB, free: 3.258 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006577/0.5264, allocations: 1.821 MB / 0.5519 GB, free: 3.078 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02143/0.5478, allocations: 12.13 MB / 0.5638 GB, free: 12.91 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03902/0.5869, allocations: 24.4 MB / 0.5876 GB, free: 9.973 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01334/0.6003, allocations: 6.472 MB / 0.5939 GB, free: 3.637 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01496/0.6153, allocations: 7.174 MB / 0.6009 GB, free: 12.67 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007529/0.6229, allocations: 1.844 MB / 0.6027 GB, free: 10.82 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0103/0.6332, allocations: 2.196 MB / 0.6049 GB, free: 8.637 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007381/0.6406, allocations: 3.604 MB / 0.6084 GB, free: 5.074 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01823/0.6589, allocations: 6.934 MB / 0.6152 GB, free: 14.16 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03379/0.6927, allocations: 24.72 MB / 0.6393 GB, free: 5.852 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.715e-06/0.6928, allocations: 0 / 0.6393 GB, free: 5.852 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.474e-06/0.6928, allocations: 0 / 0.6393 GB, free: 5.852 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0007692/0.6936, allocations: 0 / 0.6393 GB, free: 5.852 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.04658/0.7402, allocations: 14.49 MB / 0.6534 GB, free: 7.375 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.66e-05/0.7402, allocations: 12.03 kB / 0.6535 GB, free: 7.363 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04641/0.7866, allocations: 8.48 MB / 0.6617 GB, free: 14.96 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01621/0.8029, allocations: 7.657 MB / 0.6692 GB, free: 7.273 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008096/0.8037, allocations: 0.8011 MB / 0.67 GB, free: 6.484 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004846/0.8086, allocations: 1.053 MB / 0.671 GB, free: 5.445 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04691/0.8555, allocations: 18.3 MB / 0.6889 GB, free: 3.133 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003526/0.8559, allocations: 11.91 kB / 0.6889 GB, free: 3.121 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003733/0.8597, allocations: 449.2 kB / 0.6893 GB, free: 2.695 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007/0.8604, allocations: 0.6633 MB / 0.69 GB, free: 2.031 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04055/0.9009, allocations: 17.53 MB / 0.7071 GB, free: 496 kB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6638/1.565, allocations: 58.05 MB / 0.7638 GB, free: 99.07 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02852/1.593, allocations: 37.48 MB / 0.8004 GB, free: 63.38 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00751/1.601, allocations: 4.104 MB / 0.8044 GB, free: 61.23 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007059/1.602, allocations: 192 kB / 0.8046 GB, free: 61.1 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001212/1.602, allocations: 96.14 kB / 0.8047 GB, free: 61.02 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=518): time 5.961e-06/1.602, allocations: 0 / 0.8047 GB, free: 61.02 MB / 0.5138 GB Notification: Performance of matching and sorting (n=524): time 0.05048/1.652, allocations: 21.44 MB / 0.8256 GB, free: 46.66 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.363e-05/1.652, allocations: 107.5 kB / 0.8257 GB, free: 46.54 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007389/1.66, allocations: 4.187 MB / 0.8298 GB, free: 42.32 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0008491/1.661, allocations: 105.7 kB / 0.8299 GB, free: 42.21 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002023/1.663, allocations: 4.52 MB / 0.8343 GB, free: 37.67 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001668/1.664, allocations: 1.775 MB / 0.8361 GB, free: 35.91 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002301/1.667, allocations: 1.351 MB / 0.8374 GB, free: 34.55 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 7.375e-05/1.667, allocations: 301.1 kB / 0.8377 GB, free: 34.25 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004226/1.671, allocations: 3.447 MB / 0.841 GB, free: 30.8 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005561/1.677, allocations: 5.883 MB / 0.8468 GB, free: 23.86 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01055/1.687, allocations: 10.02 MB / 0.8566 GB, free: 13 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-05/1.687, allocations: 24 kB / 0.8566 GB, free: 12.98 MB / 0.5138 GB Notification: Performance of matching and sorting (n=910) (initialization): time 0.01683/1.704, allocations: 10.94 MB / 0.8673 GB, free: 2.449 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 8.59e-05/1.704, allocations: 47.97 kB / 0.8673 GB, free: 2.402 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001733/1.704, allocations: 76 kB / 0.8674 GB, free: 2.328 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003774/1.708, allocations: 1.422 MB / 0.8688 GB, free: 0.9062 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00598/1.714, allocations: 1.615 MB / 0.8703 GB, free: 15.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01858/1.733, allocations: 11.47 MB / 0.8815 GB, free: 3.844 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005546/1.738, allocations: 407.3 kB / 0.8819 GB, free: 3.445 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00162/1.74, allocations: 332 kB / 0.8823 GB, free: 3.121 MB / 0.5294 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.01098/1.751, allocations: 4.165 MB / 0.8863 GB, free: 15.05 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002071/1.753, allocations: 478.2 kB / 0.8868 GB, free: 14.58 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0193/1.773, allocations: 8.485 MB / 0.8951 GB, free: 6.023 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01318/1.786, allocations: 7.078 MB / 0.902 GB, free: 14.89 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.323e-05/1.786, allocations: 12 kB / 0.902 GB, free: 14.88 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.623e-05/1.786, allocations: 27.89 kB / 0.902 GB, free: 14.86 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04443/1.83, allocations: 18.76 MB / 0.9203 GB, free: 12.15 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.753e-05/1.83, allocations: 4 kB / 0.9203 GB, free: 12.15 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004081/1.835, allocations: 0.9358 MB / 0.9213 GB, free: 11.26 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00401/1.839, allocations: 1.285 MB / 0.9225 GB, free: 9.965 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008423/1.839, allocations: 108 kB / 0.9226 GB, free: 9.859 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0153/1.855, allocations: 10.16 MB / 0.9325 GB, free: 15.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.678e-06/1.855, allocations: 4 kB / 0.9325 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02299/1.878, allocations: 12.28 MB / 0.9445 GB, free: 3.16 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004025/1.882, allocations: 1.155 MB / 0.9457 GB, free: 1.98 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001495/1.883, allocations: 92 kB / 0.9457 GB, free: 1.891 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003935/1.887, allocations: 275.8 kB / 0.946 GB, free: 1.621 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001187/1.889, allocations: 355.9 kB / 0.9463 GB, free: 1.273 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005738/1.889, allocations: 148 kB / 0.9465 GB, free: 1.129 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.2802/2.169, allocations: 2.819 MB / 0.9492 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.442e-06/2.169, allocations: 0 / 0.9492 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.01055/2.18, allocations: 1.932 MB / 0.9511 GB, free: 210.1 MB / 0.5919 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.001576/2.182, allocations: 301.1 kB / 0.9514 GB, free: 210 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01877/2.2, allocations: 8.726 MB / 0.9599 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.089e-05/2.2, allocations: 1.469 kB / 0.9599 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.008917/2.209, allocations: 4.176 MB / 0.964 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00683/2.216, allocations: 1.121 MB / 0.9651 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03617/2.252, allocations: 19.18 MB / 0.9838 GB, free: 201.1 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009865/2.262, allocations: 7.011 MB / 0.9907 GB, free: 198.5 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.006866/2.269, allocations: 2.314 MB / 0.9929 GB, free: 198.3 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002099/2.271, allocations: 421.2 kB / 0.9933 GB, free: 198.3 MB / 0.5919 GB Notification: Performance of SimCode: time 1.513e-06/2.271, allocations: 0 / 0.9933 GB, free: 198.3 MB / 0.5919 GB Notification: Performance of Templates: time 0.1157/2.387, allocations: 79.01 MB / 1.071 GB, free: 125.9 MB / 0.5919 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)