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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001649/0.001649, allocations: 114.3 kB / 18.94 MB, free: 2.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.523/1.523, allocations: 230.6 MB / 252.6 MB, free: 8.316 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001671/0.001671, allocations: 219.7 kB / 309.2 MB, free: 3.156 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo): time 0.04098/0.04098, allocations: 8.916 MB / 374.6 MB, free: 1.906 MB / 302.1 MB " [Timeout remaining time 180] Using package HanserModelica with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: HanserModelica requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: HanserModelica requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002535/0.002535, allocations: 87.86 kB / 0.4892 GB, free: 7.363 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3061/0.3086, allocations: 55.6 MB / 0.5435 GB, free: 26.77 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Steinmetz): time 0.01221/0.3209, allocations: 14.36 MB / 0.5575 GB, free: 16.52 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007921/0.3288, allocations: 4.771 MB / 0.5622 GB, free: 13.04 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002694/0.3315, allocations: 101.7 kB / 0.5623 GB, free: 13 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003177/0.3346, allocations: 1.042 MB / 0.5633 GB, free: 12.45 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004569/0.3392, allocations: 1.332 MB / 0.5646 GB, free: 11.57 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002208/0.3414, allocations: 0.9787 MB / 0.5656 GB, free: 10.95 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004921/0.3463, allocations: 4.233 MB / 0.5697 GB, free: 8.742 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002433/0.3488, allocations: 1.787 MB / 0.5714 GB, free: 7.742 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003681/0.3525, allocations: 1.976 MB / 0.5734 GB, free: 6.777 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004225/0.3567, allocations: 2.23 MB / 0.5756 GB, free: 5.672 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001366/0.358, allocations: 0.5096 MB / 0.5761 GB, free: 5.672 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002433/0.3605, allocations: 0.7363 MB / 0.5768 GB, free: 5.59 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001043/0.3615, allocations: 1.11 MB / 0.5779 GB, free: 4.844 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003072/0.3646, allocations: 2.157 MB / 0.58 GB, free: 3.395 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008213/0.3728, allocations: 6.76 MB / 0.5866 GB, free: 14.85 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.3728, allocations: 0 / 0.5866 GB, free: 14.85 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3728, allocations: 0 / 0.5866 GB, free: 14.85 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002157/0.373, allocations: 5.062 kB / 0.5866 GB, free: 14.85 MB / 398.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.01546/0.3885, allocations: 5.438 MB / 0.5919 GB, free: 11.21 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.3885, allocations: 9.469 kB / 0.5919 GB, free: 11.21 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008139/0.3893, allocations: 459.5 kB / 0.5923 GB, free: 10.87 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004733/0.3941, allocations: 0.8327 MB / 0.5931 GB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006432/0.4005, allocations: 2.428 MB / 0.5955 GB, free: 7.625 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002599/0.4008, allocations: 246.6 kB / 0.5957 GB, free: 7.383 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009864/0.4018, allocations: 331.9 kB / 0.5961 GB, free: 7.059 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01013/0.4119, allocations: 4.322 MB / 0.6003 GB, free: 2.684 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001281/0.412, allocations: 11.95 kB / 0.6003 GB, free: 2.672 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004171/0.4124, allocations: 132 kB / 0.6004 GB, free: 2.543 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001752/0.4126, allocations: 150.5 kB / 0.6006 GB, free: 2.395 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007538/0.4201, allocations: 3.594 MB / 0.6041 GB, free: 14.79 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02597/0.4461, allocations: 13.51 MB / 0.6173 GB, free: 0.9102 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005549/0.4517, allocations: 2.674 MB / 0.6199 GB, free: 14.35 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002444/0.4541, allocations: 1.285 MB / 0.6211 GB, free: 13.07 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007339/0.4615, allocations: 3.47 MB / 0.6245 GB, free: 9.57 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001695/0.4631, allocations: 0.9469 MB / 0.6255 GB, free: 8.59 MB / 430.1 MB Notification: Performance of pre-optimization done (n=143): time 4.789e-06/0.4632, allocations: 0 / 0.6255 GB, free: 8.59 MB / 430.1 MB Notification: Performance of matching and sorting (n=146): time 0.01303/0.4762, allocations: 5.351 MB / 0.6307 GB, free: 3.188 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001889/0.4764, allocations: 238.9 kB / 0.6309 GB, free: 2.906 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003834/0.4802, allocations: 1.83 MB / 0.6327 GB, free: 1.078 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002341/0.4804, allocations: 49.7 kB / 0.6327 GB, free: 1.023 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001735/0.4822, allocations: 1.525 MB / 0.6342 GB, free: 15.48 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007145/0.4829, allocations: 0.519 MB / 0.6347 GB, free: 14.96 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008271/0.4837, allocations: 355.3 kB / 0.6351 GB, free: 14.61 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.4839, allocations: 301.1 kB / 0.6354 GB, free: 14.31 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001431/0.4853, allocations: 0.6949 MB / 0.636 GB, free: 13.61 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001926/0.4872, allocations: 1.358 MB / 0.6374 GB, free: 11.98 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00329/0.4905, allocations: 2.122 MB / 0.6394 GB, free: 9.594 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.789e-05/0.4905, allocations: 8 kB / 0.6394 GB, free: 9.586 MB / 446.1 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.00491/0.4954, allocations: 2.593 MB / 0.642 GB, free: 6.973 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.225e-05/0.4955, allocations: 15.94 kB / 0.642 GB, free: 6.957 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.042e-05/0.4955, allocations: 20 kB / 0.642 GB, free: 6.938 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001084/0.4966, allocations: 369.5 kB / 0.6424 GB, free: 6.562 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001539/0.4981, allocations: 395.3 kB / 0.6427 GB, free: 6.176 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008987/0.5071, allocations: 7.993 MB / 0.6505 GB, free: 13.73 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001981/0.5091, allocations: 100 kB / 0.6506 GB, free: 13.63 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002423/0.5094, allocations: 80 kB / 0.6507 GB, free: 13.55 MB / 462.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,idealCloser.control,idealOpener.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.002288/0.5116, allocations: 1.041 MB / 0.6517 GB, free: 12.5 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005278/0.5122, allocations: 222.6 kB / 0.6519 GB, free: 12.28 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004388/0.5166, allocations: 2.159 MB / 0.6541 GB, free: 10.09 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.971e-05/0.5166, allocations: 16 kB / 0.6541 GB, free: 10.07 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.635e-05/0.5166, allocations: 11.98 kB / 0.6541 GB, free: 10.06 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.563e-05/0.5166, allocations: 4.047 kB / 0.6541 GB, free: 10.05 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009452/0.5261, allocations: 4.967 MB / 0.6589 GB, free: 4.996 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.532e-06/0.5261, allocations: 0 / 0.6589 GB, free: 4.996 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008232/0.5269, allocations: 183.6 kB / 0.6591 GB, free: 4.816 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001535/0.5284, allocations: 0.5274 MB / 0.6596 GB, free: 4.273 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001334/0.5286, allocations: 43.98 kB / 0.6597 GB, free: 4.23 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01403/0.5426, allocations: 12.65 MB / 0.672 GB, free: 6.898 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.5426, allocations: 3.938 kB / 0.672 GB, free: 6.895 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005911/0.5485, allocations: 3.127 MB / 0.6751 GB, free: 3.711 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001359/0.5499, allocations: 378.5 kB / 0.6754 GB, free: 3.34 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004112/0.5503, allocations: 43.98 kB / 0.6755 GB, free: 3.297 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009486/0.5512, allocations: 59.97 kB / 0.6755 GB, free: 3.238 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003459/0.5516, allocations: 121 kB / 0.6757 GB, free: 3.121 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.451e-05/0.5517, allocations: 47.97 kB / 0.6757 GB, free: 3.074 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002178/0.5538, allocations: 1.244 MB / 0.6769 GB, free: 1.84 MB / 478.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5538, allocations: 0 / 0.6769 GB, free: 1.84 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002819/0.5567, allocations: 0.6054 MB / 0.6775 GB, free: 1.234 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 (rmsI[3].mean.x,rmsI[2].mean.x,rmsI[1].mean.x,cStart.v,cRun.v,quadraticLoadTorque.phi,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.stator.core.Phi.im,imc.stator.core.Phi.re,imc.stator.zeroInductor.i0,imc.inertiaRotor.w) * Number of discrete variables: 8 ($whenCondition3,$whenCondition2,$whenCondition1,rmsI[3].mean.y_last,rmsI[2].mean.y_last,rmsI[1].mean.y_last,idealOpener.control,idealCloser.control) * 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,8,100.0%), (1,13,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.00594/0.5626, allocations: 3.767 MB / 0.6812 GB, free: 13.4 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.004069/0.5667, allocations: 2.274 MB / 0.6834 GB, free: 11.07 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.016e-05/0.5667, allocations: 5.812 kB / 0.6834 GB, free: 11.07 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002745/0.5694, allocations: 1.708 MB / 0.6851 GB, free: 9.289 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002918/0.5723, allocations: 0.5766 MB / 0.6856 GB, free: 8.727 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.288/0.8604, allocations: 20.82 MB / 0.706 GB, free: 117 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001774/0.8621, allocations: 2.348 MB / 0.7083 GB, free: 116 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001326/0.8635, allocations: 422.9 kB / 0.7087 GB, free: 116 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001266/0.8647, allocations: 1.171 MB / 0.7098 GB, free: 115 MB / 494.1 MB Notification: Performance of SimCode: time 1.323e-06/0.8647, allocations: 3.938 kB / 0.7098 GB, free: 115 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1364/1.001, allocations: 57.71 MB / 0.7662 GB, free: 75.56 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.16/16.16, allocations: 10.36 kB / 0.7662 GB, free: 75.56 MB / 494.1 MB " [Timeout remaining time 644] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 19.557482320000418] Failed to read output from testmodel.py, exit status != 0: 16.32380249400012 16.339826141 15.963695616 Calling exit ...