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.001455/0.001455, allocations: 105.9 kB / 16.41 MB, free: 6.457 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.54/1.54, allocations: 222.9 MB / 240.1 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.001622/0.001622, allocations: 192.5 kB / 290.4 MB, free: 2.117 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0366/0.0366, allocations: 8.805 MB / 349.3 MB, free: 4.586 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001727/0.001727, allocations: 75.88 kB / 464.6 MB, free: 13.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1141, allocations: 51.56 MB / 0.5041 GB, free: 9.465 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Steinmetz): time 0.01829/0.1325, allocations: 13.6 MB / 0.5173 GB, free: 11.8 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01067/0.1432, allocations: 4.446 MB / 0.5217 GB, free: 7.344 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003116/0.1463, allocations: 75.75 kB / 0.5217 GB, free: 7.27 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003779/0.1501, allocations: 0.9784 MB / 0.5227 GB, free: 6.285 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005552/0.1558, allocations: 1.304 MB / 0.524 GB, free: 4.977 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002962/0.1587, allocations: 0.8904 MB / 0.5248 GB, free: 4.086 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2812/0.44, allocations: 4.178 MB / 0.5289 GB, free: 5.797 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004372/0.4444, allocations: 3.193 MB / 0.532 GB, free: 5.238 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003441/0.4479, allocations: 1.918 MB / 0.5339 GB, free: 5.102 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003971/0.4519, allocations: 2.069 MB / 0.5359 GB, free: 4.723 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001477/0.4534, allocations: 0.5089 MB / 0.5364 GB, free: 4.723 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002433/0.4558, allocations: 0.7082 MB / 0.5371 GB, free: 4.723 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001127/0.4569, allocations: 1.097 MB / 0.5382 GB, free: 4.59 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003522/0.4605, allocations: 2.144 MB / 0.5403 GB, free: 4.066 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01121/0.4717, allocations: 6.687 MB / 0.5468 GB, free: 3.402 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.945e-06/0.4718, allocations: 0.5 kB / 0.5468 GB, free: 3.402 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.207e-06/0.4718, allocations: 3.141 kB / 0.5468 GB, free: 3.402 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002756/0.472, allocations: 0.5625 kB / 0.5468 GB, free: 3.402 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.01667/0.4887, allocations: 4.407 MB / 0.5511 GB, free: 1.793 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.905e-05/0.4888, allocations: 13.05 kB / 0.5511 GB, free: 1.793 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00479/0.4936, allocations: 0.825 MB / 0.5519 GB, free: 1.598 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005372/0.499, allocations: 2.438 MB / 0.5543 GB, free: 1.027 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002389/0.4993, allocations: 246.4 kB / 0.5546 GB, free: 1.02 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008658/0.5001, allocations: 331.5 kB / 0.5549 GB, free: 0.9883 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008552/0.5087, allocations: 4.319 MB / 0.5591 GB, free: 14.43 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.721e-05/0.5088, allocations: 7.062 kB / 0.5591 GB, free: 14.43 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003539/0.5092, allocations: 133.7 kB / 0.5592 GB, free: 14.33 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001355/0.5093, allocations: 147.5 kB / 0.5594 GB, free: 14.31 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006441/0.5158, allocations: 3.595 MB / 0.5629 GB, free: 12.39 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02084/0.5366, allocations: 13.67 MB / 0.5762 GB, free: 1.477 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006943/0.5436, allocations: 6.641 MB / 0.5827 GB, free: 10.01 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002457/0.5461, allocations: 1.393 MB / 0.5841 GB, free: 8.621 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007774/0.5539, allocations: 3.658 MB / 0.5876 GB, free: 4.926 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00145/0.5554, allocations: 0.9442 MB / 0.5886 GB, free: 3.953 MB / 398.1 MB Notification: Performance of pre-optimization done (n=143): time 3.557e-06/0.5554, allocations: 0 / 0.5886 GB, free: 3.953 MB / 398.1 MB Notification: Performance of matching and sorting (n=146): time 0.01176/0.5671, allocations: 5.981 MB / 0.5944 GB, free: 13.79 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001211/0.5673, allocations: 230.9 kB / 0.5946 GB, free: 13.52 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002686/0.57, allocations: 1.784 MB / 0.5964 GB, free: 11.73 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001156/0.5701, allocations: 57.7 kB / 0.5964 GB, free: 11.67 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00145/0.5716, allocations: 1.464 MB / 0.5979 GB, free: 10.2 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003854/0.572, allocations: 0.4968 MB / 0.5983 GB, free: 9.703 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004996/0.5725, allocations: 343.2 kB / 0.5987 GB, free: 9.363 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.482e-05/0.5726, allocations: 301.1 kB / 0.599 GB, free: 9.066 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001034/0.5736, allocations: 0.6949 MB / 0.5996 GB, free: 8.371 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00147/0.5751, allocations: 1.356 MB / 0.601 GB, free: 6.75 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002571/0.5777, allocations: 2.116 MB / 0.603 GB, free: 4.453 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.029e-05/0.5777, allocations: 8 kB / 0.603 GB, free: 4.445 MB / 414.1 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.004011/0.5817, allocations: 2.637 MB / 0.6056 GB, free: 1.891 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.7e-05/0.5817, allocations: 12 kB / 0.6056 GB, free: 1.879 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.617e-05/0.5818, allocations: 23.84 kB / 0.6056 GB, free: 1.859 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009219/0.5827, allocations: 366.9 kB / 0.606 GB, free: 1.488 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00129/0.584, allocations: 394.6 kB / 0.6064 GB, free: 1.129 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008361/0.5924, allocations: 8.448 MB / 0.6146 GB, free: 8.188 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002162/0.5946, allocations: 99.86 kB / 0.6147 GB, free: 8.09 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002799/0.5949, allocations: 80 kB / 0.6148 GB, free: 8.012 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.002574/0.5974, allocations: 1.032 MB / 0.6158 GB, free: 6.996 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006495/0.5981, allocations: 193.7 kB / 0.616 GB, free: 6.805 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004716/0.6028, allocations: 2.33 MB / 0.6183 GB, free: 4.434 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.705e-05/0.6029, allocations: 19.98 kB / 0.6183 GB, free: 4.414 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.864e-05/0.6029, allocations: 11.98 kB / 0.6183 GB, free: 4.402 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.85e-05/0.6029, allocations: 11.92 kB / 0.6183 GB, free: 4.391 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01087/0.6138, allocations: 5.126 MB / 0.6233 GB, free: 15.19 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.346e-06/0.6138, allocations: 0 / 0.6233 GB, free: 15.19 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000809/0.6147, allocations: 178.5 kB / 0.6235 GB, free: 15.02 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001526/0.6162, allocations: 0.531 MB / 0.624 GB, free: 14.48 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001394/0.6164, allocations: 43.98 kB / 0.624 GB, free: 14.43 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01332/0.6297, allocations: 13.24 MB / 0.637 GB, free: 452 kB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.946e-06/0.6297, allocations: 8.281 kB / 0.637 GB, free: 444 kB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006065/0.6358, allocations: 3.292 MB / 0.6402 GB, free: 13.09 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001312/0.6372, allocations: 426.6 kB / 0.6406 GB, free: 12.65 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007134/0.6379, allocations: 39.98 kB / 0.6406 GB, free: 12.61 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001337/0.6392, allocations: 67.89 kB / 0.6407 GB, free: 12.54 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003259/0.6396, allocations: 111.8 kB / 0.6408 GB, free: 12.44 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.666e-05/0.6397, allocations: 39.98 kB / 0.6408 GB, free: 12.4 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002585/0.6423, allocations: 1.219 MB / 0.642 GB, free: 11.19 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6423, allocations: 0 / 0.642 GB, free: 11.19 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003135/0.6454, allocations: 0.5977 MB / 0.6426 GB, free: 10.59 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.0004379/0.6459, allocations: 167.1 kB / 0.6428 GB, free: 10.43 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004084/0.65, allocations: 2.423 MB / 0.6451 GB, free: 7.992 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.485e-06/0.65, allocations: 0 / 0.6451 GB, free: 7.992 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002726/0.6527, allocations: 1.791 MB / 0.6469 GB, free: 6.145 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003361/0.6561, allocations: 0.5579 MB / 0.6474 GB, free: 5.594 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01255/0.6687, allocations: 5.885 MB / 0.6532 GB, free: 15.68 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003028/0.6717, allocations: 2.281 MB / 0.6554 GB, free: 13.37 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006556/0.6724, allocations: 143.4 kB / 0.6556 GB, free: 13.23 MB / 478.1 MB Notification: Performance of SimCode: time 1.173e-06/0.6724, allocations: 0 / 0.6556 GB, free: 13.23 MB / 478.1 MB Notification: Performance of Templates: time 0.3981/1.071, allocations: 130.6 MB / 0.7831 GB, free: 150.3 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)