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.001636/0.001636, allocations: 114.8 kB / 17.16 MB, free: 5.895 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.704/1.704, allocations: 230.6 MB / 250.5 MB, free: 9.395 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.001975/0.001975, allocations: 205.3 kB / 306.7 MB, free: 4.348 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.04707/0.04707, allocations: 8.912 MB / 371.7 MB, free: 3.477 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_Steinmetz,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Steinmetz",fmuType="cs",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.002954/0.002954, allocations: 83.88 kB / 496.4 MB, free: 9.863 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4158/0.4187, allocations: 55.56 MB / 0.5391 GB, free: 26.61 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Steinmetz): time 0.01423/0.4329, allocations: 14.31 MB / 0.553 GB, free: 16.38 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01173/0.4447, allocations: 4.751 MB / 0.5577 GB, free: 12.91 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003995/0.4487, allocations: 97.72 kB / 0.5578 GB, free: 12.87 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003864/0.4525, allocations: 1.052 MB / 0.5588 GB, free: 12.31 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005455/0.458, allocations: 1.316 MB / 0.5601 GB, free: 11.43 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003338/0.4613, allocations: 0.9649 MB / 0.561 GB, free: 10.83 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006101/0.4674, allocations: 4.216 MB / 0.5651 GB, free: 8.633 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003572/0.471, allocations: 2.233 MB / 0.5673 GB, free: 7.562 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004283/0.4753, allocations: 1.976 MB / 0.5693 GB, free: 6.598 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005996/0.4813, allocations: 2.227 MB / 0.5714 GB, free: 5.496 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002362/0.4836, allocations: 0.5099 MB / 0.5719 GB, free: 5.496 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003976/0.4876, allocations: 0.7378 MB / 0.5727 GB, free: 5.41 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002317/0.4899, allocations: 1.103 MB / 0.5737 GB, free: 4.672 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007434/0.4974, allocations: 2.158 MB / 0.5758 GB, free: 3.223 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01481/0.5122, allocations: 6.762 MB / 0.5824 GB, free: 15.09 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.234e-05/0.5122, allocations: 1.25 kB / 0.5824 GB, free: 15.09 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.276e-06/0.5122, allocations: 0 / 0.5824 GB, free: 15.09 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003623/0.5126, allocations: 0 / 0.5824 GB, free: 15.09 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.02199/0.5345, allocations: 4.557 MB / 0.5869 GB, free: 11.96 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.846e-05/0.5346, allocations: 9.75 kB / 0.5869 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002262/0.5348, allocations: 84.67 kB / 0.587 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001645/0.5365, allocations: 472.2 kB / 0.5874 GB, free: 11.61 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005583/0.5421, allocations: 0.8251 MB / 0.5882 GB, free: 11.2 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007542/0.5496, allocations: 2.487 MB / 0.5907 GB, free: 9.055 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003255/0.5499, allocations: 250.4 kB / 0.5909 GB, free: 8.809 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001603/0.5515, allocations: 331.9 kB / 0.5912 GB, free: 8.484 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01189/0.5634, allocations: 4.326 MB / 0.5954 GB, free: 4.105 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001085/0.5635, allocations: 15.89 kB / 0.5955 GB, free: 4.09 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004355/0.564, allocations: 132 kB / 0.5956 GB, free: 3.961 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001988/0.5642, allocations: 154.4 kB / 0.5957 GB, free: 3.809 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009597/0.5738, allocations: 3.598 MB / 0.5992 GB, free: 208 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03237/0.6061, allocations: 13.84 MB / 0.6128 GB, free: 1.969 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008254/0.6144, allocations: 6.585 MB / 0.6192 GB, free: 10.54 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002877/0.6173, allocations: 1.281 MB / 0.6204 GB, free: 9.258 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008367/0.6256, allocations: 3.952 MB / 0.6243 GB, free: 5.156 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001615/0.6273, allocations: 0.9429 MB / 0.6252 GB, free: 4.18 MB / 430.1 MB Notification: Performance of pre-optimization done (n=143): time 3.266e-06/0.6273, allocations: 4 kB / 0.6252 GB, free: 4.176 MB / 430.1 MB Notification: Performance of matching and sorting (n=146): time 0.01475/0.642, allocations: 6.032 MB / 0.6311 GB, free: 13.93 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002041/0.6422, allocations: 226.9 kB / 0.6313 GB, free: 13.66 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003683/0.6459, allocations: 1.83 MB / 0.6331 GB, free: 11.84 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002959/0.6462, allocations: 53.7 kB / 0.6332 GB, free: 11.78 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002188/0.6484, allocations: 1.517 MB / 0.6347 GB, free: 10.25 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007627/0.6492, allocations: 0.5229 MB / 0.6352 GB, free: 9.719 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006209/0.6498, allocations: 347.4 kB / 0.6355 GB, free: 9.375 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.6499, allocations: 313.1 kB / 0.6358 GB, free: 9.066 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001292/0.6512, allocations: 0.6949 MB / 0.6365 GB, free: 8.371 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001841/0.653, allocations: 1.358 MB / 0.6378 GB, free: 6.727 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00309/0.6561, allocations: 2.122 MB / 0.6399 GB, free: 4.348 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.041e-05/0.6562, allocations: 15.88 kB / 0.6399 GB, free: 4.332 MB / 446.1 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.005078/0.6612, allocations: 2.642 MB / 0.6425 GB, free: 1.648 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.91e-05/0.6613, allocations: 27.91 kB / 0.6425 GB, free: 1.621 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.614e-05/0.6613, allocations: 16 kB / 0.6425 GB, free: 1.605 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001049/0.6624, allocations: 360.1 kB / 0.6429 GB, free: 1.238 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001446/0.6638, allocations: 399.3 kB / 0.6432 GB, free: 0.8477 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009431/0.6732, allocations: 8.451 MB / 0.6515 GB, free: 7.836 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002417/0.6756, allocations: 99.97 kB / 0.6516 GB, free: 7.738 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003569/0.676, allocations: 80 kB / 0.6517 GB, free: 7.66 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.002719/0.6787, allocations: 1.048 MB / 0.6527 GB, free: 6.605 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007121/0.6794, allocations: 206.7 kB / 0.6529 GB, free: 6.402 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005018/0.6845, allocations: 2.317 MB / 0.6551 GB, free: 4.016 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.529e-05/0.6845, allocations: 20 kB / 0.6552 GB, free: 3.996 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.243e-05/0.6845, allocations: 8 kB / 0.6552 GB, free: 3.988 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-05/0.6845, allocations: 11.95 kB / 0.6552 GB, free: 3.977 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01215/0.6967, allocations: 5.131 MB / 0.6602 GB, free: 14.71 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.156e-05/0.6967, allocations: 0 / 0.6602 GB, free: 14.71 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000908/0.6976, allocations: 175.8 kB / 0.6604 GB, free: 14.54 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00179/0.6994, allocations: 0.536 MB / 0.6609 GB, free: 13.98 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001509/0.6995, allocations: 43.98 kB / 0.6609 GB, free: 13.94 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01765/0.7172, allocations: 13.25 MB / 0.6739 GB, free: 15.86 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.7172, allocations: 4.031 kB / 0.6739 GB, free: 15.86 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007176/0.7244, allocations: 3.285 MB / 0.6771 GB, free: 12.49 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00186/0.7262, allocations: 447.6 kB / 0.6775 GB, free: 12.03 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006815/0.7269, allocations: 44.05 kB / 0.6775 GB, free: 11.99 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001055/0.728, allocations: 67.95 kB / 0.6776 GB, free: 11.92 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004036/0.7284, allocations: 109.2 kB / 0.6777 GB, free: 11.82 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001625/0.7285, allocations: 43.97 kB / 0.6778 GB, free: 11.77 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002641/0.7312, allocations: 1.248 MB / 0.679 GB, free: 10.54 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.7312, allocations: 0 / 0.679 GB, free: 10.54 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00435/0.7355, allocations: 0.6053 MB / 0.6796 GB, free: 9.93 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.007808/0.7433, allocations: 3.904 MB / 0.6834 GB, free: 5.922 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.005234/0.7486, allocations: 2.351 MB / 0.6857 GB, free: 3.5 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.466e-06/0.7486, allocations: 8.062 kB / 0.6857 GB, free: 3.492 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003629/0.7522, allocations: 1.7 MB / 0.6873 GB, free: 1.715 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003655/0.7559, allocations: 0.582 MB / 0.6879 GB, free: 1.141 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3994/1.155, allocations: 20.93 MB / 0.7084 GB, free: 134.9 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002348/1.158, allocations: 2.353 MB / 0.7106 GB, free: 134.1 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001635/1.159, allocations: 427.6 kB / 0.7111 GB, free: 134.1 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001477/1.161, allocations: 1.168 MB / 0.7122 GB, free: 134.1 MB / 0.4981 GB Notification: Performance of SimCode: time 2.033e-06/1.161, allocations: 0 / 0.7122 GB, free: 134.1 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.13/1.291, allocations: 56.32 MB / 0.7672 GB, free: 101.3 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.24/16.53, allocations: 12.06 kB / 0.7672 GB, free: 101.3 MB / 0.4981 GB " [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 os._exit(0), Time elapsed: 19.85223474103259] Failed to read output from testmodel.py, exit status != 0: 16.705574946012348 16.713883534 16.198995269 Calling exit ...