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.001044/0.001044, allocations: 106.3 kB / 16.37 MB, free: 6.477 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.368/1.368, allocations: 222.9 MB / 240 MB, free: 4.391 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.001344/0.001343, allocations: 187.5 kB / 290.3 MB, free: 2.129 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03373/0.03373, allocations: 8.787 MB / 349.3 MB, free: 4.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00154/0.00154, allocations: 79.62 kB / 412.5 MB, free: 41.64 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09352/0.09508, allocations: 51.55 MB / 464.1 MB, free: 13.55 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Steinmetz): time 0.01489/0.11, allocations: 13.59 MB / 477.7 MB, free: 15.88 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008667/0.1187, allocations: 4.454 MB / 482.1 MB, free: 11.41 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002352/0.1211, allocations: 75.75 kB / 482.2 MB, free: 11.34 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002894/0.124, allocations: 0.9862 MB / 483.2 MB, free: 10.35 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00446/0.1285, allocations: 1.297 MB / 484.5 MB, free: 9.043 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002382/0.1309, allocations: 0.8996 MB / 485.4 MB, free: 8.145 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005568/0.1365, allocations: 4.173 MB / 489.6 MB, free: 3.961 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003813/0.1403, allocations: 3.19 MB / 492.7 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003107/0.1434, allocations: 1.904 MB / 494.6 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00323/0.1467, allocations: 2.074 MB / 496.7 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008671/0.1476, allocations: 0.5117 MB / 497.2 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001594/0.1492, allocations: 0.7068 MB / 497.9 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009304/0.1501, allocations: 1.098 MB / 499 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002561/0.1527, allocations: 2.147 MB / 0.4894 GB, free: 8.227 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007029/0.1597, allocations: 6.672 MB / 0.496 GB, free: 1.535 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.1598, allocations: 3.938 kB / 0.496 GB, free: 1.531 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1598, allocations: 4 kB / 0.496 GB, free: 1.527 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001677/0.1599, allocations: 0 / 0.496 GB, free: 1.527 MB / 334.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.01251/0.1725, allocations: 4.414 MB / 0.5003 GB, free: 13.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.1725, allocations: 8.031 kB / 0.5003 GB, free: 13.03 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004325/0.1768, allocations: 0.8163 MB / 0.5011 GB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005365/0.1822, allocations: 2.439 MB / 0.5035 GB, free: 9.715 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001939/0.1824, allocations: 246.9 kB / 0.5037 GB, free: 9.473 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007157/0.1832, allocations: 340 kB / 0.504 GB, free: 9.141 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00754/0.1907, allocations: 4.31 MB / 0.5082 GB, free: 4.777 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.301e-05/0.1908, allocations: 7.906 kB / 0.5082 GB, free: 4.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002885/0.1911, allocations: 136 kB / 0.5084 GB, free: 4.637 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001439/0.1913, allocations: 154.4 kB / 0.5085 GB, free: 4.484 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006046/0.1973, allocations: 3.594 MB / 0.512 GB, free: 0.8828 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02206/0.2194, allocations: 13.68 MB / 0.5254 GB, free: 2.832 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2035/0.423, allocations: 6.62 MB / 0.5318 GB, free: 59.63 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002689/0.4257, allocations: 1.386 MB / 0.5332 GB, free: 59.61 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008059/0.4338, allocations: 3.661 MB / 0.5368 GB, free: 59.03 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001807/0.4356, allocations: 0.9391 MB / 0.5377 GB, free: 58.91 MB / 366.1 MB Notification: Performance of pre-optimization done (n=143): time 5.31e-06/0.4357, allocations: 0 / 0.5377 GB, free: 58.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=146): time 0.01272/0.4484, allocations: 5.991 MB / 0.5435 GB, free: 57.38 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.052e-05/0.4485, allocations: 226.1 kB / 0.5438 GB, free: 57.12 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003557/0.4521, allocations: 1.781 MB / 0.5455 GB, free: 56.62 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001551/0.4522, allocations: 57.67 kB / 0.5455 GB, free: 56.57 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001238/0.4535, allocations: 1.466 MB / 0.547 GB, free: 55.46 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000435/0.4539, allocations: 0.4958 MB / 0.5475 GB, free: 55.08 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006752/0.4546, allocations: 343.9 kB / 0.5478 GB, free: 54.92 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.916e-05/0.4547, allocations: 305 kB / 0.5481 GB, free: 54.62 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001204/0.4559, allocations: 0.6928 MB / 0.5488 GB, free: 54.36 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001559/0.4575, allocations: 1.35 MB / 0.5501 GB, free: 53.29 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002745/0.4602, allocations: 2.119 MB / 0.5521 GB, free: 51.89 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.512e-05/0.4603, allocations: 5.156 kB / 0.5522 GB, free: 51.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.004716/0.465, allocations: 2.64 MB / 0.5547 GB, free: 50.71 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.679e-05/0.465, allocations: 15.94 kB / 0.5547 GB, free: 50.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.594e-05/0.4651, allocations: 19.78 kB / 0.5548 GB, free: 50.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009072/0.466, allocations: 377.5 kB / 0.5551 GB, free: 50.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001274/0.4673, allocations: 384.8 kB / 0.5555 GB, free: 50.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006321/0.4736, allocations: 8.435 MB / 0.5637 GB, free: 43.28 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001637/0.4753, allocations: 97.5 kB / 0.5638 GB, free: 43.24 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000219/0.4755, allocations: 82.47 kB / 0.5639 GB, free: 43.23 MB / 366.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.002285/0.4778, allocations: 1.04 MB / 0.5649 GB, free: 42.61 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006465/0.4785, allocations: 203.6 kB / 0.5651 GB, free: 42.5 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003884/0.4824, allocations: 2.339 MB / 0.5674 GB, free: 41.02 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.005e-05/0.4824, allocations: 11.81 kB / 0.5674 GB, free: 41.02 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.587e-05/0.4824, allocations: 9.312 kB / 0.5674 GB, free: 41.02 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.36e-05/0.4824, allocations: 9.422 kB / 0.5674 GB, free: 41.02 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007804/0.4902, allocations: 5.133 MB / 0.5724 GB, free: 37.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.635e-06/0.4903, allocations: 3.938 kB / 0.5724 GB, free: 37.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007256/0.491, allocations: 175.2 kB / 0.5726 GB, free: 37.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00122/0.4922, allocations: 0.5292 MB / 0.5731 GB, free: 36.96 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.644e-05/0.4923, allocations: 44.62 kB / 0.5732 GB, free: 36.92 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009063/0.5014, allocations: 13.25 MB / 0.5861 GB, free: 22.91 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.5015, allocations: 0 / 0.5861 GB, free: 22.91 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00474/0.5062, allocations: 3.277 MB / 0.5893 GB, free: 19.54 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009533/0.5072, allocations: 435.8 kB / 0.5897 GB, free: 19.1 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002522/0.5074, allocations: 43.92 kB / 0.5898 GB, free: 19.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007707/0.5082, allocations: 63.95 kB / 0.5898 GB, free: 18.99 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002721/0.5085, allocations: 110 kB / 0.5899 GB, free: 18.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.39e-05/0.5086, allocations: 47.98 kB / 0.59 GB, free: 18.84 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001395/0.51, allocations: 1.211 MB / 0.5912 GB, free: 17.64 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.51, allocations: 3.938 kB / 0.5912 GB, free: 17.63 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002126/0.5121, allocations: 0.6041 MB / 0.5917 GB, free: 17.03 MB / 366.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.0002891/0.5124, allocations: 173 kB / 0.5919 GB, free: 16.86 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002911/0.5153, allocations: 2.412 MB / 0.5943 GB, free: 14.38 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.5154, allocations: 0.7812 kB / 0.5943 GB, free: 14.38 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001913/0.5173, allocations: 1.76 MB / 0.596 GB, free: 12.55 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001923/0.5192, allocations: 0.5517 MB / 0.5965 GB, free: 12.02 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007738/0.527, allocations: 5.898 MB / 0.6023 GB, free: 6.129 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001482/0.5285, allocations: 2.341 MB / 0.6046 GB, free: 3.758 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001289/0.5298, allocations: 422 kB / 0.605 GB, free: 3.363 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002728/0.53, allocations: 127.4 kB / 0.6051 GB, free: 3.238 MB / 366.1 MB Notification: Performance of SimCode: time 8.12e-07/0.53, allocations: 0 / 0.6051 GB, free: 3.238 MB / 366.1 MB Notification: Performance of Templates: time 0.0513/0.5813, allocations: 30.84 MB / 0.6352 GB, free: 4.719 MB / 398.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 -s gbode -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe 2>&1)