Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.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.001765/0.001765, allocations: 102 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.539/1.539, allocations: 230.6 MB / 249.8 MB, free: 9.219 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.001613/0.001613, allocations: 220.4 kB / 306 MB, free: 4.316 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.04081/0.04081, allocations: 8.906 MB / 370.9 MB, free: 3.461 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_withLosses,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_withLosses,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_withLosses",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.002439/0.002439, allocations: 83.88 kB / 495.7 MB, free: 9.852 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3574/0.3598, allocations: 55.57 MB / 0.5384 GB, free: 26.61 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_withLosses): time 0.02178/0.3816, allocations: 25.02 MB / 0.5628 GB, free: 8.578 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02019/0.4018, allocations: 8.262 MB / 0.5709 GB, free: 2.672 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007382/0.4092, allocations: 213.9 kB / 0.5711 GB, free: 2.605 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02161/0.4308, allocations: 8.477 MB / 0.5794 GB, free: 13.54 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01415/0.4449, allocations: 3.07 MB / 0.5824 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007366/0.4523, allocations: 1.844 MB / 0.5842 GB, free: 10.28 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02201/0.4743, allocations: 11.22 MB / 0.5951 GB, free: 3.387 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04142/0.5157, allocations: 17.42 MB / 0.6121 GB, free: 2.383 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01493/0.5307, allocations: 6.036 MB / 0.618 GB, free: 12.33 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01485/0.5455, allocations: 6.545 MB / 0.6244 GB, free: 5.766 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005904/0.5514, allocations: 1.715 MB / 0.6261 GB, free: 4.051 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009156/0.5606, allocations: 2.16 MB / 0.6282 GB, free: 1.891 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008725/0.5693, allocations: 3.402 MB / 0.6315 GB, free: 14.48 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02039/0.5897, allocations: 6.358 MB / 0.6377 GB, free: 8.098 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03859/0.6283, allocations: 23.2 MB / 0.6604 GB, free: 0.8242 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.455e-06/0.6283, allocations: 0 / 0.6604 GB, free: 0.8242 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.6283, allocations: 0 / 0.6604 GB, free: 0.8242 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0007073/0.629, allocations: 4 kB / 0.6604 GB, free: 0.8203 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2685 * Number of variables: 2685 Notification: Performance of Generate backend data structure: time 0.04986/0.6788, allocations: 13.64 MB / 0.6737 GB, free: 3.062 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.449e-05/0.6789, allocations: 8.031 kB / 0.6737 GB, free: 3.055 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006676/0.6856, allocations: 1.616 MB / 0.6753 GB, free: 1.426 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0379/0.7235, allocations: 6.256 MB / 0.6814 GB, free: 11.16 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02135/0.7448, allocations: 7.302 MB / 0.6886 GB, free: 3.777 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001493/0.7463, allocations: 0.7264 MB / 0.6893 GB, free: 3.051 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006558/0.7529, allocations: 0.9491 MB / 0.6902 GB, free: 2.102 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.6535/1.406, allocations: 16.2 MB / 0.706 GB, free: 97.77 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000621/1.407, allocations: 11.56 kB / 0.706 GB, free: 97.77 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004406/1.411, allocations: 410 kB / 0.7064 GB, free: 97.46 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009006/1.412, allocations: 0.5636 MB / 0.707 GB, free: 97.4 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04311/1.455, allocations: 15.16 MB / 0.7218 GB, free: 91.65 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09979/1.555, allocations: 52.71 MB / 0.7732 GB, free: 50.87 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01899/1.574, allocations: 19.7 MB / 0.7925 GB, free: 29.24 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006253/1.58, allocations: 3.33 MB / 0.7957 GB, free: 25.91 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007013/1.581, allocations: 291.5 kB / 0.796 GB, free: 25.62 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.273e-05/1.581, allocations: 78.06 kB / 0.7961 GB, free: 25.53 MB / 494.1 MB Notification: Performance of pre-optimization done (n=447): time 7.615e-06/1.581, allocations: 0 / 0.7961 GB, free: 25.53 MB / 494.1 MB Notification: Performance of matching and sorting (n=452): time 0.05358/1.635, allocations: 20.79 MB / 0.8164 GB, free: 5.07 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.456e-05/1.635, allocations: 98.95 kB / 0.8165 GB, free: 4.961 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006545/1.641, allocations: 4.517 MB / 0.8209 GB, free: 480 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001123/1.643, allocations: 101.7 kB / 0.821 GB, free: 372 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00419/1.647, allocations: 4.36 MB / 0.8252 GB, free: 12.25 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.00299/1.65, allocations: 1.616 MB / 0.8268 GB, free: 10.66 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00263/1.652, allocations: 1.206 MB / 0.828 GB, free: 9.441 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 0.0001524/1.653, allocations: 305.1 kB / 0.8283 GB, free: 9.141 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005838/1.658, allocations: 3.069 MB / 0.8313 GB, free: 6.066 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009157/1.668, allocations: 5.218 MB / 0.8364 GB, free: 15.88 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01635/1.684, allocations: 8.883 MB / 0.8451 GB, free: 6.02 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001292/1.684, allocations: 23.94 kB / 0.8451 GB, free: 5.996 MB / 0.5138 GB Notification: Performance of matching and sorting (n=794) (initialization): time 0.02927/1.713, allocations: 9.876 MB / 0.8547 GB, free: 12.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001357/1.713, allocations: 32 kB / 0.8548 GB, free: 12.07 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001843/1.714, allocations: 68 kB / 0.8548 GB, free: 12 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004762/1.718, allocations: 1.407 MB / 0.8562 GB, free: 10.59 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006252/1.725, allocations: 1.392 MB / 0.8576 GB, free: 9.199 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02088/1.746, allocations: 12.66 MB / 0.8699 GB, free: 12.27 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005534/1.751, allocations: 355.5 kB / 0.8703 GB, free: 11.92 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001577/1.753, allocations: 303.9 kB / 0.8705 GB, free: 11.62 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 313 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (720): * Single equations (assignments): 717 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (14,54,45.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.009273/1.762, allocations: 3.9 MB / 0.8744 GB, free: 7.711 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001571/1.763, allocations: 484.8 kB / 0.8748 GB, free: 7.234 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01704/1.781, allocations: 8.46 MB / 0.8831 GB, free: 14.72 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0137/1.794, allocations: 6.232 MB / 0.8892 GB, free: 8.461 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.204e-05/1.794, allocations: 12 kB / 0.8892 GB, free: 8.449 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.303e-05/1.794, allocations: 23.91 kB / 0.8892 GB, free: 8.426 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03678/1.831, allocations: 17.43 MB / 0.9062 GB, free: 6.844 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.248e-05/1.831, allocations: 4 kB / 0.9062 GB, free: 6.84 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003882/1.835, allocations: 0.8153 MB / 0.907 GB, free: 6.023 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004161/1.839, allocations: 1.282 MB / 0.9083 GB, free: 4.734 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008739/1.84, allocations: 112 kB / 0.9084 GB, free: 4.625 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3408/2.181, allocations: 11.56 MB / 0.9197 GB, free: 177.8 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.268e-05/2.181, allocations: 13.89 kB / 0.9197 GB, free: 177.8 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02429/2.205, allocations: 11.21 MB / 0.9306 GB, free: 173.3 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002995/2.208, allocations: 1.12 MB / 0.9317 GB, free: 172.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008747/2.209, allocations: 93.77 kB / 0.9318 GB, free: 172.8 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002516/2.212, allocations: 227.2 kB / 0.932 GB, free: 172.8 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007978/2.212, allocations: 337.3 kB / 0.9324 GB, free: 172.7 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000271/2.213, allocations: 139.7 kB / 0.9325 GB, free: 172.7 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.004912/2.218, allocations: 3.122 MB / 0.9355 GB, free: 171.5 MB / 0.5763 GB Notification: Performance of sort global known variables: time 7e-08/2.218, allocations: 0 / 0.9355 GB, free: 171.5 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.008441/2.226, allocations: 1.72 MB / 0.9372 GB, free: 171.4 MB / 0.5763 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * Number of states: 4 (imc.inertiaRotor.w,imc.rotorCage.port_p.reference.gamma,loadInertia.phi,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (417): * Single equations (assignments): 414 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (14,54,43.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02361/2.25, allocations: 12.21 MB / 0.9491 GB, free: 166 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01724/2.267, allocations: 7.675 MB / 0.9566 GB, free: 163 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 2.007e-05/2.267, allocations: 3.812 kB / 0.9566 GB, free: 163 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.009106/2.276, allocations: 3.698 MB / 0.9602 GB, free: 161.4 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009266/2.285, allocations: 1.058 MB / 0.9613 GB, free: 161 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1312/2.416, allocations: 60.78 MB / 1.021 GB, free: 110.4 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01386/2.43, allocations: 6.521 MB / 1.027 GB, free: 103.8 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.008102/2.438, allocations: 2.115 MB / 1.029 GB, free: 101.7 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007394/2.446, allocations: 3.58 MB / 1.033 GB, free: 98.14 MB / 0.5763 GB Notification: Performance of SimCode: time 2.004e-06/2.446, allocations: 0 / 1.033 GB, free: 98.14 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5381/2.984, allocations: 140.5 MB / 1.17 GB, free: 183.6 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.7/24.68, allocations: 10.73 kB / 1.17 GB, free: 183.6 MB / 0.5919 GB " [Timeout remaining time 635] (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.InductionMachines.IMC_withLosses_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 HanserModelica_HanserModelica_InductionMachines_IMC_withLosses.fmu > HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 32.57058317500923] Failed to read output from testmodel.py, exit status != 0: 24.89201690698974 24.904325958 24.272607262 Calling exit ...