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.001734/0.001734, allocations: 175.2 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04054/0.04054, allocations: 8.701 MB / 21.96 MB, free: 3.367 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.37/1.37, allocations: 221.4 MB / 246 MB, free: 3.602 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.000854/0.0008542, allocations: 98.75 kB / 299.1 MB, free: 2.984 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.413e-05/3.416e-05, allocations: 7.984 kB / 359.5 MB, free: 6.52 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2808/0.2809, allocations: 52.54 MB / 412.1 MB, free: 22.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4307/0.7117, allocations: 110.2 MB / 0.51 GB, free: 94.59 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000184/0.7119, allocations: 78.05 kB / 0.5101 GB, free: 94.59 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1769/0.8888, allocations: 80.94 MB / 0.5891 GB, free: 16.25 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.8888, allocations: 3.938 kB / 0.5891 GB, free: 16.25 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003477/0.8892, allocations: 83.88 kB / 0.5892 GB, free: 16.16 MB / 378.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.0118/0.901, allocations: 3.233 MB / 0.5923 GB, free: 12.86 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.01e-05/0.9011, allocations: 8.031 kB / 0.5924 GB, free: 12.86 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00483/0.9059, allocations: 0.7373 MB / 0.5931 GB, free: 12.11 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009315/0.9153, allocations: 3.328 MB / 0.5963 GB, free: 8.727 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003044/0.9156, allocations: 242.5 kB / 0.5966 GB, free: 8.488 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001391/0.917, allocations: 335.8 kB / 0.5969 GB, free: 8.16 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01188/0.9289, allocations: 4.166 MB / 0.6009 GB, free: 3.875 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001922/0.9292, allocations: 4 kB / 0.6009 GB, free: 3.871 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009444/0.9301, allocations: 132 kB / 0.6011 GB, free: 3.742 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001812/0.9303, allocations: 142.5 kB / 0.6012 GB, free: 3.602 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007134/0.9375, allocations: 3.31 MB / 0.6044 GB, free: 292 kB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0246/0.9621, allocations: 13.88 MB / 0.618 GB, free: 2.031 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006512/0.9687, allocations: 6.553 MB / 0.6244 GB, free: 10.64 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002324/0.9711, allocations: 1.352 MB / 0.6257 GB, free: 9.297 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006605/0.9777, allocations: 3.647 MB / 0.6293 GB, free: 5.559 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001349/0.9791, allocations: 0.9001 MB / 0.6302 GB, free: 4.625 MB / 410.7 MB Notification: Performance of pre-optimization done (n=141): time 4.849e-06/0.9791, allocations: 7.938 kB / 0.6302 GB, free: 4.617 MB / 410.7 MB Notification: Performance of matching and sorting (n=144): time 0.00779/0.9869, allocations: 4.239 MB / 0.6343 GB, free: 272 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001289/0.9871, allocations: 222.9 kB / 0.6345 GB, free: 0 / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002526/0.9897, allocations: 1.537 MB / 0.636 GB, free: 14.46 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001404/0.9898, allocations: 49.7 kB / 0.6361 GB, free: 14.41 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001473/0.9913, allocations: 1.458 MB / 0.6375 GB, free: 12.93 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004399/0.9917, allocations: 0.4891 MB / 0.638 GB, free: 12.43 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.608e-05/0.9918, allocations: 36 kB / 0.638 GB, free: 12.4 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001723/0.992, allocations: 385.8 kB / 0.6384 GB, free: 12.02 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001048/0.9931, allocations: 0.6483 MB / 0.639 GB, free: 11.37 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00143/0.9945, allocations: 1.293 MB / 0.6403 GB, free: 9.805 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001296/0.9958, allocations: 0.9027 MB / 0.6411 GB, free: 8.902 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.258e-06/0.9958, allocations: 4 kB / 0.6411 GB, free: 8.898 MB / 426.7 MB Notification: Performance of matching and sorting (n=237) (initialization): time 0.004054/0.9999, allocations: 2.543 MB / 0.6436 GB, free: 6.316 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.807e-05/0.9999, allocations: 13.88 kB / 0.6436 GB, free: 6.305 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.607e-05/1, allocations: 23.95 kB / 0.6437 GB, free: 6.281 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009346/1.001, allocations: 372.3 kB / 0.644 GB, free: 5.902 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001275/1.002, allocations: 379.4 kB / 0.6444 GB, free: 5.531 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006973/1.009, allocations: 7.682 MB / 0.6519 GB, free: 13.31 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001865/1.011, allocations: 104 kB / 0.652 GB, free: 13.21 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001419/1.011, allocations: 80 kB / 0.6521 GB, free: 13.13 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.rmsI[3].mean.y_last,rmsI[3].mean.y_last,$PRE.rmsI[2].mean.y_last,rmsI[2].mean.y_last,$PRE.rmsI[1].mean.y_last,rmsI[1].mean.y_last,booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (206): * Single equations (assignments): 201 * 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%) 1,(1,100.0%) 7,(2,100.0%) 8,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003651/1.012, allocations: 224.4 kB / 0.6523 GB, free: 12.9 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002566/1.012, allocations: 193.7 kB / 0.6525 GB, free: 12.71 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003938/1.016, allocations: 2.27 MB / 0.6547 GB, free: 10.37 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.596e-05/1.016, allocations: 16 kB / 0.6547 GB, free: 10.36 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.159e-05/1.016, allocations: 8 kB / 0.6547 GB, free: 10.35 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.461e-05/1.016, allocations: 7.969 kB / 0.6547 GB, free: 10.34 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007931/1.024, allocations: 5.025 MB / 0.6596 GB, free: 5.18 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.663e-06/1.024, allocations: 0 / 0.6596 GB, free: 5.18 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007466/1.025, allocations: 175.7 kB / 0.6598 GB, free: 5.008 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001343/1.026, allocations: 0.5244 MB / 0.6603 GB, free: 4.465 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001078/1.026, allocations: 35.98 kB / 0.6603 GB, free: 4.43 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3414/1.368, allocations: 12.05 MB / 0.6721 GB, free: 80.21 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/1.368, allocations: 3.094 kB / 0.6721 GB, free: 80.21 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004805/1.372, allocations: 3.278 MB / 0.6753 GB, free: 79.61 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001128/1.374, allocations: 432.3 kB / 0.6757 GB, free: 79.51 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002362/1.374, allocations: 42.7 kB / 0.6758 GB, free: 79.51 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008459/1.375, allocations: 67.22 kB / 0.6758 GB, free: 79.51 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003151/1.375, allocations: 122.6 kB / 0.6759 GB, free: 79.51 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.604e-05/1.375, allocations: 40.81 kB / 0.676 GB, free: 79.51 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001673/1.377, allocations: 1.163 MB / 0.6771 GB, free: 79.39 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.3e-07/1.377, allocations: 1.969 kB / 0.6771 GB, free: 79.39 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002614/1.379, allocations: 0.6303 MB / 0.6777 GB, free: 79.39 MB / 442.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[1].mean.x,rmsI[2].mean.x,rmsI[3].mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (93): * Single equations (assignments): 84 * 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%) 1,(1,100.0%) 8,(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.00068/1.38, allocations: 426.2 kB / 0.6781 GB, free: 79.28 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003753/1.384, allocations: 2.32 MB / 0.6804 GB, free: 78.7 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.822e-06/1.384, allocations: 0 / 0.6804 GB, free: 78.7 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002222/1.386, allocations: 1.706 MB / 0.6821 GB, free: 78.01 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002354/1.388, allocations: 0.514 MB / 0.6826 GB, free: 78 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00856/1.397, allocations: 4.832 MB / 0.6873 GB, free: 76.87 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001972/1.399, allocations: 2.392 MB / 0.6896 GB, free: 76.09 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001679/1.401, allocations: 409.2 kB / 0.69 GB, free: 76.03 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002915/1.401, allocations: 126.7 kB / 0.6901 GB, free: 76.03 MB / 442.7 MB Notification: Performance of SimCode: time 1.483e-06/1.401, allocations: 4 kB / 0.6901 GB, free: 76.02 MB / 442.7 MB Notification: Performance of Templates: time 0.05817/1.459, allocations: 31.76 MB / 0.7212 GB, free: 74.46 MB / 442.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)