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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007124/0.007124, allocations: 103.5 kB / 15.78 MB, free: 5.977 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.546/1.546, allocations: 225.6 MB / 242.1 MB, free: 3.945 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.001617/0.001617, allocations: 191.3 kB / 295.1 MB, free: 4.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.03997/0.03997, allocations: 8.925 MB / 356.9 MB, free: 3.086 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002137/0.002137, allocations: 75.86 kB / 477.9 MB, free: 80.93 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1317/0.1339, allocations: 54.39 MB / 0.5198 GB, free: 26.44 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Steinmetz): time 0.01241/0.1463, allocations: 13.65 MB / 0.5331 GB, free: 12.73 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009876/0.1562, allocations: 4.454 MB / 0.5375 GB, free: 8.258 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003523/0.1597, allocations: 79.75 kB / 0.5376 GB, free: 8.18 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003441/0.1631, allocations: 1.017 MB / 0.5386 GB, free: 7.156 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005648/0.1688, allocations: 1.355 MB / 0.5399 GB, free: 5.793 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002795/0.1716, allocations: 0.8976 MB / 0.5408 GB, free: 4.898 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008226/0.1798, allocations: 4.18 MB / 0.5448 GB, free: 0.6992 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003791/0.1836, allocations: 2.234 MB / 0.547 GB, free: 14.39 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003972/0.1876, allocations: 1.924 MB / 0.5489 GB, free: 12.46 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005136/0.1927, allocations: 2.094 MB / 0.5509 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00313/0.1958, allocations: 0.5078 MB / 0.5514 GB, free: 9.852 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004883/0.2007, allocations: 0.7107 MB / 0.5521 GB, free: 9.141 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002374/0.2031, allocations: 1.11 MB / 0.5532 GB, free: 8.027 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00456/0.2076, allocations: 2.139 MB / 0.5553 GB, free: 5.879 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01041/0.218, allocations: 6.7 MB / 0.5618 GB, free: 15.15 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.958e-06/0.2181, allocations: 0 / 0.5618 GB, free: 15.15 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.2181, allocations: 0 / 0.5618 GB, free: 15.15 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002369/0.2183, allocations: 0 / 0.5618 GB, free: 15.15 MB / 398.1 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.01483/0.2331, allocations: 4.509 MB / 0.5662 GB, free: 10.57 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.143e-05/0.2332, allocations: 12.03 kB / 0.5663 GB, free: 10.55 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004666/0.2379, allocations: 0.8378 MB / 0.5671 GB, free: 9.715 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005978/0.2438, allocations: 2.445 MB / 0.5695 GB, free: 7.215 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000243/0.2441, allocations: 250.8 kB / 0.5697 GB, free: 6.969 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000682/0.2448, allocations: 332.1 kB / 0.57 GB, free: 6.645 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009919/0.2547, allocations: 4.322 MB / 0.5742 GB, free: 2.27 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00015/0.2548, allocations: 7.891 kB / 0.5742 GB, free: 2.262 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000565/0.2554, allocations: 136 kB / 0.5744 GB, free: 2.129 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002425/0.2557, allocations: 150.5 kB / 0.5745 GB, free: 1.98 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3913/0.647, allocations: 3.59 MB / 0.578 GB, free: 48.09 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03141/0.6784, allocations: 13.7 MB / 0.5914 GB, free: 40.68 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005529/0.6839, allocations: 6.477 MB / 0.5977 GB, free: 34.53 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002196/0.6861, allocations: 1.285 MB / 0.599 GB, free: 33.89 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007052/0.6932, allocations: 3.669 MB / 0.6026 GB, free: 31.28 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001479/0.6946, allocations: 0.9435 MB / 0.6035 GB, free: 30.68 MB / 398.1 MB Notification: Performance of pre-optimization done (n=143): time 3.005e-06/0.6946, allocations: 0 / 0.6035 GB, free: 30.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=146): time 0.01353/0.7082, allocations: 6.007 MB / 0.6094 GB, free: 26.93 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001147/0.7083, allocations: 237.5 kB / 0.6096 GB, free: 26.66 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00281/0.7111, allocations: 1.774 MB / 0.6113 GB, free: 25.71 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000135/0.7112, allocations: 65.09 kB / 0.6114 GB, free: 25.66 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001289/0.7125, allocations: 1.504 MB / 0.6128 GB, free: 24.45 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003809/0.7129, allocations: 0.5212 MB / 0.6134 GB, free: 24 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004794/0.7134, allocations: 340.8 kB / 0.6137 GB, free: 23.81 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 5.879e-05/0.7134, allocations: 301.1 kB / 0.614 GB, free: 23.51 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009727/0.7144, allocations: 0.6947 MB / 0.6146 GB, free: 22.94 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001328/0.7157, allocations: 1.365 MB / 0.616 GB, free: 21.3 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002191/0.7179, allocations: 2.11 MB / 0.618 GB, free: 18.94 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-05/0.7179, allocations: 8 kB / 0.6181 GB, free: 18.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.003864/0.7218, allocations: 2.642 MB / 0.6206 GB, free: 16.25 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.414e-05/0.7218, allocations: 16 kB / 0.6206 GB, free: 16.23 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.573e-05/0.7219, allocations: 17.33 kB / 0.6207 GB, free: 16.22 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009497/0.7228, allocations: 378.3 kB / 0.621 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00129/0.7241, allocations: 387.4 kB / 0.6214 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006238/0.7303, allocations: 8.451 MB / 0.6296 GB, free: 6.453 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002134/0.7325, allocations: 91.95 kB / 0.6297 GB, free: 6.363 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001305/0.7326, allocations: 83.98 kB / 0.6298 GB, free: 6.281 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 84 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition3,$whenCondition2,$whenCondition1,rmsI[3].mean.y_last,$PRE.rmsI[3].mean.y_last,rmsI[2].mean.y_last,$PRE.rmsI[2].mean.y_last,rmsI[1].mean.y_last,$PRE.rmsI[1].mean.y_last,idealOpener.control,idealCloser.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (210): * Single equations (assignments): 205 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,7,100.0%), (2,8,100.0%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002225/0.7348, allocations: 1.029 MB / 0.6308 GB, free: 5.242 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004341/0.7353, allocations: 206.7 kB / 0.631 GB, free: 5.039 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003524/0.7388, allocations: 2.324 MB / 0.6333 GB, free: 2.648 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.277e-05/0.7388, allocations: 19.94 kB / 0.6333 GB, free: 2.629 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.069e-05/0.7388, allocations: 11.94 kB / 0.6333 GB, free: 2.617 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.563e-05/0.7388, allocations: 7.969 kB / 0.6333 GB, free: 2.609 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008475/0.7473, allocations: 5.105 MB / 0.6383 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.839e-06/0.7473, allocations: 4 kB / 0.6383 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008254/0.7481, allocations: 179.6 kB / 0.6385 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001515/0.7497, allocations: 0.5281 MB / 0.639 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001129/0.7498, allocations: 43.98 kB / 0.639 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01505/0.7648, allocations: 13.25 MB / 0.652 GB, free: 14.57 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.382e-06/0.7648, allocations: 4.031 kB / 0.652 GB, free: 14.57 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006161/0.771, allocations: 3.273 MB / 0.6552 GB, free: 11.21 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001409/0.7724, allocations: 439.6 kB / 0.6556 GB, free: 10.76 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002807/0.7727, allocations: 43.98 kB / 0.6556 GB, free: 10.72 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008945/0.7736, allocations: 63.95 kB / 0.6557 GB, free: 10.66 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004114/0.774, allocations: 117 kB / 0.6558 GB, free: 10.54 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.206e-05/0.7741, allocations: 40.03 kB / 0.6559 GB, free: 10.5 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002244/0.7763, allocations: 1.219 MB / 0.657 GB, free: 9.289 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.7763, allocations: 3.938 kB / 0.657 GB, free: 9.285 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003119/0.7794, allocations: 0.5977 MB / 0.6576 GB, free: 8.688 MB / 430.1 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.zeroInductor.i0,imc.stator.core.Phi.re,imc.stator.core.Phi.im,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,idealCloser.control,idealOpener.control,rmsI[1].mean.y_last,rmsI[2].mean.y_last,rmsI[3].mean.y_last) * Number of discrete states: 3 (rmsI[1].mean.x,rmsI[2].mean.x,rmsI[3].mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,7,100.0%), (2,8,100.0%), (1,1,100.0%), (1,13,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004389/0.7799, allocations: 174.4 kB / 0.6578 GB, free: 8.516 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004539/0.7844, allocations: 2.346 MB / 0.6601 GB, free: 6.098 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.015e-05/0.7844, allocations: 4 kB / 0.6601 GB, free: 6.094 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003002/0.7874, allocations: 1.692 MB / 0.6617 GB, free: 4.324 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003008/0.7904, allocations: 0.5458 MB / 0.6623 GB, free: 3.781 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01271/0.8032, allocations: 6.002 MB / 0.6681 GB, free: 13.73 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002602/0.8058, allocations: 2.339 MB / 0.6704 GB, free: 11.37 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001777/0.8075, allocations: 417.3 kB / 0.6708 GB, free: 10.96 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003287/0.8079, allocations: 127.4 kB / 0.6709 GB, free: 10.84 MB / 446.1 MB Notification: Performance of SimCode: time 1.763e-06/0.8079, allocations: 0 / 0.6709 GB, free: 10.84 MB / 446.1 MB Notification: Performance of Templates: time 0.07532/0.8832, allocations: 31.84 MB / 0.702 GB, free: 11.32 MB / 478.1 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)