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.00134/0.00134, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.412/1.412, allocations: 230.6 MB / 252.7 MB, free: 8.066 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.001751/0.001751, allocations: 220.8 kB / 309.2 MB, free: 2.93 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.04094/0.04094, allocations: 8.913 MB / 374.6 MB, free: 1.715 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.00328/0.00328, allocations: 83.88 kB / 0.4891 GB, free: 7.184 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2496/0.2529, allocations: 55.6 MB / 0.5434 GB, free: 26.68 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Steinmetz): time 0.01038/0.2633, allocations: 12.47 MB / 0.5556 GB, free: 18.42 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00695/0.2702, allocations: 4.492 MB / 0.56 GB, free: 15.25 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001445/0.2717, allocations: 100.6 kB / 0.5601 GB, free: 15.21 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00222/0.2739, allocations: 0.9913 MB / 0.5611 GB, free: 14.71 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002932/0.2768, allocations: 1.31 MB / 0.5624 GB, free: 13.85 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001844/0.2786, allocations: 0.9287 MB / 0.5633 GB, free: 13.28 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004137/0.2828, allocations: 4.241 MB / 0.5674 GB, free: 11.07 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00231/0.2851, allocations: 1.705 MB / 0.5691 GB, free: 10.15 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002705/0.2878, allocations: 1.986 MB / 0.571 GB, free: 9.18 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00394/0.2917, allocations: 2.105 MB / 0.5731 GB, free: 8.223 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001137/0.2929, allocations: 0.5115 MB / 0.5736 GB, free: 8.219 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001875/0.2947, allocations: 0.7078 MB / 0.5743 GB, free: 8.156 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009106/0.2957, allocations: 1.106 MB / 0.5753 GB, free: 7.414 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002546/0.2982, allocations: 1.709 MB / 0.577 GB, free: 6.414 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006911/0.3051, allocations: 6.783 MB / 0.5836 GB, free: 1.828 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.3051, allocations: 8 kB / 0.5836 GB, free: 1.82 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3051, allocations: 1.094 kB / 0.5836 GB, free: 1.82 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001534/0.3053, allocations: 0 / 0.5836 GB, free: 1.82 MB / 382.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.01278/0.3181, allocations: 5.419 MB / 0.5889 GB, free: 14.16 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.3181, allocations: 8.031 kB / 0.5889 GB, free: 14.16 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007307/0.3188, allocations: 467.9 kB / 0.5894 GB, free: 13.69 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004257/0.3231, allocations: 0.8338 MB / 0.5902 GB, free: 12.85 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004966/0.3281, allocations: 2.408 MB / 0.5925 GB, free: 10.39 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002207/0.3283, allocations: 246.6 kB / 0.5928 GB, free: 10.15 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007362/0.329, allocations: 331.9 kB / 0.5931 GB, free: 9.828 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00926/0.3383, allocations: 4.473 MB / 0.5975 GB, free: 5.266 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001074/0.3384, allocations: 7.953 kB / 0.5975 GB, free: 5.258 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004923/0.3389, allocations: 132 kB / 0.5976 GB, free: 5.129 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001611/0.339, allocations: 150.5 kB / 0.5977 GB, free: 4.98 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007098/0.3461, allocations: 3.586 MB / 0.6012 GB, free: 1.387 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02319/0.3693, allocations: 12.32 MB / 0.6133 GB, free: 4.695 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005535/0.3749, allocations: 2.648 MB / 0.6159 GB, free: 2.16 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00242/0.3773, allocations: 1.292 MB / 0.6171 GB, free: 0.8672 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006874/0.3841, allocations: 3.112 MB / 0.6202 GB, free: 13.73 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00164/0.3858, allocations: 1.101 MB / 0.6212 GB, free: 12.55 MB / 430.1 MB Notification: Performance of pre-optimization done (n=143): time 3.847e-06/0.3858, allocations: 0 / 0.6212 GB, free: 12.55 MB / 430.1 MB Notification: Performance of matching and sorting (n=146): time 0.01242/0.3982, allocations: 5.355 MB / 0.6265 GB, free: 7.148 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001516/0.3984, allocations: 230.9 kB / 0.6267 GB, free: 6.875 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003143/0.4015, allocations: 1.849 MB / 0.6285 GB, free: 5.027 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001508/0.4017, allocations: 61.64 kB / 0.6286 GB, free: 4.961 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001444/0.4031, allocations: 1.521 MB / 0.63 GB, free: 3.426 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005104/0.4036, allocations: 0.5268 MB / 0.6306 GB, free: 2.895 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005887/0.4042, allocations: 347.4 kB / 0.6309 GB, free: 2.551 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001302/0.4043, allocations: 305.1 kB / 0.6312 GB, free: 2.25 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001239/0.4056, allocations: 0.6949 MB / 0.6319 GB, free: 1.555 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001851/0.4074, allocations: 1.542 MB / 0.6334 GB, free: 15.69 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003053/0.4105, allocations: 2.122 MB / 0.6354 GB, free: 13.31 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.889e-05/0.4105, allocations: 8 kB / 0.6354 GB, free: 13.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.00466/0.4152, allocations: 2.586 MB / 0.638 GB, free: 10.69 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.243e-05/0.4152, allocations: 12 kB / 0.638 GB, free: 10.68 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.244e-05/0.4152, allocations: 20 kB / 0.638 GB, free: 10.66 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009975/0.4162, allocations: 372.1 kB / 0.6384 GB, free: 10.28 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001405/0.4176, allocations: 387.4 kB / 0.6387 GB, free: 9.902 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008306/0.4259, allocations: 7.941 MB / 0.6465 GB, free: 1.512 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001715/0.4276, allocations: 95.91 kB / 0.6466 GB, free: 1.418 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002461/0.4279, allocations: 80 kB / 0.6466 GB, free: 1.34 MB / 446.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.00209/0.43, allocations: 1.041 MB / 0.6477 GB, free: 296 kB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005291/0.4305, allocations: 214.6 kB / 0.6479 GB, free: 80 kB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0045/0.435, allocations: 2.171 MB / 0.65 GB, free: 13.87 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.63e-05/0.435, allocations: 16 kB / 0.65 GB, free: 13.85 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-05/0.4351, allocations: 15.94 kB / 0.65 GB, free: 13.84 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.772e-05/0.4351, allocations: 7.969 kB / 0.65 GB, free: 13.83 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009704/0.4448, allocations: 4.675 MB / 0.6546 GB, free: 9.062 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.874e-06/0.4448, allocations: 0 / 0.6546 GB, free: 9.062 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008126/0.4456, allocations: 183.9 kB / 0.6548 GB, free: 8.883 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001479/0.4471, allocations: 0.5198 MB / 0.6553 GB, free: 8.348 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001371/0.4472, allocations: 47.86 kB / 0.6553 GB, free: 8.301 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01346/0.4607, allocations: 12.54 MB / 0.6676 GB, free: 11.09 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.4607, allocations: 3.938 kB / 0.6676 GB, free: 11.09 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005676/0.4664, allocations: 3.131 MB / 0.6706 GB, free: 7.898 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001214/0.4676, allocations: 370.5 kB / 0.671 GB, free: 7.535 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005206/0.4681, allocations: 51.92 kB / 0.671 GB, free: 7.484 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001085/0.4692, allocations: 59.95 kB / 0.6711 GB, free: 7.426 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002909/0.4695, allocations: 121 kB / 0.6712 GB, free: 7.309 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.978e-05/0.4696, allocations: 43.98 kB / 0.6712 GB, free: 7.266 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002154/0.4717, allocations: 1.248 MB / 0.6725 GB, free: 6.027 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4717, allocations: 3.938 kB / 0.6725 GB, free: 6.023 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00259/0.4743, allocations: 0.6054 MB / 0.6731 GB, free: 5.418 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.006006/0.4803, allocations: 3.769 MB / 0.6767 GB, free: 1.582 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00393/0.4842, allocations: 2.264 MB / 0.6789 GB, free: 15.27 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.194e-06/0.4842, allocations: 4 kB / 0.679 GB, free: 15.26 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002647/0.4869, allocations: 1.708 MB / 0.6806 GB, free: 13.48 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00304/0.4899, allocations: 0.5641 MB / 0.6812 GB, free: 12.93 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2299/0.7198, allocations: 20.81 MB / 0.7015 GB, free: 117.9 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001534/0.7214, allocations: 1.798 MB / 0.7033 GB, free: 117.4 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001164/0.7225, allocations: 422.1 kB / 0.7037 GB, free: 117.4 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001119/0.7236, allocations: 1.17 MB / 0.7048 GB, free: 116.4 MB / 494.1 MB Notification: Performance of SimCode: time 1.253e-06/0.7236, allocations: 3.844 kB / 0.7048 GB, free: 116.4 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1451/0.8687, allocations: 59.9 MB / 0.7633 GB, free: 77.75 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.44/14.31, allocations: 6.656 kB / 0.7633 GB, free: 77.74 MB / 494.1 MB " [Timeout remaining time 646] (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: 17.358052228111774] Failed to read output from testmodel.py, exit status != 0: 14.4529836056754 14.46197454 14.154437746 Calling exit ...