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.0007758/0.0007758, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 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 0.9531/0.9531, allocations: 177.1 MB / 199.4 MB, free: 5.945 MB / 186.7 MB " [Timeout remaining time 179] 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.001307/0.001307, allocations: 152.6 kB / 256 MB, free: 13.36 MB / 250.7 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.02227/0.02227, allocations: 6.668 MB / 319 MB, free: 26.79 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.953e-06/1.953e-06, allocations: 0 / 445.4 MB, free: 37.66 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.096e-05/2.291e-05, allocations: 2.281 kB / 445.4 MB, free: 37.65 MB / 330.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Steinmetz): time 0.00949/0.009513, allocations: 12.48 MB / 457.9 MB, free: 25.11 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.007376/0.01689, allocations: 4.497 MB / 462.4 MB, free: 20.59 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001502/0.01839, allocations: 103.4 kB / 462.5 MB, free: 20.49 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00191/0.0203, allocations: 0.9935 MB / 463.5 MB, free: 19.49 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001849/0.02215, allocations: 1.351 MB / 464.8 MB, free: 18.13 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001081/0.02323, allocations: 0.9479 MB / 465.8 MB, free: 17.19 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002488/0.02572, allocations: 4.446 MB / 470.2 MB, free: 12.73 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001572/0.02729, allocations: 1.719 MB / 471.9 MB, free: 10.94 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00297/0.03026, allocations: 2.889 MB / 474.8 MB, free: 8.043 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001696/0.03196, allocations: 1.757 MB / 476.6 MB, free: 6.281 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005442/0.0325, allocations: 0.5078 MB / 477.1 MB, free: 5.773 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007938/0.03329, allocations: 0.7222 MB / 477.8 MB, free: 5.051 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004007/0.03369, allocations: 1.126 MB / 478.9 MB, free: 3.922 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001041/0.03473, allocations: 1.458 MB / 480.4 MB, free: 2.461 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004359/0.03909, allocations: 6.813 MB / 487.2 MB, free: 11.63 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.0391, allocations: 0 / 487.2 MB, free: 11.63 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.0391, allocations: 0 / 487.2 MB, free: 11.63 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001673/0.03927, allocations: 0 / 487.2 MB, free: 11.63 MB / 346.7 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.007769/0.04703, allocations: 5.392 MB / 492.6 MB, free: 6.16 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.204e-05/0.04708, allocations: 12.03 kB / 492.6 MB, free: 6.148 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003775/0.04745, allocations: 459.9 kB / 493.1 MB, free: 5.688 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0021/0.04955, allocations: 0.83 MB / 493.9 MB, free: 4.855 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002962/0.05252, allocations: 2.408 MB / 496.3 MB, free: 2.395 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001167/0.05263, allocations: 242.9 kB / 496.5 MB, free: 2.156 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003199/0.05295, allocations: 336.3 kB / 496.9 MB, free: 1.828 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00468/0.05763, allocations: 4.473 MB / 0.4896 GB, free: 13.27 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.476e-05/0.05769, allocations: 11.95 kB / 0.4896 GB, free: 13.25 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000216/0.0579, allocations: 132 kB / 0.4897 GB, free: 13.12 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.689e-05/0.058, allocations: 154.5 kB / 0.4899 GB, free: 12.97 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003997/0.062, allocations: 3.59 MB / 0.4934 GB, free: 9.375 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01314/0.07514, allocations: 12.3 MB / 0.5054 GB, free: 12.71 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003125/0.07826, allocations: 2.672 MB / 0.508 GB, free: 10.15 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001366/0.07963, allocations: 1.285 MB / 0.5093 GB, free: 8.867 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003764/0.08339, allocations: 3.123 MB / 0.5123 GB, free: 5.711 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009677/0.08436, allocations: 1.097 MB / 0.5134 GB, free: 4.543 MB / 378.7 MB Notification: Performance of pre-optimization done (n=143): time 2.705e-06/0.08436, allocations: 0 / 0.5134 GB, free: 4.543 MB / 378.7 MB Notification: Performance of matching and sorting (n=146): time 0.006825/0.09119, allocations: 5.351 MB / 0.5186 GB, free: 15.14 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002927/0.09148, allocations: 226.9 kB / 0.5188 GB, free: 14.88 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001834/0.09331, allocations: 1.857 MB / 0.5206 GB, free: 13.02 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.828e-05/0.09338, allocations: 57.69 kB / 0.5207 GB, free: 12.96 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008598/0.09424, allocations: 1.517 MB / 0.5222 GB, free: 11.43 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000262/0.0945, allocations: 0.5113 MB / 0.5227 GB, free: 10.91 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003329/0.09484, allocations: 351.4 kB / 0.523 GB, free: 10.57 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.436e-05/0.09491, allocations: 309.1 kB / 0.5233 GB, free: 10.26 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007178/0.09563, allocations: 0.7027 MB / 0.524 GB, free: 9.559 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001412/0.09704, allocations: 1.53 MB / 0.5255 GB, free: 7.703 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001917/0.09896, allocations: 2.122 MB / 0.5276 GB, free: 5.324 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.006e-05/0.09897, allocations: 12 kB / 0.5276 GB, free: 5.312 MB / 394.7 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.002746/0.1017, allocations: 2.586 MB / 0.5301 GB, free: 2.703 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.539e-05/0.1017, allocations: 18.8 kB / 0.5301 GB, free: 2.688 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.007e-05/0.1018, allocations: 23.98 kB / 0.5301 GB, free: 2.664 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000638/0.1024, allocations: 364.3 kB / 0.5305 GB, free: 2.293 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007479/0.1031, allocations: 387.4 kB / 0.5308 GB, free: 1.914 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005447/0.1086, allocations: 7.932 MB / 0.5386 GB, free: 9.527 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009507/0.1095, allocations: 91.91 kB / 0.5387 GB, free: 9.438 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.17e-05/0.1096, allocations: 92.05 kB / 0.5388 GB, free: 9.348 MB / 410.7 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.001737/0.1114, allocations: 1.039 MB / 0.5398 GB, free: 8.305 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001929/0.1116, allocations: 210.6 kB / 0.54 GB, free: 8.098 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002438/0.114, allocations: 2.175 MB / 0.5421 GB, free: 5.895 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.393e-06/0.114, allocations: 16 kB / 0.5421 GB, free: 5.879 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.904e-06/0.114, allocations: 8 kB / 0.5421 GB, free: 5.871 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.283e-05/0.114, allocations: 11.95 kB / 0.5421 GB, free: 5.859 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005035/0.1191, allocations: 4.671 MB / 0.5467 GB, free: 1.09 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/0.1191, allocations: 384 / 0.5467 GB, free: 1.09 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00042/0.1195, allocations: 183.7 kB / 0.5469 GB, free: 0.9102 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007814/0.1203, allocations: 0.5201 MB / 0.5474 GB, free: 380 kB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.684e-05/0.1203, allocations: 39.98 kB / 0.5474 GB, free: 340 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008191/0.1285, allocations: 12.53 MB / 0.5597 GB, free: 3.125 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.1285, allocations: 7.922 kB / 0.5597 GB, free: 3.117 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1886/0.3171, allocations: 3.124 MB / 0.5627 GB, free: 97.28 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001267/0.3184, allocations: 369.1 kB / 0.5631 GB, free: 97.28 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002408/0.3187, allocations: 42.72 kB / 0.5631 GB, free: 97.28 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005471/0.3192, allocations: 62.19 kB / 0.5632 GB, free: 97.28 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003062/0.3195, allocations: 122.2 kB / 0.5633 GB, free: 97.28 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.338e-05/0.3196, allocations: 45.41 kB / 0.5633 GB, free: 97.28 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001514/0.3211, allocations: 1.249 MB / 0.5646 GB, free: 97.17 MB / 426.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3211, allocations: 0 / 0.5646 GB, free: 97.17 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001708/0.3228, allocations: 0.6066 MB / 0.5651 GB, free: 97.17 MB / 426.7 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.003226/0.326, allocations: 3.759 MB / 0.5688 GB, free: 96.39 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002265/0.3283, allocations: 2.278 MB / 0.571 GB, free: 95.9 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.3283, allocations: 0 / 0.571 GB, free: 95.9 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001994/0.3303, allocations: 1.695 MB / 0.5727 GB, free: 95.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00318/0.3335, allocations: 0.5686 MB / 0.5733 GB, free: 95.18 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03655/0.37, allocations: 20.72 MB / 0.5935 GB, free: 82.2 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001542/0.3716, allocations: 1.802 MB / 0.5952 GB, free: 80.84 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001494/0.373, allocations: 418.9 kB / 0.5956 GB, free: 80.54 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001214/0.3743, allocations: 1.17 MB / 0.5968 GB, free: 79.46 MB / 426.7 MB Notification: Performance of SimCode: time 2.966e-06/0.3743, allocations: 0 / 0.5968 GB, free: 79.46 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08003/0.4543, allocations: 59.82 MB / 0.6552 GB, free: 20.74 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.736/9.19, allocations: 0 / 0.6552 GB, free: 20.74 MB / 426.7 MB " [Timeout remaining time 651] (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: 11.588501991704106] Failed to read output from testmodel.py, exit status != 0: 9.306571180000901 9.317469701 9.276287168 Calling exit ...