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.0096/0.0096, allocations: 100.7 kB / 15.73 MB, free: 6.051 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.592/1.592, allocations: 222.9 MB / 239.4 MB, free: 4.531 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.001635/0.001636, allocations: 184.5 kB / 289.7 MB, free: 2.25 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04934/0.04934, allocations: 8.794 MB / 348.7 MB, free: 4.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002291/0.002291, allocations: 83.88 kB / 463.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.122, allocations: 51.56 MB / 0.5029 GB, free: 10 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Steinmetz): time 0.0165/0.1386, allocations: 13.59 MB / 0.5162 GB, free: 12.35 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0106/0.1492, allocations: 4.442 MB / 0.5205 GB, free: 7.891 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002921/0.1522, allocations: 79.69 kB / 0.5206 GB, free: 7.812 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003416/0.1556, allocations: 0.99 MB / 0.5216 GB, free: 6.816 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005782/0.1615, allocations: 1.297 MB / 0.5228 GB, free: 5.512 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002559/0.164, allocations: 0.8959 MB / 0.5237 GB, free: 4.617 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006196/0.1702, allocations: 4.182 MB / 0.5278 GB, free: 424 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2459/0.4161, allocations: 3.173 MB / 0.5309 GB, free: 5.16 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003042/0.4192, allocations: 1.9 MB / 0.5327 GB, free: 5.027 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003683/0.4229, allocations: 2.079 MB / 0.5348 GB, free: 4.648 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001552/0.4245, allocations: 0.5088 MB / 0.5353 GB, free: 4.648 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002429/0.4269, allocations: 0.7051 MB / 0.536 GB, free: 4.648 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00116/0.4281, allocations: 1.099 MB / 0.537 GB, free: 4.516 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00356/0.4317, allocations: 2.143 MB / 0.5391 GB, free: 3.988 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01098/0.4427, allocations: 6.706 MB / 0.5457 GB, free: 3.258 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.4427, allocations: 0 / 0.5457 GB, free: 3.258 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.4427, allocations: 0 / 0.5457 GB, free: 3.258 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.00025/0.443, allocations: 0 / 0.5457 GB, free: 3.258 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.01661/0.4596, allocations: 4.501 MB / 0.5501 GB, free: 1.551 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.185e-05/0.4597, allocations: 9.125 kB / 0.5501 GB, free: 1.551 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009337/0.4606, allocations: 461.7 kB / 0.5505 GB, free: 1.492 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004524/0.4651, allocations: 0.8404 MB / 0.5513 GB, free: 1.281 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005707/0.4708, allocations: 2.458 MB / 0.5537 GB, free: 0.5586 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002708/0.4711, allocations: 244.6 kB / 0.554 GB, free: 460 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001126/0.4723, allocations: 336.1 kB / 0.5543 GB, free: 344 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01019/0.4825, allocations: 4.317 MB / 0.5585 GB, free: 13.79 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.75e-05/0.4826, allocations: 11.36 kB / 0.5585 GB, free: 13.78 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003669/0.483, allocations: 136.5 kB / 0.5587 GB, free: 13.67 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001359/0.4831, allocations: 148.9 kB / 0.5588 GB, free: 13.65 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007246/0.4904, allocations: 3.594 MB / 0.5623 GB, free: 11.74 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02736/0.5178, allocations: 13.72 MB / 0.5757 GB, free: 1.203 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007822/0.5256, allocations: 6.627 MB / 0.5822 GB, free: 9.758 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002663/0.5283, allocations: 1.393 MB / 0.5835 GB, free: 8.367 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007528/0.5359, allocations: 3.665 MB / 0.5871 GB, free: 4.672 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001554/0.5375, allocations: 0.9424 MB / 0.588 GB, free: 3.699 MB / 398.1 MB Notification: Performance of pre-optimization done (n=143): time 2.695e-06/0.5375, allocations: 0 / 0.588 GB, free: 3.699 MB / 398.1 MB Notification: Performance of matching and sorting (n=146): time 0.0137/0.5512, allocations: 6.035 MB / 0.5939 GB, free: 13.49 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00016/0.5514, allocations: 222.9 kB / 0.5941 GB, free: 13.22 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003138/0.5545, allocations: 1.785 MB / 0.5959 GB, free: 11.43 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001916/0.5547, allocations: 57.7 kB / 0.5959 GB, free: 11.37 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001768/0.5565, allocations: 1.511 MB / 0.5974 GB, free: 9.852 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005499/0.5571, allocations: 0.517 MB / 0.5979 GB, free: 9.344 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005935/0.5577, allocations: 347.4 kB / 0.5983 GB, free: 9 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001363/0.5578, allocations: 301.1 kB / 0.5985 GB, free: 8.703 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001217/0.559, allocations: 0.691 MB / 0.5992 GB, free: 8.012 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001799/0.5608, allocations: 1.352 MB / 0.6005 GB, free: 6.395 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002964/0.5638, allocations: 2.115 MB / 0.6026 GB, free: 4.098 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.248e-05/0.5638, allocations: 11.94 kB / 0.6026 GB, free: 4.086 MB / 414.1 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.004843/0.5687, allocations: 2.65 MB / 0.6052 GB, free: 1.52 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.145e-05/0.5688, allocations: 21.55 kB / 0.6052 GB, free: 1.5 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.484e-05/0.5688, allocations: 16 kB / 0.6052 GB, free: 1.484 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001056/0.5698, allocations: 370.8 kB / 0.6056 GB, free: 1.117 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001386/0.5712, allocations: 395.2 kB / 0.606 GB, free: 0.7578 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008723/0.58, allocations: 8.446 MB / 0.6142 GB, free: 7.812 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001944/0.582, allocations: 95.91 kB / 0.6143 GB, free: 7.719 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001729/0.5821, allocations: 84.19 kB / 0.6144 GB, free: 7.637 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.002401/0.5845, allocations: 1.033 MB / 0.6154 GB, free: 6.621 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004576/0.585, allocations: 210.6 kB / 0.6156 GB, free: 6.414 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004428/0.5894, allocations: 2.343 MB / 0.6179 GB, free: 4.027 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.587e-05/0.5895, allocations: 14.81 kB / 0.6179 GB, free: 4.016 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.311e-05/0.5895, allocations: 8 kB / 0.6179 GB, free: 4.008 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.599e-05/0.5895, allocations: 11.97 kB / 0.6179 GB, free: 3.996 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009102/0.5986, allocations: 5.12 MB / 0.6229 GB, free: 14.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.867e-06/0.5987, allocations: 4 kB / 0.6229 GB, free: 14.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008195/0.5995, allocations: 175.8 kB / 0.6231 GB, free: 14.63 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001527/0.601, allocations: 0.5268 MB / 0.6236 GB, free: 14.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001172/0.6012, allocations: 35.98 kB / 0.6236 GB, free: 14.06 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01396/0.6151, allocations: 13.26 MB / 0.6366 GB, free: 60 kB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/0.6152, allocations: 2.719 kB / 0.6366 GB, free: 60 kB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005893/0.6211, allocations: 3.297 MB / 0.6398 GB, free: 12.71 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001308/0.6224, allocations: 443.7 kB / 0.6402 GB, free: 12.26 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000339/0.6228, allocations: 43.92 kB / 0.6403 GB, free: 12.21 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009035/0.6237, allocations: 59.97 kB / 0.6403 GB, free: 12.16 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003638/0.6241, allocations: 115.9 kB / 0.6404 GB, free: 12.04 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.574e-05/0.6242, allocations: 43.98 kB / 0.6405 GB, free: 12 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002083/0.6263, allocations: 1.211 MB / 0.6417 GB, free: 10.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.6263, allocations: 0 / 0.6417 GB, free: 10.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002673/0.6289, allocations: 0.6015 MB / 0.6423 GB, free: 10.2 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.006059/0.635, allocations: 3.907 MB / 0.6461 GB, free: 6.234 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004331/0.6394, allocations: 2.426 MB / 0.6484 GB, free: 3.801 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.045e-06/0.6394, allocations: 0 / 0.6484 GB, free: 3.801 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002936/0.6424, allocations: 1.759 MB / 0.6502 GB, free: 1.984 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003304/0.6457, allocations: 0.5542 MB / 0.6507 GB, free: 1.438 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04047/0.6862, allocations: 20.78 MB / 0.671 GB, free: 12.04 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002762/0.689, allocations: 2.335 MB / 0.6733 GB, free: 9.676 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001935/0.691, allocations: 421.3 kB / 0.6737 GB, free: 9.262 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002202/0.6932, allocations: 1.148 MB / 0.6748 GB, free: 8.113 MB / 494.1 MB Notification: Performance of SimCode: time 1.934e-06/0.6932, allocations: 4 kB / 0.6748 GB, free: 8.109 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1339/0.8271, allocations: 55.02 MB / 0.7285 GB, free: 1.5 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.77/14.6, allocations: 0 / 0.7285 GB, free: 1.5 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)