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.00138/0.00138, allocations: 104.2 kB / 16.45 MB, free: 6.5 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.501/1.501, allocations: 230.6 MB / 249.8 MB, free: 9.223 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.00169/0.00169, allocations: 220.9 kB / 306 MB, free: 4.324 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.04148/0.04148, allocations: 8.912 MB / 371 MB, free: 3.457 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.002511/0.002511, allocations: 79.89 kB / 495.7 MB, free: 9.859 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3508/0.3533, allocations: 55.57 MB / 0.5384 GB, free: 26.67 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Steinmetz): time 0.01282/0.3661, allocations: 14.31 MB / 0.5524 GB, free: 16.43 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01034/0.3765, allocations: 4.745 MB / 0.557 GB, free: 12.96 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003577/0.3801, allocations: 101.5 kB / 0.5571 GB, free: 12.93 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003324/0.3834, allocations: 1.051 MB / 0.5581 GB, free: 12.36 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004871/0.3883, allocations: 1.32 MB / 0.5594 GB, free: 11.49 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002629/0.3909, allocations: 0.9574 MB / 0.5603 GB, free: 10.89 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005861/0.3968, allocations: 4.23 MB / 0.5645 GB, free: 8.68 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003593/0.4003, allocations: 2.227 MB / 0.5666 GB, free: 7.613 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004506/0.4049, allocations: 1.976 MB / 0.5686 GB, free: 6.648 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005774/0.4106, allocations: 2.224 MB / 0.5707 GB, free: 5.551 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002473/0.4131, allocations: 0.5093 MB / 0.5712 GB, free: 5.551 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00502/0.4181, allocations: 0.7372 MB / 0.572 GB, free: 5.465 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002065/0.4202, allocations: 1.104 MB / 0.573 GB, free: 4.727 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00573/0.4259, allocations: 2.158 MB / 0.5751 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01117/0.4371, allocations: 6.76 MB / 0.5817 GB, free: 15.08 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.4371, allocations: 0 / 0.5817 GB, free: 15.08 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4371, allocations: 5.188 kB / 0.5818 GB, free: 15.07 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000241/0.4373, allocations: 4 kB / 0.5818 GB, free: 15.07 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.01748/0.4548, allocations: 4.549 MB / 0.5862 GB, free: 11.95 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.774e-05/0.4549, allocations: 10 kB / 0.5862 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001226/0.4561, allocations: 466.6 kB / 0.5867 GB, free: 11.61 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005067/0.4612, allocations: 0.8295 MB / 0.5875 GB, free: 11.2 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006627/0.4678, allocations: 2.496 MB / 0.5899 GB, free: 9.133 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002734/0.4681, allocations: 254.6 kB / 0.5901 GB, free: 8.883 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001212/0.4693, allocations: 328 kB / 0.5905 GB, free: 8.562 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01076/0.48, allocations: 4.322 MB / 0.5947 GB, free: 4.188 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.103e-05/0.4801, allocations: 7.953 kB / 0.5947 GB, free: 4.18 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003608/0.4805, allocations: 132 kB / 0.5948 GB, free: 4.051 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001727/0.4806, allocations: 154.4 kB / 0.595 GB, free: 3.898 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007666/0.4883, allocations: 3.602 MB / 0.5985 GB, free: 296 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02762/0.5159, allocations: 13.84 MB / 0.612 GB, free: 2.051 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007701/0.5236, allocations: 6.581 MB / 0.6184 GB, free: 10.62 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002803/0.5264, allocations: 1.288 MB / 0.6197 GB, free: 9.34 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007806/0.5342, allocations: 3.952 MB / 0.6235 GB, free: 5.238 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001643/0.5359, allocations: 0.9468 MB / 0.6245 GB, free: 4.258 MB / 430.1 MB Notification: Performance of pre-optimization done (n=143): time 2.835e-06/0.5359, allocations: 0 / 0.6245 GB, free: 4.258 MB / 430.1 MB Notification: Performance of matching and sorting (n=146): time 0.01374/0.5496, allocations: 6.032 MB / 0.6303 GB, free: 14.02 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002047/0.5498, allocations: 222.9 kB / 0.6306 GB, free: 13.75 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003407/0.5532, allocations: 1.834 MB / 0.6324 GB, free: 11.92 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002658/0.5535, allocations: 57.69 kB / 0.6324 GB, free: 11.86 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001648/0.5552, allocations: 1.521 MB / 0.6339 GB, free: 10.32 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005991/0.5557, allocations: 0.5229 MB / 0.6344 GB, free: 9.793 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005833/0.5563, allocations: 351.4 kB / 0.6347 GB, free: 9.445 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001515/0.5565, allocations: 305.1 kB / 0.635 GB, free: 9.145 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001283/0.5578, allocations: 0.6949 MB / 0.6357 GB, free: 8.449 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00182/0.5596, allocations: 1.362 MB / 0.637 GB, free: 6.801 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003123/0.5627, allocations: 2.122 MB / 0.6391 GB, free: 4.422 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.063e-05/0.5627, allocations: 4 kB / 0.6391 GB, free: 4.418 MB / 446.1 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.005042/0.5678, allocations: 2.653 MB / 0.6417 GB, free: 1.723 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.251e-05/0.5678, allocations: 12 kB / 0.6417 GB, free: 1.711 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.332e-05/0.5678, allocations: 23.94 kB / 0.6417 GB, free: 1.688 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001059/0.5689, allocations: 364.3 kB / 0.6421 GB, free: 1.316 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001468/0.5704, allocations: 399.4 kB / 0.6425 GB, free: 0.9258 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009187/0.5795, allocations: 8.442 MB / 0.6507 GB, free: 7.922 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002326/0.5819, allocations: 99.97 kB / 0.6508 GB, free: 7.824 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002082/0.5821, allocations: 87.98 kB / 0.6509 GB, free: 7.738 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,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.002325/0.5844, allocations: 1.035 MB / 0.6519 GB, free: 6.695 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005719/0.585, allocations: 210.6 kB / 0.6521 GB, free: 6.488 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004634/0.5896, allocations: 2.321 MB / 0.6544 GB, free: 4.098 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.457e-05/0.5896, allocations: 12 kB / 0.6544 GB, free: 4.086 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.285e-05/0.5896, allocations: 8 kB / 0.6544 GB, free: 4.078 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.628e-05/0.5897, allocations: 7.969 kB / 0.6544 GB, free: 4.07 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00953/0.5992, allocations: 5.142 MB / 0.6594 GB, free: 14.79 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.863e-06/0.5992, allocations: 0 / 0.6594 GB, free: 14.79 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008119/0.6, allocations: 179.7 kB / 0.6596 GB, free: 14.61 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001609/0.6016, allocations: 0.5316 MB / 0.6601 GB, free: 14.07 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001227/0.6017, allocations: 47.92 kB / 0.6602 GB, free: 14.02 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01443/0.6162, allocations: 13.25 MB / 0.6731 GB, free: 15.95 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.024e-06/0.6162, allocations: 7.969 kB / 0.6731 GB, free: 15.94 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005952/0.6221, allocations: 3.282 MB / 0.6763 GB, free: 12.57 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001337/0.6235, allocations: 451.6 kB / 0.6767 GB, free: 12.11 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003186/0.6238, allocations: 43.98 kB / 0.6768 GB, free: 12.07 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009183/0.6247, allocations: 55.97 kB / 0.6768 GB, free: 12.01 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003698/0.6251, allocations: 121.1 kB / 0.6769 GB, free: 11.89 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.867e-05/0.6252, allocations: 39.98 kB / 0.677 GB, free: 11.86 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002149/0.6273, allocations: 1.248 MB / 0.6782 GB, free: 10.62 MB / 494.1 MB Notification: Performance of sort global known variables: time 8e-08/0.6273, allocations: 0 / 0.6782 GB, free: 10.62 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002766/0.6301, allocations: 0.6015 MB / 0.6788 GB, free: 10.02 MB / 494.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.006548/0.6366, allocations: 3.912 MB / 0.6826 GB, free: 6 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.004797/0.6414, allocations: 2.354 MB / 0.6849 GB, free: 3.574 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.484e-06/0.6414, allocations: 0 / 0.6849 GB, free: 3.574 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003149/0.6446, allocations: 1.704 MB / 0.6866 GB, free: 1.793 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003096/0.6477, allocations: 0.5664 MB / 0.6871 GB, free: 1.234 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3319/0.9795, allocations: 20.94 MB / 0.7076 GB, free: 135.2 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00309/0.9826, allocations: 2.355 MB / 0.7099 GB, free: 134.5 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001754/0.9844, allocations: 420.2 kB / 0.7103 GB, free: 134.4 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001554/0.9859, allocations: 1.174 MB / 0.7114 GB, free: 134.4 MB / 0.4981 GB Notification: Performance of SimCode: time 1.433e-06/0.9859, allocations: 0 / 0.7114 GB, free: 134.4 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1361/1.122, allocations: 56.29 MB / 0.7664 GB, free: 101.6 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.63/14.75, allocations: 3.938 kB / 0.7664 GB, free: 101.6 MB / 0.4981 GB " [Timeout remaining time 645] (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 os._exit(0), Time elapsed: 17.845222870993894] Failed to read output from testmodel.py, exit status != 0: 14.873034648990142 14.886873873 14.446503271 Calling exit ...