Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Rotational.TestDCPMMachine.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.001298/0.001298, allocations: 109.2 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.455/1.455, allocations: 230.6 MB / 252.6 MB, free: 8.301 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.001577/0.001577, allocations: 209 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.04194/0.04194, allocations: 8.919 MB / 374.6 MB, free: 1.914 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.Rotational.TestDCPMMachine,fileNamePrefix="HanserModelica_HanserModelica_Rotational_TestDCPMMachine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Rotational.TestDCPMMachine,fileNamePrefix="HanserModelica_HanserModelica_Rotational_TestDCPMMachine",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.002537/0.002537, allocations: 87.88 kB / 0.4892 GB, free: 7.398 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2629/0.2655, allocations: 55.61 MB / 0.5435 GB, free: 26.77 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.TestDCPMMachine): time 0.003433/0.2689, allocations: 2.911 MB / 0.5463 GB, free: 24.74 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009019/0.2698, allocations: 0.706 MB / 0.547 GB, free: 24.22 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001424/0.2699, allocations: 10.34 kB / 0.547 GB, free: 24.22 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001447/0.2701, allocations: 44.44 kB / 0.5471 GB, free: 24.19 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002272/0.2703, allocations: 102.1 kB / 0.5472 GB, free: 24.12 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001351/0.2704, allocations: 78.12 kB / 0.5473 GB, free: 24.07 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002903/0.2707, allocations: 381 kB / 0.5476 GB, free: 23.87 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000189/0.2709, allocations: 103.1 kB / 0.5477 GB, free: 23.81 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001308/0.271, allocations: 146.4 kB / 0.5479 GB, free: 23.74 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001568/0.2712, allocations: 157.3 kB / 0.548 GB, free: 23.66 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.444e-05/0.2712, allocations: 34.62 kB / 0.548 GB, free: 23.66 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.582e-05/0.2713, allocations: 39.94 kB / 0.5481 GB, free: 23.65 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.684e-05/0.2713, allocations: 71.41 kB / 0.5481 GB, free: 23.6 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001085/0.2714, allocations: 170.2 kB / 0.5483 GB, free: 23.5 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003409/0.2718, allocations: 416 kB / 0.5487 GB, free: 23.33 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.2718, allocations: 0 / 0.5487 GB, free: 23.33 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.2718, allocations: 0 / 0.5487 GB, free: 23.33 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.2718, allocations: 3.938 kB / 0.5487 GB, free: 23.32 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.000783/0.2726, allocations: 0.5313 MB / 0.5492 GB, free: 22.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.2726, allocations: 13.2 kB / 0.5492 GB, free: 22.9 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.813e-05/0.2727, allocations: 65.2 kB / 0.5493 GB, free: 22.85 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.641e-05/0.2727, allocations: 32.28 kB / 0.5493 GB, free: 22.83 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000295/0.273, allocations: 215.1 kB / 0.5495 GB, free: 22.64 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.196e-05/0.2731, allocations: 25.25 kB / 0.5496 GB, free: 22.63 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.404e-05/0.2731, allocations: 30.56 kB / 0.5496 GB, free: 22.62 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004418/0.2735, allocations: 270.3 kB / 0.5498 GB, free: 22.49 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.005e-05/0.2736, allocations: 6.953 kB / 0.5499 GB, free: 22.49 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.633e-05/0.2736, allocations: 14.84 kB / 0.5499 GB, free: 22.48 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.2736, allocations: 6.062 kB / 0.5499 GB, free: 22.48 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004098/0.274, allocations: 205.9 kB / 0.5501 GB, free: 22.41 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001329/0.2753, allocations: 0.9664 MB / 0.551 GB, free: 21.77 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003365/0.2757, allocations: 154.3 kB / 0.5512 GB, free: 21.69 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001469/0.2758, allocations: 78.48 kB / 0.5512 GB, free: 21.66 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.654e-05/0.2758, allocations: 0 / 0.5512 GB, free: 21.66 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.547e-05/0.2758, allocations: 37.81 kB / 0.5513 GB, free: 21.61 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 9.92e-07/0.2759, allocations: 0 / 0.5513 GB, free: 21.61 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.001127/0.277, allocations: 0.5343 MB / 0.5518 GB, free: 21.29 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.918e-05/0.277, allocations: 54.41 kB / 0.5518 GB, free: 21.22 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001379/0.2771, allocations: 198.1 kB / 0.552 GB, free: 21.09 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.369e-05/0.2771, allocations: 29.7 kB / 0.5521 GB, free: 21.05 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.353e-05/0.2772, allocations: 189 kB / 0.5522 GB, free: 20.89 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.13e-05/0.2772, allocations: 63.23 kB / 0.5523 GB, free: 20.85 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.63e-05/0.2773, allocations: 33.72 kB / 0.5523 GB, free: 20.82 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.614e-05/0.2774, allocations: 332.6 kB / 0.5527 GB, free: 20.5 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001417/0.2775, allocations: 63.06 kB / 0.5527 GB, free: 20.48 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001495/0.2777, allocations: 98.5 kB / 0.5528 GB, free: 20.41 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003039/0.278, allocations: 165.5 kB / 0.553 GB, free: 20.31 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.278, allocations: 3.328 kB / 0.553 GB, free: 20.31 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004025/0.2784, allocations: 233 kB / 0.5532 GB, free: 20.2 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.474e-05/0.2784, allocations: 3 kB / 0.5532 GB, free: 20.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.2784, allocations: 3 kB / 0.5532 GB, free: 20.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001425/0.2785, allocations: 21.41 kB / 0.5532 GB, free: 20.19 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001792/0.2787, allocations: 46.64 kB / 0.5533 GB, free: 20.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007128/0.2794, allocations: 1.269 MB / 0.5545 GB, free: 18.89 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001236/0.2795, allocations: 17.59 kB / 0.5545 GB, free: 18.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.291e-05/0.2796, allocations: 6.031 kB / 0.5545 GB, free: 18.89 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (22): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001154/0.2797, allocations: 145.7 kB / 0.5547 GB, free: 18.75 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.02e-05/0.2797, allocations: 32.5 kB / 0.5547 GB, free: 18.72 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.26e-05/0.2798, allocations: 24.19 kB / 0.5547 GB, free: 18.71 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.2798, allocations: 2.906 kB / 0.5547 GB, free: 18.71 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.2798, allocations: 4.062 kB / 0.5547 GB, free: 18.7 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.2798, allocations: 0 / 0.5547 GB, free: 18.7 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006817/0.2804, allocations: 0.5755 MB / 0.5553 GB, free: 18.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.2804, allocations: 0 / 0.5553 GB, free: 18.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001843/0.2806, allocations: 39.86 kB / 0.5553 GB, free: 18.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.549e-05/0.2807, allocations: 23.17 kB / 0.5553 GB, free: 18.27 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.199e-05/0.2807, allocations: 3.156 kB / 0.5553 GB, free: 18.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005355/0.2812, allocations: 1.281 MB / 0.5566 GB, free: 16.98 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.2812, allocations: 3.938 kB / 0.5566 GB, free: 16.98 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004952/0.2817, allocations: 370.1 kB / 0.557 GB, free: 16.73 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.6e-05/0.2818, allocations: 18.2 kB / 0.557 GB, free: 16.72 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.567e-05/0.2818, allocations: 4 kB / 0.557 GB, free: 16.72 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001517/0.2819, allocations: 12.11 kB / 0.557 GB, free: 16.72 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.905e-05/0.282, allocations: 13.66 kB / 0.557 GB, free: 16.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.928e-06/0.282, allocations: 10.47 kB / 0.557 GB, free: 16.71 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.929e-05/0.2821, allocations: 148.4 kB / 0.5572 GB, free: 16.61 MB / 382.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2821, allocations: 0 / 0.5572 GB, free: 16.61 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000314/0.2824, allocations: 55.03 kB / 0.5572 GB, free: 16.61 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (machine.inductor.i,machine.inertia.w,load.phi) * 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 (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006394/0.283, allocations: 0.9014 MB / 0.5581 GB, free: 15.83 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000482/0.2835, allocations: 270.5 kB / 0.5583 GB, free: 15.66 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.2835, allocations: 0 / 0.5583 GB, free: 15.66 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002383/0.2838, allocations: 192.4 kB / 0.5585 GB, free: 15.53 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000411/0.2842, allocations: 43.56 kB / 0.5586 GB, free: 15.5 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00258/0.2868, allocations: 2.557 MB / 0.5611 GB, free: 13.62 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001681/0.2869, allocations: 0.7598 MB / 0.5618 GB, free: 12.92 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.335e-05/0.287, allocations: 18.34 kB / 0.5618 GB, free: 12.92 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.291e-05/0.2871, allocations: 82.41 kB / 0.5619 GB, free: 12.86 MB / 382.1 MB Notification: Performance of SimCode: time 4.3e-07/0.2871, allocations: 0 / 0.5619 GB, free: 12.86 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04759/0.3347, allocations: 4.898 MB / 0.5667 GB, free: 12.15 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.77/12.11, allocations: 12.53 kB / 0.5667 GB, free: 12.14 MB / 382.1 MB " [Timeout remaining time 648] (rm -f HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe ; mkfifo HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe >> ../files/HanserModelica_HanserModelica.Rotational.TestDCPMMachine.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.Rotational.TestDCPMMachine_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 HanserModelica_HanserModelica_Rotational_TestDCPMMachine.fmu > HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.829335645001265] Failed to read output from testmodel.py, exit status != 0: 12.220152075999067 12.248355996 11.971357107 Calling exit ...