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.001328/0.001328, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.591/1.591, allocations: 230.6 MB / 253.4 MB, free: 14.49 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.001597/0.001597, allocations: 213.8 kB / 310 MB, free: 3.094 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.04086/0.04086, allocations: 8.92 MB / 375.4 MB, free: 6.758 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.00244/0.00244, allocations: 79.88 kB / 0.49 GB, free: 44.91 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.1191, allocations: 55.62 MB / 0.5443 GB, free: 5.191 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Steinmetz): time 0.01735/0.1365, allocations: 14.36 MB / 0.5583 GB, free: 6.766 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01221/0.1487, allocations: 4.77 MB / 0.563 GB, free: 1.977 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00368/0.1523, allocations: 99.44 kB / 0.5631 GB, free: 1.879 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004672/0.157, allocations: 1.056 MB / 0.5641 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.269/0.426, allocations: 1.324 MB / 0.5654 GB, free: 9.859 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003355/0.4294, allocations: 0.968 MB / 0.5663 GB, free: 9.859 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006287/0.4357, allocations: 4.24 MB / 0.5705 GB, free: 9.852 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003415/0.4391, allocations: 1.789 MB / 0.5722 GB, free: 9.609 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004151/0.4432, allocations: 1.979 MB / 0.5742 GB, free: 9.355 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005273/0.4485, allocations: 2.23 MB / 0.5763 GB, free: 8.977 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001803/0.4503, allocations: 0.5089 MB / 0.5768 GB, free: 8.977 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003166/0.4535, allocations: 0.7341 MB / 0.5775 GB, free: 8.977 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001437/0.4549, allocations: 1.111 MB / 0.5786 GB, free: 8.523 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00421/0.4591, allocations: 2.155 MB / 0.5807 GB, free: 7.109 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0108/0.4699, allocations: 6.76 MB / 0.5873 GB, free: 4.812 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.4699, allocations: 0 / 0.5873 GB, free: 4.812 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.325e-06/0.4699, allocations: 0 / 0.5873 GB, free: 4.812 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002966/0.4702, allocations: 0 / 0.5873 GB, free: 4.812 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.01731/0.4875, allocations: 5.429 MB / 0.5926 GB, free: 1.504 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.975e-05/0.4876, allocations: 12.95 kB / 0.5926 GB, free: 1.5 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002001/0.4878, allocations: 85.92 kB / 0.5927 GB, free: 1.492 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001135/0.4889, allocations: 477.6 kB / 0.5932 GB, free: 1.137 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005056/0.494, allocations: 0.8318 MB / 0.594 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00672/0.5007, allocations: 2.416 MB / 0.5964 GB, free: 15.12 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002876/0.501, allocations: 246.1 kB / 0.5966 GB, free: 15.01 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009596/0.5019, allocations: 332 kB / 0.5969 GB, free: 14.9 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01169/0.5136, allocations: 4.325 MB / 0.6011 GB, free: 12.34 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000104/0.5137, allocations: 6.578 kB / 0.6011 GB, free: 12.34 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003981/0.5141, allocations: 138.2 kB / 0.6013 GB, free: 12.24 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001666/0.5143, allocations: 153.8 kB / 0.6014 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009938/0.5242, allocations: 3.606 MB / 0.6049 GB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03782/0.562, allocations: 13.5 MB / 0.6181 GB, free: 14.41 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006568/0.5686, allocations: 2.686 MB / 0.6207 GB, free: 11.89 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0029/0.5715, allocations: 1.284 MB / 0.622 GB, free: 10.61 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008742/0.5803, allocations: 3.474 MB / 0.6254 GB, free: 7.176 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001878/0.5821, allocations: 0.9465 MB / 0.6263 GB, free: 6.195 MB / 414.1 MB Notification: Performance of pre-optimization done (n=143): time 4.769e-06/0.5821, allocations: 3.938 kB / 0.6263 GB, free: 6.191 MB / 414.1 MB Notification: Performance of matching and sorting (n=146): time 0.0146/0.5967, allocations: 5.355 MB / 0.6315 GB, free: 0.8242 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001924/0.5969, allocations: 222.9 kB / 0.6318 GB, free: 0.5586 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004584/0.6015, allocations: 1.83 MB / 0.6335 GB, free: 14.73 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003044/0.6018, allocations: 57.69 kB / 0.6336 GB, free: 14.67 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002084/0.6039, allocations: 1.516 MB / 0.6351 GB, free: 13.14 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007633/0.6047, allocations: 0.5232 MB / 0.6356 GB, free: 12.63 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008083/0.6055, allocations: 351.4 kB / 0.6359 GB, free: 12.28 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.6056, allocations: 305.1 kB / 0.6362 GB, free: 11.98 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001481/0.6071, allocations: 0.6988 MB / 0.6369 GB, free: 11.28 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001995/0.6091, allocations: 1.357 MB / 0.6382 GB, free: 9.656 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003482/0.6126, allocations: 2.125 MB / 0.6403 GB, free: 7.348 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.011e-05/0.6126, allocations: 4.875 kB / 0.6403 GB, free: 7.344 MB / 430.1 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.005348/0.618, allocations: 2.582 MB / 0.6428 GB, free: 4.762 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.483e-05/0.618, allocations: 21.08 kB / 0.6428 GB, free: 4.742 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.973e-05/0.6181, allocations: 16 kB / 0.6429 GB, free: 4.727 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001104/0.6192, allocations: 368 kB / 0.6432 GB, free: 4.352 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001536/0.6207, allocations: 391.4 kB / 0.6436 GB, free: 3.969 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009644/0.6303, allocations: 7.997 MB / 0.6514 GB, free: 11.54 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002512/0.6328, allocations: 99.95 kB / 0.6515 GB, free: 11.44 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004263/0.6333, allocations: 91.92 kB / 0.6516 GB, free: 11.35 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.002934/0.6362, allocations: 1.033 MB / 0.6526 GB, free: 10.31 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006716/0.6369, allocations: 218.6 kB / 0.6528 GB, free: 10.09 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005069/0.642, allocations: 2.166 MB / 0.6549 GB, free: 7.898 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.846e-05/0.642, allocations: 12 kB / 0.6549 GB, free: 7.887 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-05/0.642, allocations: 8 kB / 0.6549 GB, free: 7.879 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.85e-05/0.642, allocations: 11.97 kB / 0.6549 GB, free: 7.867 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01198/0.654, allocations: 4.952 MB / 0.6598 GB, free: 2.848 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.239e-05/0.654, allocations: 7.984 kB / 0.6598 GB, free: 2.84 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008556/0.6549, allocations: 171.8 kB / 0.66 GB, free: 2.672 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001655/0.6565, allocations: 0.539 MB / 0.6605 GB, free: 2.121 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001476/0.6567, allocations: 39.98 kB / 0.6605 GB, free: 2.082 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01476/0.6714, allocations: 12.66 MB / 0.6729 GB, free: 4.758 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/0.6714, allocations: 4.031 kB / 0.6729 GB, free: 4.754 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006424/0.6779, allocations: 3.13 MB / 0.6759 GB, free: 1.57 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001445/0.6793, allocations: 370.6 kB / 0.6763 GB, free: 1.207 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008226/0.6801, allocations: 47.92 kB / 0.6763 GB, free: 1.16 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001557/0.6817, allocations: 59.95 kB / 0.6764 GB, free: 1.102 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003878/0.6821, allocations: 121.1 kB / 0.6765 GB, free: 0.9844 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001156/0.6822, allocations: 39.98 kB / 0.6766 GB, free: 0.9453 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003032/0.6852, allocations: 1.248 MB / 0.6778 GB, free: 15.71 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6852, allocations: 112 / 0.6778 GB, free: 15.71 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004183/0.6894, allocations: 0.6131 MB / 0.6784 GB, free: 15.09 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.006831/0.6962, allocations: 3.754 MB / 0.682 GB, free: 11.28 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004502/0.7007, allocations: 2.275 MB / 0.6843 GB, free: 8.953 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.467e-06/0.7008, allocations: 0.5 kB / 0.6843 GB, free: 8.953 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002937/0.7037, allocations: 1.714 MB / 0.6859 GB, free: 7.164 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003967/0.7077, allocations: 0.5626 MB / 0.6865 GB, free: 6.609 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04882/0.7565, allocations: 20.84 MB / 0.7068 GB, free: 1.023 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003992/0.7605, allocations: 2.351 MB / 0.7091 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00179/0.7623, allocations: 429.6 kB / 0.7095 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002165/0.7644, allocations: 1.167 MB / 0.7107 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of SimCode: time 1.193e-06/0.7644, allocations: 4 kB / 0.7107 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1528/0.9172, allocations: 57.74 MB / 0.7671 GB, free: 3.711 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.35/16.26, allocations: 12.05 kB / 0.7671 GB, free: 3.699 MB / 0.545 GB " [Timeout remaining time 644] (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: 21.217964267008938] Failed to read output from testmodel.py, exit status != 0: 16.463648310978897 16.663896336 16.191136213 Calling exit ...