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.001291/0.001291, allocations: 112 kB / 16.41 MB, free: 6.484 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.429/1.429, allocations: 222.9 MB / 240.1 MB, free: 4.398 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.001662/0.001662, allocations: 188.5 kB / 290.4 MB, free: 2.121 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0336/0.0336, allocations: 8.804 MB / 349.3 MB, free: 4.582 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001465, allocations: 79.88 kB / 464.6 MB, free: 13.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1226, allocations: 51.57 MB / 0.5041 GB, free: 9.457 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Steinmetz): time 0.0175/0.1402, allocations: 13.59 MB / 0.5173 GB, free: 11.8 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01036/0.1506, allocations: 4.446 MB / 0.5217 GB, free: 7.344 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003478/0.1541, allocations: 75.75 kB / 0.5217 GB, free: 7.27 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003566/0.1577, allocations: 0.9822 MB / 0.5227 GB, free: 6.281 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005534/0.1633, allocations: 1.301 MB / 0.524 GB, free: 4.973 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002998/0.1663, allocations: 0.8913 MB / 0.5248 GB, free: 4.082 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.3133/0.4796, allocations: 4.173 MB / 0.5289 GB, free: 5.77 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0049/0.4846, allocations: 3.181 MB / 0.532 GB, free: 5.203 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003559/0.4882, allocations: 1.924 MB / 0.5339 GB, free: 5.066 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004351/0.4926, allocations: 2.071 MB / 0.5359 GB, free: 4.688 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001503/0.4941, allocations: 0.5085 MB / 0.5364 GB, free: 4.688 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002716/0.4968, allocations: 0.7067 MB / 0.5371 GB, free: 4.688 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001428/0.4983, allocations: 1.103 MB / 0.5382 GB, free: 4.555 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004989/0.5033, allocations: 2.14 MB / 0.5403 GB, free: 4.031 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01146/0.5148, allocations: 6.683 MB / 0.5468 GB, free: 3.367 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.159e-05/0.5148, allocations: 3.312 kB / 0.5468 GB, free: 3.367 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.5148, allocations: 3.375 kB / 0.5468 GB, free: 3.367 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002749/0.5151, allocations: 4.625 kB / 0.5468 GB, free: 3.363 MB / 366.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.01748/0.5326, allocations: 4.407 MB / 0.5511 GB, free: 1.758 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.26e-05/0.5326, allocations: 8.781 kB / 0.5511 GB, free: 1.758 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005395/0.5381, allocations: 0.8253 MB / 0.5519 GB, free: 1.562 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006603/0.5447, allocations: 2.437 MB / 0.5543 GB, free: 0.9961 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003236/0.545, allocations: 244.1 kB / 0.5546 GB, free: 0.9883 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001668/0.5467, allocations: 331.7 kB / 0.5549 GB, free: 0.9141 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01479/0.5615, allocations: 4.321 MB / 0.5591 GB, free: 14.36 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001113/0.5617, allocations: 10.56 kB / 0.5591 GB, free: 14.36 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004287/0.5621, allocations: 132.1 kB / 0.5592 GB, free: 14.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001962/0.5623, allocations: 153.6 kB / 0.5594 GB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007641/0.57, allocations: 3.589 MB / 0.5629 GB, free: 12.32 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02947/0.5995, allocations: 13.67 MB / 0.5762 GB, free: 1.414 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006984/0.6065, allocations: 6.64 MB / 0.5827 GB, free: 9.953 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00265/0.6092, allocations: 1.397 MB / 0.5841 GB, free: 8.559 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008081/0.6173, allocations: 3.661 MB / 0.5877 GB, free: 4.859 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001585/0.6189, allocations: 0.9349 MB / 0.5886 GB, free: 3.895 MB / 398.1 MB Notification: Performance of pre-optimization done (n=143): time 5.029e-06/0.619, allocations: 0 / 0.5886 GB, free: 3.895 MB / 398.1 MB Notification: Performance of matching and sorting (n=146): time 0.01365/0.6326, allocations: 5.991 MB / 0.5944 GB, free: 13.73 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001345/0.6328, allocations: 230.9 kB / 0.5946 GB, free: 13.45 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00417/0.637, allocations: 1.784 MB / 0.5964 GB, free: 11.67 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003532/0.6374, allocations: 53.7 kB / 0.5964 GB, free: 11.61 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001825/0.6392, allocations: 1.469 MB / 0.5979 GB, free: 10.13 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007514/0.64, allocations: 0.4955 MB / 0.5983 GB, free: 9.637 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009106/0.6409, allocations: 346.8 kB / 0.5987 GB, free: 9.297 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.641, allocations: 301.1 kB / 0.599 GB, free: 9 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001372/0.6424, allocations: 0.6949 MB / 0.5996 GB, free: 8.305 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001787/0.6442, allocations: 1.36 MB / 0.601 GB, free: 6.68 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00311/0.6473, allocations: 2.11 MB / 0.603 GB, free: 4.387 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.256e-05/0.6474, allocations: 4 kB / 0.603 GB, free: 4.383 MB / 414.1 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.005143/0.6525, allocations: 2.641 MB / 0.6056 GB, free: 1.824 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.986e-05/0.6526, allocations: 12 kB / 0.6056 GB, free: 1.812 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.093e-05/0.6527, allocations: 20 kB / 0.6056 GB, free: 1.793 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001107/0.6538, allocations: 369.9 kB / 0.606 GB, free: 1.422 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001612/0.6554, allocations: 390.2 kB / 0.6064 GB, free: 1.066 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008995/0.6644, allocations: 8.445 MB / 0.6146 GB, free: 8.117 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002203/0.6667, allocations: 91.88 kB / 0.6147 GB, free: 8.027 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000238/0.6669, allocations: 83.98 kB / 0.6148 GB, free: 7.945 MB / 430.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.002429/0.6694, allocations: 1.031 MB / 0.6158 GB, free: 6.93 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005148/0.6699, allocations: 193.7 kB / 0.616 GB, free: 6.738 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004143/0.674, allocations: 2.341 MB / 0.6183 GB, free: 4.359 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-05/0.6741, allocations: 16 kB / 0.6183 GB, free: 4.344 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.346e-05/0.6741, allocations: 12 kB / 0.6183 GB, free: 4.332 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.677e-05/0.6741, allocations: 8.156 kB / 0.6183 GB, free: 4.324 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00921/0.6833, allocations: 5.127 MB / 0.6233 GB, free: 15.12 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.274e-06/0.6834, allocations: 3.938 kB / 0.6233 GB, free: 15.12 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007939/0.6842, allocations: 176 kB / 0.6235 GB, free: 14.95 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001448/0.6857, allocations: 0.5321 MB / 0.624 GB, free: 14.41 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001241/0.6858, allocations: 43.98 kB / 0.624 GB, free: 14.37 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01245/0.6983, allocations: 13.24 MB / 0.637 GB, free: 376 kB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.524e-06/0.6983, allocations: 11.06 kB / 0.637 GB, free: 368 kB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005794/0.7041, allocations: 3.283 MB / 0.6402 GB, free: 13.02 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001555/0.7057, allocations: 426.6 kB / 0.6406 GB, free: 12.59 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002933/0.706, allocations: 43.98 kB / 0.6406 GB, free: 12.54 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008823/0.7069, allocations: 63.89 kB / 0.6407 GB, free: 12.48 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003563/0.7073, allocations: 115.8 kB / 0.6408 GB, free: 12.37 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.844e-05/0.7074, allocations: 39.98 kB / 0.6408 GB, free: 12.33 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002075/0.7095, allocations: 1.219 MB / 0.642 GB, free: 11.12 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.7095, allocations: 0 / 0.642 GB, free: 11.12 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003047/0.7125, allocations: 0.5938 MB / 0.6426 GB, free: 10.53 MB / 462.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.0004877/0.713, allocations: 175 kB / 0.6428 GB, free: 10.36 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003939/0.717, allocations: 2.426 MB / 0.6451 GB, free: 7.922 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/0.717, allocations: 0 / 0.6451 GB, free: 7.922 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002598/0.7196, allocations: 1.791 MB / 0.6469 GB, free: 6.074 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002937/0.7226, allocations: 0.548 MB / 0.6474 GB, free: 5.531 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01196/0.7345, allocations: 5.887 MB / 0.6532 GB, free: 15.62 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002746/0.7374, allocations: 2.285 MB / 0.6554 GB, free: 13.3 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008672/0.7383, allocations: 139.4 kB / 0.6555 GB, free: 13.16 MB / 478.1 MB Notification: Performance of SimCode: time 2.003e-06/0.7383, allocations: 4 kB / 0.6556 GB, free: 13.16 MB / 478.1 MB Notification: Performance of Templates: time 0.4231/1.161, allocations: 130.6 MB / 0.7831 GB, free: 150 MB / 0.5294 GB 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)