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: "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_Steinmetz,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_Steinmetz,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006241/0.006241, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.498/1.498, allocations: 222.9 MB / 239.4 MB, free: 4.547 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.001403/0.001403, allocations: 184.5 kB / 289.7 MB, free: 2.254 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03565/0.03565, allocations: 8.799 MB / 348.7 MB, free: 4.605 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001731/0.001731, allocations: 79.88 kB / 463.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.11, allocations: 51.57 MB / 0.5029 GB, free: 9.984 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Steinmetz): time 0.01566/0.1257, allocations: 13.59 MB / 0.5162 GB, free: 12.33 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009935/0.1357, allocations: 4.45 MB / 0.5205 GB, free: 7.867 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003112/0.1389, allocations: 75.75 kB / 0.5206 GB, free: 7.793 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003771/0.1427, allocations: 1.017 MB / 0.5216 GB, free: 6.77 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00621/0.149, allocations: 1.347 MB / 0.5229 GB, free: 5.414 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00391/0.1529, allocations: 0.892 MB / 0.5238 GB, free: 4.523 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009872/0.1628, allocations: 4.18 MB / 0.5279 GB, free: 328 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3019/0.4647, allocations: 3.183 MB / 0.531 GB, free: 5.059 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003132/0.4679, allocations: 1.922 MB / 0.5329 GB, free: 4.922 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003813/0.4717, allocations: 2.075 MB / 0.5349 GB, free: 4.547 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001455/0.4732, allocations: 0.5052 MB / 0.5354 GB, free: 4.547 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002421/0.4756, allocations: 0.7072 MB / 0.5361 GB, free: 4.547 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001164/0.4768, allocations: 1.098 MB / 0.5371 GB, free: 4.414 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003795/0.4806, allocations: 2.141 MB / 0.5392 GB, free: 3.887 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01184/0.4925, allocations: 6.703 MB / 0.5458 GB, free: 3.156 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.4925, allocations: 0 / 0.5458 GB, free: 3.156 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.4925, allocations: 6 kB / 0.5458 GB, free: 3.152 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002523/0.4928, allocations: 0 / 0.5458 GB, free: 3.152 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.01698/0.5098, allocations: 4.496 MB / 0.5502 GB, free: 1.449 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.203e-05/0.5098, allocations: 9.094 kB / 0.5502 GB, free: 1.449 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001007/0.5109, allocations: 466.8 kB / 0.5506 GB, free: 1.391 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004569/0.5154, allocations: 0.8432 MB / 0.5515 GB, free: 1.18 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005815/0.5213, allocations: 2.453 MB / 0.5538 GB, free: 0.5234 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002455/0.5215, allocations: 247.4 kB / 0.5541 GB, free: 424 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009743/0.5225, allocations: 328 kB / 0.5544 GB, free: 312 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009199/0.5317, allocations: 4.322 MB / 0.5586 GB, free: 13.75 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.39e-05/0.5319, allocations: 5.453 kB / 0.5586 GB, free: 13.75 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003594/0.5322, allocations: 135.3 kB / 0.5587 GB, free: 13.64 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000172/0.5324, allocations: 150.9 kB / 0.5589 GB, free: 13.62 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006269/0.5387, allocations: 3.593 MB / 0.5624 GB, free: 11.71 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02467/0.5634, allocations: 13.71 MB / 0.5758 GB, free: 1.113 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006736/0.5701, allocations: 6.622 MB / 0.5823 GB, free: 9.664 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00231/0.5725, allocations: 1.402 MB / 0.5836 GB, free: 8.27 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00708/0.5796, allocations: 3.663 MB / 0.5872 GB, free: 4.574 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001431/0.581, allocations: 0.9417 MB / 0.5881 GB, free: 3.605 MB / 398.1 MB Notification: Performance of pre-optimization done (n=143): time 2.775e-06/0.5811, allocations: 0 / 0.5881 GB, free: 3.605 MB / 398.1 MB Notification: Performance of matching and sorting (n=146): time 0.0125/0.5936, allocations: 6.028 MB / 0.594 GB, free: 13.4 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001335/0.5937, allocations: 234.8 kB / 0.5942 GB, free: 13.12 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002924/0.5967, allocations: 1.792 MB / 0.596 GB, free: 11.33 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001188/0.5968, allocations: 53.7 kB / 0.596 GB, free: 11.27 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001538/0.5984, allocations: 1.503 MB / 0.5975 GB, free: 9.762 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004406/0.5988, allocations: 0.5172 MB / 0.598 GB, free: 9.25 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005211/0.5993, allocations: 343.4 kB / 0.5983 GB, free: 8.91 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001139/0.5994, allocations: 301.1 kB / 0.5986 GB, free: 8.613 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001095/0.6006, allocations: 0.6949 MB / 0.5993 GB, free: 7.918 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001724/0.6023, allocations: 1.353 MB / 0.6006 GB, free: 6.297 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002773/0.6051, allocations: 2.117 MB / 0.6027 GB, free: 3.996 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.076e-05/0.6051, allocations: 11.47 kB / 0.6027 GB, free: 3.988 MB / 414.1 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.004279/0.6094, allocations: 2.646 MB / 0.6053 GB, free: 1.426 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.251e-05/0.6094, allocations: 12 kB / 0.6053 GB, free: 1.414 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.631e-05/0.6095, allocations: 24 kB / 0.6053 GB, free: 1.391 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000979/0.6104, allocations: 377 kB / 0.6057 GB, free: 1.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001348/0.6118, allocations: 399 kB / 0.6061 GB, free: 0.6562 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008347/0.6202, allocations: 8.441 MB / 0.6143 GB, free: 7.719 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002735/0.6229, allocations: 87.92 kB / 0.6144 GB, free: 7.633 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001975/0.6231, allocations: 88.03 kB / 0.6145 GB, free: 7.547 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.002579/0.6257, allocations: 1.037 MB / 0.6155 GB, free: 6.527 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000541/0.6263, allocations: 206.7 kB / 0.6157 GB, free: 6.324 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004142/0.6304, allocations: 2.342 MB / 0.618 GB, free: 3.941 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.294e-05/0.6305, allocations: 12 kB / 0.618 GB, free: 3.93 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.306e-05/0.6305, allocations: 11.98 kB / 0.618 GB, free: 3.918 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.617e-05/0.6305, allocations: 7.969 kB / 0.618 GB, free: 3.91 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008507/0.639, allocations: 5.126 MB / 0.623 GB, free: 14.71 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.136e-06/0.639, allocations: 4 kB / 0.623 GB, free: 14.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007964/0.6398, allocations: 170.4 kB / 0.6232 GB, free: 14.55 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001414/0.6413, allocations: 0.5259 MB / 0.6237 GB, free: 14.01 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001066/0.6414, allocations: 39.98 kB / 0.6237 GB, free: 13.97 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01378/0.6552, allocations: 13.26 MB / 0.6367 GB, free: 15.97 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.794e-06/0.6552, allocations: 11.72 kB / 0.6367 GB, free: 15.96 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005741/0.661, allocations: 3.295 MB / 0.6399 GB, free: 12.62 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001292/0.6623, allocations: 435.7 kB / 0.6403 GB, free: 12.18 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002991/0.6626, allocations: 47.92 kB / 0.6404 GB, free: 12.13 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008913/0.6635, allocations: 63.95 kB / 0.6404 GB, free: 12.07 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003094/0.6638, allocations: 107.9 kB / 0.6405 GB, free: 11.96 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.943e-05/0.6639, allocations: 47.98 kB / 0.6406 GB, free: 11.91 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001862/0.6658, allocations: 1.215 MB / 0.6418 GB, free: 10.71 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.6658, allocations: 0 / 0.6418 GB, free: 10.71 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002612/0.6684, allocations: 0.5976 MB / 0.6423 GB, free: 10.11 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.005527/0.6739, allocations: 3.91 MB / 0.6462 GB, free: 6.145 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003888/0.6779, allocations: 2.435 MB / 0.6485 GB, free: 3.703 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/0.6779, allocations: 0 / 0.6485 GB, free: 3.703 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002641/0.6805, allocations: 1.755 MB / 0.6503 GB, free: 1.891 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002921/0.6835, allocations: 0.554 MB / 0.6508 GB, free: 1.344 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03801/0.7215, allocations: 20.77 MB / 0.6711 GB, free: 11.94 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002255/0.7238, allocations: 2.327 MB / 0.6734 GB, free: 9.59 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001594/0.7254, allocations: 417.3 kB / 0.6738 GB, free: 9.18 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001511/0.7269, allocations: 1.155 MB / 0.6749 GB, free: 8.023 MB / 494.1 MB Notification: Performance of SimCode: time 1.012e-06/0.7269, allocations: 0 / 0.6749 GB, free: 8.023 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1235/0.8504, allocations: 55.03 MB / 0.7286 GB, free: 1.418 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.15/14, allocations: 3.938 kB / 0.7286 GB, free: 1.414 MB / 0.5294 GB (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 & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 HanserModelica_HanserModelica_InductionMachines_IMC_Steinmetz.fmu > HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe 2>&1)