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.001003/0.001003, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.266/1.266, allocations: 222.9 MB / 238.8 MB, free: 4.762 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.001161/0.001161, allocations: 192.5 kB / 289.1 MB, free: 2.508 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03152/0.03152, allocations: 8.789 MB / 348.1 MB, free: 4.895 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.001291, allocations: 75.53 kB / 410.4 MB, free: 42.46 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09267/0.09397, allocations: 51.56 MB / 461.9 MB, free: 14.9 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Steinmetz): time 0.013/0.107, allocations: 13.44 MB / 475.4 MB, free: 1.383 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007956/0.115, allocations: 4.392 MB / 479.8 MB, free: 12.98 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002733/0.1178, allocations: 75.75 kB / 479.9 MB, free: 12.9 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002964/0.1208, allocations: 0.8628 MB / 480.7 MB, free: 12.04 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004359/0.1252, allocations: 1.176 MB / 481.9 MB, free: 10.86 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002183/0.1274, allocations: 0.8262 MB / 482.7 MB, free: 10.03 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005679/0.1331, allocations: 4.38 MB / 487.1 MB, free: 5.637 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004676/0.1378, allocations: 2.663 MB / 489.8 MB, free: 2.902 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002509/0.1403, allocations: 1.525 MB / 491.3 MB, free: 1.371 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002839/0.1432, allocations: 1.895 MB / 493.2 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00092/0.1441, allocations: 300 kB / 493.5 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001783/0.1459, allocations: 0.4997 MB / 494 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001084/0.147, allocations: 0.8759 MB / 494.9 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002241/0.1493, allocations: 1.901 MB / 496.8 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005041/0.1543, allocations: 6.465 MB / 0.4914 GB, free: 5.402 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.1544, allocations: 0 / 0.4914 GB, free: 5.402 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.22e-07/0.1544, allocations: 0 / 0.4914 GB, free: 5.402 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001341/0.1545, allocations: 0 / 0.4914 GB, free: 5.402 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.009635/0.1641, allocations: 4.398 MB / 0.4957 GB, free: 0.9297 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.341e-05/0.1642, allocations: 8.031 kB / 0.4957 GB, free: 0.9219 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00392/0.1681, allocations: 0.8241 MB / 0.4965 GB, free: 96 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003895/0.172, allocations: 2.33 MB / 0.4988 GB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001592/0.1722, allocations: 246.9 kB / 0.499 GB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000551/0.1728, allocations: 336 kB / 0.4994 GB, free: 13.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00688/0.1797, allocations: 4.314 MB / 0.5036 GB, free: 8.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.768e-05/0.1798, allocations: 11.89 kB / 0.5036 GB, free: 8.758 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002791/0.1801, allocations: 132 kB / 0.5037 GB, free: 8.629 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000122/0.1802, allocations: 150.5 kB / 0.5039 GB, free: 8.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005525/0.1857, allocations: 3.594 MB / 0.5074 GB, free: 4.879 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0205/0.2062, allocations: 13.84 MB / 0.5209 GB, free: 6.66 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1906/0.3968, allocations: 6.637 MB / 0.5274 GB, free: 63.75 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002411/0.3993, allocations: 1.385 MB / 0.5287 GB, free: 63.73 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005995/0.4053, allocations: 3.665 MB / 0.5323 GB, free: 63.16 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001458/0.4068, allocations: 0.941 MB / 0.5332 GB, free: 63.04 MB / 366.1 MB Notification: Performance of pre-optimization done (n=143): time 3.056e-06/0.4068, allocations: 0 / 0.5332 GB, free: 63.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=146): time 0.01124/0.4181, allocations: 5.986 MB / 0.5391 GB, free: 61.49 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.362e-05/0.4181, allocations: 227.2 kB / 0.5393 GB, free: 61.24 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002672/0.4208, allocations: 1.785 MB / 0.541 GB, free: 61.05 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.113e-05/0.4209, allocations: 54.58 kB / 0.5411 GB, free: 61 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009275/0.4219, allocations: 1.466 MB / 0.5425 GB, free: 59.89 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002913/0.4222, allocations: 0.4963 MB / 0.543 GB, free: 59.51 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004667/0.4226, allocations: 340.7 kB / 0.5433 GB, free: 59.34 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.514e-05/0.4227, allocations: 304.3 kB / 0.5436 GB, free: 59.05 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001001/0.4237, allocations: 0.692 MB / 0.5443 GB, free: 58.78 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001322/0.425, allocations: 1.353 MB / 0.5456 GB, free: 57.71 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002384/0.4274, allocations: 2.115 MB / 0.5477 GB, free: 56.3 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.235e-05/0.4274, allocations: 4.969 kB / 0.5477 GB, free: 56.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.003724/0.4312, allocations: 2.643 MB / 0.5503 GB, free: 55.1 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.535e-05/0.4312, allocations: 15.72 kB / 0.5503 GB, free: 55.1 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.74e-05/0.4312, allocations: 15.78 kB / 0.5503 GB, free: 55.1 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000808/0.432, allocations: 378.6 kB / 0.5506 GB, free: 54.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001169/0.4332, allocations: 398.2 kB / 0.551 GB, free: 54.92 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004979/0.4382, allocations: 7.711 MB / 0.5586 GB, free: 48.31 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001341/0.4396, allocations: 94.3 kB / 0.5586 GB, free: 48.28 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001105/0.4397, allocations: 84.86 kB / 0.5587 GB, free: 48.26 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.001485/0.4412, allocations: 1.028 MB / 0.5597 GB, free: 47.62 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002803/0.4415, allocations: 203.2 kB / 0.5599 GB, free: 47.52 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0036/0.4451, allocations: 2.34 MB / 0.5622 GB, free: 46.04 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.288e-05/0.4451, allocations: 15.28 kB / 0.5622 GB, free: 46.04 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-05/0.4451, allocations: 7.594 kB / 0.5622 GB, free: 46.04 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.304e-05/0.4451, allocations: 3.984 kB / 0.5622 GB, free: 46.03 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008541/0.4537, allocations: 5.139 MB / 0.5673 GB, free: 42.28 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.763e-06/0.4537, allocations: 0 / 0.5673 GB, free: 42.28 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007178/0.4545, allocations: 175.8 kB / 0.5674 GB, free: 42.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001277/0.4558, allocations: 0.5226 MB / 0.5679 GB, free: 41.57 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001111/0.4559, allocations: 48.86 kB / 0.568 GB, free: 41.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008548/0.4644, allocations: 12.1 MB / 0.5798 GB, free: 28.68 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.4645, allocations: 10.12 kB / 0.5798 GB, free: 28.68 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004254/0.4687, allocations: 3.275 MB / 0.583 GB, free: 25.31 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009164/0.4697, allocations: 435.6 kB / 0.5834 GB, free: 24.87 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005173/0.4702, allocations: 43.98 kB / 0.5835 GB, free: 24.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001043/0.4713, allocations: 59.95 kB / 0.5835 GB, free: 24.77 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002573/0.4715, allocations: 117 kB / 0.5836 GB, free: 24.65 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.604e-05/0.4716, allocations: 43.98 kB / 0.5837 GB, free: 24.61 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001738/0.4734, allocations: 1.215 MB / 0.5849 GB, free: 23.4 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.4734, allocations: 0 / 0.5849 GB, free: 23.4 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002551/0.4759, allocations: 0.5937 MB / 0.5854 GB, free: 22.81 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.0003384/0.4763, allocations: 175.1 kB / 0.5856 GB, free: 22.63 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003111/0.4794, allocations: 2.408 MB / 0.588 GB, free: 20.16 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.4794, allocations: 4 kB / 0.588 GB, free: 20.15 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002094/0.4815, allocations: 1.761 MB / 0.5897 GB, free: 18.32 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002446/0.484, allocations: 0.5198 MB / 0.5902 GB, free: 17.82 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008982/0.493, allocations: 7.313 MB / 0.5973 GB, free: 10.5 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001906/0.4949, allocations: 2.335 MB / 0.5996 GB, free: 8.129 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001389/0.4963, allocations: 413.3 kB / 0.6 GB, free: 7.723 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003368/0.4967, allocations: 127.4 kB / 0.6001 GB, free: 7.598 MB / 366.1 MB Notification: Performance of SimCode: time 1.313e-06/0.4967, allocations: 0 / 0.6001 GB, free: 7.598 MB / 366.1 MB Notification: Performance of Templates: time 0.04809/0.5448, allocations: 29.75 MB / 0.6292 GB, free: 10.13 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 -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe 2>&1)