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.001663/0.001663, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.516/1.516, allocations: 230.6 MB / 252.7 MB, free: 8.297 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.001607/0.001607, allocations: 216.4 kB / 309.2 MB, free: 3.16 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.04286/0.04286, allocations: 8.917 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.002905/0.002905, allocations: 88.23 kB / 0.4892 GB, free: 7.371 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3521/0.355, allocations: 55.6 MB / 0.5435 GB, free: 26.61 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Steinmetz): time 0.0119/0.3669, allocations: 14.36 MB / 0.5575 GB, free: 16.36 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0085/0.3754, allocations: 4.766 MB / 0.5622 GB, free: 12.88 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002929/0.3783, allocations: 97.81 kB / 0.5623 GB, free: 12.85 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002943/0.3813, allocations: 1.048 MB / 0.5633 GB, free: 12.29 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004802/0.3861, allocations: 1.333 MB / 0.5646 GB, free: 11.4 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002444/0.3885, allocations: 0.9837 MB / 0.5656 GB, free: 10.78 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005362/0.3939, allocations: 4.23 MB / 0.5697 GB, free: 8.578 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002447/0.3963, allocations: 1.778 MB / 0.5714 GB, free: 7.586 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003668/0.4, allocations: 1.984 MB / 0.5734 GB, free: 6.613 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004679/0.4047, allocations: 2.229 MB / 0.5756 GB, free: 5.508 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001524/0.4062, allocations: 0.5092 MB / 0.5761 GB, free: 5.508 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002899/0.4091, allocations: 0.7371 MB / 0.5768 GB, free: 5.426 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001487/0.4106, allocations: 1.109 MB / 0.5779 GB, free: 4.68 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007238/0.4178, allocations: 2.159 MB / 0.58 GB, free: 3.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01026/0.4281, allocations: 6.759 MB / 0.5866 GB, free: 14.73 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.702e-06/0.4281, allocations: 3.938 kB / 0.5866 GB, free: 14.73 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.4281, allocations: 1.219 kB / 0.5866 GB, free: 14.73 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002494/0.4283, allocations: 0 / 0.5866 GB, free: 14.73 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.01752/0.4458, allocations: 5.431 MB / 0.5919 GB, free: 11.09 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.042e-05/0.4459, allocations: 10.44 kB / 0.5919 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009981/0.4469, allocations: 466.6 kB / 0.5923 GB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004667/0.4516, allocations: 0.8304 MB / 0.5931 GB, free: 10 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007008/0.4586, allocations: 2.424 MB / 0.5955 GB, free: 7.531 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000242/0.4588, allocations: 250.6 kB / 0.5957 GB, free: 7.285 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009198/0.4597, allocations: 328 kB / 0.5961 GB, free: 6.965 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009627/0.4694, allocations: 4.326 MB / 0.6003 GB, free: 2.586 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.854e-05/0.4695, allocations: 11.88 kB / 0.6003 GB, free: 2.574 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003533/0.4698, allocations: 136 kB / 0.6004 GB, free: 2.441 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001849/0.47, allocations: 146.5 kB / 0.6006 GB, free: 2.297 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007413/0.4774, allocations: 3.602 MB / 0.6041 GB, free: 14.68 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0275/0.5049, allocations: 13.5 MB / 0.6173 GB, free: 0.8203 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005471/0.5104, allocations: 2.686 MB / 0.6199 GB, free: 14.25 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002513/0.5129, allocations: 1.277 MB / 0.6211 GB, free: 12.98 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008052/0.5209, allocations: 3.482 MB / 0.6245 GB, free: 9.465 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001694/0.5226, allocations: 0.939 MB / 0.6255 GB, free: 8.492 MB / 430.1 MB Notification: Performance of pre-optimization done (n=143): time 5.771e-06/0.5226, allocations: 0 / 0.6255 GB, free: 8.492 MB / 430.1 MB Notification: Performance of matching and sorting (n=146): time 0.014/0.5366, allocations: 5.359 MB / 0.6307 GB, free: 3.082 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001636/0.5368, allocations: 234.9 kB / 0.6309 GB, free: 2.805 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003639/0.5405, allocations: 1.826 MB / 0.6327 GB, free: 0.9805 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000233/0.5407, allocations: 57.7 kB / 0.6327 GB, free: 0.918 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001887/0.5426, allocations: 1.521 MB / 0.6342 GB, free: 15.38 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006458/0.5432, allocations: 0.5191 MB / 0.6347 GB, free: 14.86 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007554/0.544, allocations: 351.4 kB / 0.6351 GB, free: 14.51 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.5441, allocations: 301.1 kB / 0.6354 GB, free: 14.21 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001313/0.5454, allocations: 0.6988 MB / 0.636 GB, free: 13.51 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001972/0.5474, allocations: 1.358 MB / 0.6374 GB, free: 11.88 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003454/0.5508, allocations: 2.13 MB / 0.6395 GB, free: 9.484 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.596e-05/0.5509, allocations: 4 kB / 0.6395 GB, free: 9.48 MB / 446.1 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.005323/0.5562, allocations: 2.586 MB / 0.642 GB, free: 6.875 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.042e-05/0.5562, allocations: 15.94 kB / 0.642 GB, free: 6.859 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.085e-05/0.5563, allocations: 20 kB / 0.642 GB, free: 6.84 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001213/0.5575, allocations: 367.5 kB / 0.6424 GB, free: 6.469 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001521/0.559, allocations: 391.4 kB / 0.6427 GB, free: 6.086 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009652/0.5687, allocations: 7.998 MB / 0.6505 GB, free: 13.63 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002231/0.5709, allocations: 99.97 kB / 0.6506 GB, free: 13.53 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00037/0.5713, allocations: 80 kB / 0.6507 GB, free: 13.45 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.002814/0.5741, allocations: 1.045 MB / 0.6517 GB, free: 12.4 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007193/0.5748, allocations: 206.7 kB / 0.6519 GB, free: 12.2 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005156/0.58, allocations: 2.175 MB / 0.6541 GB, free: 9.984 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-05/0.58, allocations: 12 kB / 0.6541 GB, free: 9.973 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.048e-05/0.58, allocations: 8 kB / 0.6541 GB, free: 9.965 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.954e-05/0.58, allocations: 3.984 kB / 0.6541 GB, free: 9.961 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01432/0.5944, allocations: 4.971 MB / 0.6589 GB, free: 4.898 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-05/0.5944, allocations: 4 kB / 0.6589 GB, free: 4.895 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008707/0.5952, allocations: 175.7 kB / 0.6591 GB, free: 4.723 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001564/0.5968, allocations: 0.5315 MB / 0.6596 GB, free: 4.176 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001593/0.597, allocations: 39.98 kB / 0.6597 GB, free: 4.137 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01429/0.6113, allocations: 12.66 MB / 0.672 GB, free: 6.801 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/0.6113, allocations: 4 kB / 0.672 GB, free: 6.797 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006113/0.6174, allocations: 3.131 MB / 0.6751 GB, free: 3.609 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001446/0.6188, allocations: 374.5 kB / 0.6754 GB, free: 3.242 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006735/0.6195, allocations: 47.98 kB / 0.6755 GB, free: 3.195 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00126/0.6208, allocations: 55.95 kB / 0.6755 GB, free: 3.141 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003774/0.6211, allocations: 125 kB / 0.6757 GB, free: 3.02 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001048/0.6212, allocations: 43.98 kB / 0.6757 GB, free: 2.977 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002834/0.6241, allocations: 1.248 MB / 0.6769 GB, free: 1.738 MB / 478.1 MB Notification: Performance of sort global known variables: time 1e-07/0.6241, allocations: 0 / 0.6769 GB, free: 1.738 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00358/0.6277, allocations: 0.6015 MB / 0.6775 GB, free: 1.137 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.007048/0.6347, allocations: 3.775 MB / 0.6812 GB, free: 13.3 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.004619/0.6393, allocations: 2.264 MB / 0.6834 GB, free: 10.98 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.181e-05/0.6393, allocations: 4.125 kB / 0.6834 GB, free: 10.98 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002914/0.6422, allocations: 1.708 MB / 0.6851 GB, free: 9.195 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003885/0.6461, allocations: 0.5812 MB / 0.6857 GB, free: 8.625 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.304/0.9501, allocations: 20.83 MB / 0.706 GB, free: 116.9 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001783/0.9519, allocations: 2.344 MB / 0.7083 GB, free: 115.9 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001287/0.9532, allocations: 422.5 kB / 0.7087 GB, free: 115.9 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001183/0.9543, allocations: 1.172 MB / 0.7098 GB, free: 114.9 MB / 494.1 MB Notification: Performance of SimCode: time 1.292e-06/0.9543, allocations: 0 / 0.7098 GB, free: 114.9 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1572/1.112, allocations: 57.71 MB / 0.7662 GB, free: 75.39 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.52/16.63, allocations: 7.984 kB / 0.7662 GB, free: 75.39 MB / 494.1 MB " [Timeout remaining time 643] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_InductionMachines_IMC_Steinmetz_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_InductionMachines_IMC_Steinmetz.fmu > HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 20.560136240907013] Failed to read output from testmodel.py, exit status != 0: 16.785490789916366 16.805121727 16.372900184 Calling exit ...