Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.conf.json 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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 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) Running command: translateModel(HanserModelica.InductionMachines.IMC_Steinmetz,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz") translateModel(HanserModelica.InductionMachines.IMC_Steinmetz,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005464/0.005464, allocations: 171.9 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03723/0.03723, allocations: 8.795 MB / 24.65 MB, free: 4.098 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.205/1.205, allocations: 223.2 MB / 250.7 MB, free: 6.59 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008496/0.0008497, allocations: 98.11 kB / 304 MB, free: 4.023 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003179/0.0003179, allocations: 8 kB / 367.1 MB, free: 4.969 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2137/0.214, allocations: 52.54 MB / 419.6 MB, free: 48.16 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1167/0.3308, allocations: 110.2 MB / 0.5174 GB, free: 10.79 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002066/0.331, allocations: 79.97 kB / 0.5175 GB, free: 10.71 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3323/0.6633, allocations: 80.95 MB / 0.5966 GB, free: 95.97 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.6634, allocations: 0 / 0.5966 GB, free: 95.97 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001743/0.6635, allocations: 85.16 kB / 0.5966 GB, free: 95.95 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 852 * Number of variables: 852 Notification: Performance of Generate backend data structure: time 0.007158/0.6707, allocations: 3.534 MB / 0.6001 GB, free: 94.12 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.6708, allocations: 6.719 kB / 0.6001 GB, free: 94.12 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003349/0.6741, allocations: 0.7429 MB / 0.6008 GB, free: 93.87 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006277/0.6804, allocations: 3.346 MB / 0.6041 GB, free: 92.25 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001288/0.6806, allocations: 246.9 kB / 0.6043 GB, free: 92.14 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004864/0.681, allocations: 344.1 kB / 0.6046 GB, free: 92.02 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005742/0.6868, allocations: 4.218 MB / 0.6088 GB, free: 90.05 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.424e-05/0.6869, allocations: 7.562 kB / 0.6088 GB, free: 90.05 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002874/0.6872, allocations: 143.3 kB / 0.6089 GB, free: 89.94 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.404e-05/0.6873, allocations: 145.5 kB / 0.609 GB, free: 89.92 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004738/0.692, allocations: 3.389 MB / 0.6124 GB, free: 88.51 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01675/0.7088, allocations: 13.88 MB / 0.6259 GB, free: 77.56 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004435/0.7133, allocations: 6.643 MB / 0.6324 GB, free: 70.12 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00439/0.7177, allocations: 3.275 MB / 0.6356 GB, free: 66.79 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001141/0.7188, allocations: 0.9703 MB / 0.6365 GB, free: 65.79 MB / 426.7 MB Notification: Performance of pre-optimization done (n=149): time 2.895e-06/0.7189, allocations: 0 / 0.6365 GB, free: 65.79 MB / 426.7 MB Notification: Performance of matching and sorting (n=152): time 0.009779/0.7287, allocations: 6.113 MB / 0.6425 GB, free: 59.45 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.028e-05/0.7288, allocations: 226.9 kB / 0.6427 GB, free: 59.18 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002001/0.7308, allocations: 1.545 MB / 0.6442 GB, free: 57.64 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000137/0.7309, allocations: 57.64 kB / 0.6443 GB, free: 57.58 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009681/0.7319, allocations: 1.45 MB / 0.6457 GB, free: 56.11 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002939/0.7322, allocations: 0.5183 MB / 0.6462 GB, free: 55.6 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.741e-05/0.7323, allocations: 32 kB / 0.6463 GB, free: 55.57 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.2e-05/0.7324, allocations: 385.9 kB / 0.6466 GB, free: 55.19 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009886/0.7334, allocations: 0.7027 MB / 0.6473 GB, free: 54.49 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001217/0.7346, allocations: 1.328 MB / 0.6486 GB, free: 52.89 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001231/0.7358, allocations: 0.9548 MB / 0.6495 GB, free: 51.95 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.053e-05/0.7359, allocations: 4 kB / 0.6495 GB, free: 51.94 MB / 426.7 MB Notification: Performance of matching and sorting (n=243) (initialization): time 0.003563/0.7394, allocations: 2.664 MB / 0.6521 GB, free: 49.23 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.653e-05/0.7395, allocations: 12.78 kB / 0.6522 GB, free: 49.22 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.443e-05/0.7395, allocations: 16 kB / 0.6522 GB, free: 49.21 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008661/0.7404, allocations: 366.7 kB / 0.6525 GB, free: 48.84 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001284/0.7417, allocations: 395.4 kB / 0.6529 GB, free: 48.45 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005303/0.747, allocations: 7.788 MB / 0.6605 GB, free: 40.13 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00153/0.7485, allocations: 107.9 kB / 0.6606 GB, free: 40.03 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001949/0.7488, allocations: 79.98 kB / 0.6607 GB, free: 39.95 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 80 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.rmsI[1].mean.y_last,rmsI[1].mean.y_last,$PRE.rmsI[2].mean.y_last,rmsI[2].mean.y_last,$PRE.rmsI[3].mean.y_last,rmsI[3].mean.y_last,booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (212): * Single equations (assignments): 207 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 7,(2,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001761/0.7505, allocations: 1.038 MB / 0.6617 GB, free: 38.9 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000394/0.7509, allocations: 193.7 kB / 0.6619 GB, free: 38.71 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003575/0.7545, allocations: 2.395 MB / 0.6642 GB, free: 36.25 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.837e-06/0.7545, allocations: 12 kB / 0.6642 GB, free: 36.23 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.981e-05/0.7546, allocations: 8.188 kB / 0.6642 GB, free: 36.23 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.166e-05/0.7546, allocations: 11.97 kB / 0.6642 GB, free: 36.21 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007868/0.7624, allocations: 5.237 MB / 0.6694 GB, free: 30.86 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.334e-06/0.7625, allocations: 4 kB / 0.6694 GB, free: 30.86 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000785/0.7633, allocations: 191.7 kB / 0.6695 GB, free: 30.67 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001243/0.7645, allocations: 0.5283 MB / 0.6701 GB, free: 30.12 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.951e-05/0.7646, allocations: 43.98 kB / 0.6701 GB, free: 30.08 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008268/0.7729, allocations: 12.28 MB / 0.6821 GB, free: 17.03 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/0.773, allocations: 7.969 kB / 0.6821 GB, free: 17.02 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00425/0.7772, allocations: 3.461 MB / 0.6855 GB, free: 13.44 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009078/0.7781, allocations: 438.6 kB / 0.6859 GB, free: 12.99 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002462/0.7784, allocations: 43.94 kB / 0.6859 GB, free: 12.95 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008167/0.7792, allocations: 71.95 kB / 0.686 GB, free: 12.88 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002294/0.7795, allocations: 121.1 kB / 0.6861 GB, free: 12.75 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.571e-05/0.7795, allocations: 43.98 kB / 0.6862 GB, free: 12.71 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00143/0.781, allocations: 1.176 MB / 0.6873 GB, free: 11.54 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.781, allocations: 0 / 0.6873 GB, free: 11.54 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002067/0.7831, allocations: 0.6446 MB / 0.6879 GB, free: 10.9 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 (imc.inertiaRotor.w,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.zeroInductor.i0,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi,cRun.v,cStart.v,rmsI[1].mean.x,rmsI[2].mean.x,rmsI[3].mean.x) * Number of discrete variables: 8 ($whenCondition3,$whenCondition2,$whenCondition1,booleanStep.y,greaterThreshold.y,rmsI[1].mean.y_last,rmsI[2].mean.y_last,rmsI[3].mean.y_last) * Number of discrete states: 3 (rmsI[3].mean.x,rmsI[2].mean.x,rmsI[1].mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (101): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 7,(2,100.0%) 8,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004652/0.7835, allocations: 378 kB / 0.6883 GB, free: 10.55 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002841/0.7864, allocations: 2.449 MB / 0.6907 GB, free: 8.039 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.7864, allocations: 112 / 0.6907 GB, free: 8.039 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001979/0.7884, allocations: 1.8 MB / 0.6925 GB, free: 6.16 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001974/0.7904, allocations: 0.5229 MB / 0.693 GB, free: 5.645 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008677/0.7991, allocations: 7.163 MB / 0.7 GB, free: 14.44 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00203/0.8011, allocations: 2.402 MB / 0.7023 GB, free: 12.01 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001602/0.8027, allocations: 421.5 kB / 0.7027 GB, free: 11.59 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003125/0.8031, allocations: 127.4 kB / 0.7028 GB, free: 11.47 MB / 442.7 MB Notification: Performance of SimCode: time 8.21e-07/0.8031, allocations: 0 / 0.7028 GB, free: 11.47 MB / 442.7 MB Notification: Performance of Templates: time 0.2239/1.027, allocations: 31.47 MB / 0.7336 GB, free: 114.4 MB / 458.7 MB make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.makefile (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.sim & ./HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe 2>&1)