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.00124/0.00124, 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.376/1.376, 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.001623/0.001623, allocations: 210.9 kB / 309.2 MB, free: 2.941 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.04099/0.04099, allocations: 8.918 MB / 374.6 MB, free: 1.719 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.002808/0.002808, allocations: 91.88 kB / 0.4891 GB, free: 7.184 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2465/0.2493, allocations: 55.61 MB / 0.5434 GB, free: 26.66 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Steinmetz): time 0.01024/0.2596, allocations: 12.46 MB / 0.5556 GB, free: 18.41 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006544/0.2661, allocations: 4.491 MB / 0.56 GB, free: 15.24 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001673/0.2678, allocations: 99.06 kB / 0.5601 GB, free: 15.21 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002178/0.27, allocations: 0.9947 MB / 0.5611 GB, free: 14.7 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002887/0.2729, allocations: 1.311 MB / 0.5624 GB, free: 13.84 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001827/0.2747, allocations: 0.9349 MB / 0.5633 GB, free: 13.26 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00428/0.279, allocations: 4.238 MB / 0.5674 GB, free: 11.06 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002546/0.2815, allocations: 1.705 MB / 0.5691 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002998/0.2845, allocations: 1.986 MB / 0.571 GB, free: 9.172 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004533/0.289, allocations: 2.105 MB / 0.5731 GB, free: 8.215 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001588/0.2906, allocations: 0.507 MB / 0.5736 GB, free: 8.215 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00243/0.2931, allocations: 0.72 MB / 0.5743 GB, free: 8.141 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001234/0.2943, allocations: 1.1 MB / 0.5753 GB, free: 7.402 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003232/0.2975, allocations: 1.713 MB / 0.577 GB, free: 6.398 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007019/0.3045, allocations: 6.792 MB / 0.5836 GB, free: 1.824 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.3045, allocations: 0 / 0.5836 GB, free: 1.824 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3045, allocations: 0 / 0.5836 GB, free: 1.824 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001388/0.3047, allocations: 1.5 kB / 0.5836 GB, free: 1.824 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.01205/0.3167, allocations: 5.418 MB / 0.5889 GB, free: 14.14 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.3168, allocations: 8.031 kB / 0.5889 GB, free: 14.14 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006483/0.3174, allocations: 467.9 kB / 0.5894 GB, free: 13.67 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004271/0.3217, allocations: 0.8261 MB / 0.5902 GB, free: 12.84 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005815/0.3275, allocations: 2.412 MB / 0.5925 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002395/0.3277, allocations: 246.6 kB / 0.5928 GB, free: 10.14 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008005/0.3285, allocations: 331.9 kB / 0.5931 GB, free: 9.812 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008373/0.3369, allocations: 4.469 MB / 0.5975 GB, free: 5.254 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.887e-05/0.337, allocations: 11.89 kB / 0.5975 GB, free: 5.242 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003593/0.3374, allocations: 140 kB / 0.5976 GB, free: 5.105 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001639/0.3375, allocations: 150.5 kB / 0.5978 GB, free: 4.957 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006536/0.3441, allocations: 3.586 MB / 0.6013 GB, free: 1.363 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02343/0.3675, allocations: 12.32 MB / 0.6133 GB, free: 4.68 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005328/0.3728, allocations: 2.656 MB / 0.6159 GB, free: 2.137 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002408/0.3752, allocations: 1.277 MB / 0.6171 GB, free: 0.8594 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006763/0.382, allocations: 3.127 MB / 0.6202 GB, free: 13.7 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001612/0.3836, allocations: 1.097 MB / 0.6213 GB, free: 12.54 MB / 430.1 MB Notification: Performance of pre-optimization done (n=143): time 3.547e-06/0.3836, allocations: 0 / 0.6213 GB, free: 12.54 MB / 430.1 MB Notification: Performance of matching and sorting (n=146): time 0.01375/0.3974, allocations: 5.359 MB / 0.6265 GB, free: 7.125 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001549/0.3975, allocations: 222.9 kB / 0.6267 GB, free: 6.859 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003134/0.4006, allocations: 1.853 MB / 0.6285 GB, free: 5.008 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002326/0.4009, allocations: 53.7 kB / 0.6286 GB, free: 4.949 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00165/0.4025, allocations: 1.521 MB / 0.63 GB, free: 3.414 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005511/0.4031, allocations: 0.5307 MB / 0.6306 GB, free: 2.879 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005524/0.4036, allocations: 339.5 kB / 0.6309 GB, free: 2.543 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.4038, allocations: 305.1 kB / 0.6312 GB, free: 2.242 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001213/0.405, allocations: 0.7066 MB / 0.6319 GB, free: 1.535 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001949/0.4069, allocations: 1.534 MB / 0.6334 GB, free: 15.68 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003027/0.4099, allocations: 2.118 MB / 0.6354 GB, free: 13.3 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.034e-05/0.41, allocations: 8 kB / 0.6354 GB, free: 13.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.004508/0.4145, allocations: 2.586 MB / 0.638 GB, free: 10.69 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.961e-05/0.4145, allocations: 15.98 kB / 0.638 GB, free: 10.67 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.52e-05/0.4145, allocations: 20 kB / 0.638 GB, free: 10.65 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009803/0.4155, allocations: 368.3 kB / 0.6384 GB, free: 10.28 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001392/0.4169, allocations: 395.4 kB / 0.6387 GB, free: 9.891 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008139/0.425, allocations: 7.939 MB / 0.6465 GB, free: 1.496 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001543/0.4266, allocations: 95.91 kB / 0.6466 GB, free: 1.402 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001426/0.4267, allocations: 83.98 kB / 0.6467 GB, free: 1.32 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.001797/0.4285, allocations: 1.038 MB / 0.6477 GB, free: 280 kB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003754/0.4289, allocations: 210.6 kB / 0.6479 GB, free: 68 kB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00433/0.4332, allocations: 2.175 MB / 0.65 GB, free: 13.85 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.591e-05/0.4332, allocations: 20 kB / 0.65 GB, free: 13.83 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.427e-05/0.4332, allocations: 8 kB / 0.65 GB, free: 13.82 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.443e-05/0.4333, allocations: 7.969 kB / 0.65 GB, free: 13.82 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008652/0.4419, allocations: 4.675 MB / 0.6546 GB, free: 9.051 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.222e-06/0.4419, allocations: 0 / 0.6546 GB, free: 9.051 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008064/0.4427, allocations: 183.9 kB / 0.6548 GB, free: 8.871 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00147/0.4442, allocations: 0.5163 MB / 0.6553 GB, free: 8.336 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001143/0.4443, allocations: 44.11 kB / 0.6553 GB, free: 8.293 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01388/0.4582, allocations: 12.55 MB / 0.6676 GB, free: 11.07 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/0.4582, allocations: 3.984 kB / 0.6676 GB, free: 11.07 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005834/0.464, allocations: 3.131 MB / 0.6706 GB, free: 7.883 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001286/0.4653, allocations: 374.5 kB / 0.671 GB, free: 7.516 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003237/0.4656, allocations: 47.94 kB / 0.671 GB, free: 7.469 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008606/0.4665, allocations: 56.33 kB / 0.6711 GB, free: 7.414 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003266/0.4668, allocations: 121 kB / 0.6712 GB, free: 7.297 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.455e-05/0.4669, allocations: 47.98 kB / 0.6712 GB, free: 7.25 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001985/0.4689, allocations: 1.244 MB / 0.6725 GB, free: 6.016 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4689, allocations: 7.938 kB / 0.6725 GB, free: 6.008 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002333/0.4712, allocations: 0.6054 MB / 0.6731 GB, free: 5.402 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.00594/0.4772, allocations: 3.768 MB / 0.6767 GB, free: 1.57 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003919/0.4811, allocations: 2.272 MB / 0.679 GB, free: 15.25 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.4811, allocations: 4.25 kB / 0.679 GB, free: 15.24 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002778/0.4839, allocations: 1.704 MB / 0.6806 GB, free: 13.46 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003078/0.487, allocations: 0.5713 MB / 0.6812 GB, free: 12.9 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2238/0.7108, allocations: 20.81 MB / 0.7015 GB, free: 117.7 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001744/0.7125, allocations: 1.792 MB / 0.7033 GB, free: 117.2 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001229/0.7138, allocations: 431.2 kB / 0.7037 GB, free: 117.2 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001139/0.7149, allocations: 1.168 MB / 0.7048 GB, free: 116.2 MB / 494.1 MB Notification: Performance of SimCode: time 1.031e-06/0.7149, allocations: 0 / 0.7048 GB, free: 116.2 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1027/0.8176, allocations: 59.89 MB / 0.7633 GB, free: 77.41 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.09/13.9, allocations: 10.34 kB / 0.7633 GB, free: 77.41 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 & /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: 17.376105963252485] Failed to read output from testmodel.py, exit status != 0: 14.045171740930527 14.054427162 13.747638259 Calling exit ...