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.001751/0.001751, 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.475/1.475, allocations: 230.6 MB / 252.7 MB, free: 8.07 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.001591/0.001591, allocations: 209.8 kB / 309.2 MB, free: 2.992 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.04123/0.04123, allocations: 8.917 MB / 374.6 MB, free: 1.766 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.00259/0.00259, allocations: 87.88 kB / 0.4891 GB, free: 7.215 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.262/0.2646, allocations: 55.6 MB / 0.5434 GB, free: 26.66 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.TestDCPMMachine): time 0.003105/0.2677, allocations: 2.711 MB / 0.5461 GB, free: 24.85 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009176/0.2686, allocations: 0.6576 MB / 0.5467 GB, free: 24.39 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001289/0.2687, allocations: 7.156 kB / 0.5467 GB, free: 24.38 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001419/0.2689, allocations: 51.77 kB / 0.5468 GB, free: 24.35 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001956/0.2691, allocations: 94.86 kB / 0.5469 GB, free: 24.28 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001329/0.2692, allocations: 93.59 kB / 0.5469 GB, free: 24.22 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002741/0.2695, allocations: 369.6 kB / 0.5473 GB, free: 24.03 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001765/0.2696, allocations: 101.7 kB / 0.5474 GB, free: 23.98 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001181/0.2698, allocations: 143 kB / 0.5475 GB, free: 23.91 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001403/0.2699, allocations: 140.2 kB / 0.5477 GB, free: 23.84 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.272e-05/0.2699, allocations: 35.16 kB / 0.5477 GB, free: 23.84 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.167e-05/0.27, allocations: 35.44 kB / 0.5477 GB, free: 23.84 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.178e-05/0.27, allocations: 75.02 kB / 0.5478 GB, free: 23.79 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.236e-05/0.2701, allocations: 135.9 kB / 0.5479 GB, free: 23.71 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003007/0.2704, allocations: 416 kB / 0.5483 GB, free: 23.54 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.2704, allocations: 0 / 0.5483 GB, free: 23.54 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.2704, allocations: 0 / 0.5483 GB, free: 23.54 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.098e-05/0.2704, allocations: 0 / 0.5483 GB, free: 23.54 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.0007119/0.2712, allocations: 0.5276 MB / 0.5488 GB, free: 23.13 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.2712, allocations: 14.02 kB / 0.5489 GB, free: 23.13 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.916e-05/0.2712, allocations: 70.58 kB / 0.5489 GB, free: 23.07 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.254e-05/0.2713, allocations: 35.28 kB / 0.549 GB, free: 23.05 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002997/0.2716, allocations: 213.2 kB / 0.5492 GB, free: 22.86 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.457e-05/0.2716, allocations: 25.75 kB / 0.5492 GB, free: 22.85 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.583e-05/0.2717, allocations: 36.03 kB / 0.5492 GB, free: 22.83 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004216/0.2721, allocations: 298.4 kB / 0.5495 GB, free: 22.67 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.802e-05/0.2721, allocations: 3.953 kB / 0.5495 GB, free: 22.67 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.299e-05/0.2721, allocations: 11.25 kB / 0.5495 GB, free: 22.66 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.014e-06/0.2721, allocations: 6.625 kB / 0.5495 GB, free: 22.66 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003738/0.2725, allocations: 214.8 kB / 0.5497 GB, free: 22.59 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001153/0.2737, allocations: 0.8972 MB / 0.5506 GB, free: 21.97 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003073/0.274, allocations: 147.3 kB / 0.5507 GB, free: 21.9 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001428/0.2741, allocations: 76.83 kB / 0.5508 GB, free: 21.87 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.883e-05/0.2741, allocations: 0 / 0.5508 GB, free: 21.87 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.354e-05/0.2741, allocations: 32.97 kB / 0.5509 GB, free: 21.83 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 1.011e-06/0.2741, allocations: 7.938 kB / 0.5509 GB, free: 21.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.001093/0.2752, allocations: 0.5269 MB / 0.5514 GB, free: 21.5 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.255e-05/0.2753, allocations: 54.25 kB / 0.5514 GB, free: 21.43 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001385/0.2754, allocations: 196 kB / 0.5516 GB, free: 21.3 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.351e-05/0.2754, allocations: 36.58 kB / 0.5516 GB, free: 21.26 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.716e-05/0.2755, allocations: 184.8 kB / 0.5518 GB, free: 21.11 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.073e-05/0.2755, allocations: 59.78 kB / 0.5519 GB, free: 21.06 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.27e-05/0.2756, allocations: 44.17 kB / 0.5519 GB, free: 21.03 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.157e-05/0.2756, allocations: 328.7 kB / 0.5522 GB, free: 20.71 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001328/0.2757, allocations: 58.08 kB / 0.5523 GB, free: 20.69 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001402/0.2759, allocations: 105.2 kB / 0.5524 GB, free: 20.62 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00026/0.2761, allocations: 170.4 kB / 0.5526 GB, free: 20.52 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-06/0.2762, allocations: 3.938 kB / 0.5526 GB, free: 20.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003707/0.2765, allocations: 224.2 kB / 0.5528 GB, free: 20.41 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.257e-05/0.2765, allocations: 2.844 kB / 0.5528 GB, free: 20.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.2765, allocations: 7.344 kB / 0.5528 GB, free: 20.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001213/0.2767, allocations: 21.52 kB / 0.5528 GB, free: 20.4 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001658/0.2768, allocations: 46.28 kB / 0.5528 GB, free: 20.39 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006094/0.2774, allocations: 1.267 MB / 0.5541 GB, free: 19.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001158/0.2776, allocations: 13.5 kB / 0.5541 GB, free: 19.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.218e-05/0.2776, allocations: 13.97 kB / 0.5541 GB, free: 19.1 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 9.416e-05/0.2777, allocations: 144.7 kB / 0.5542 GB, free: 18.96 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.608e-05/0.2777, allocations: 17.75 kB / 0.5543 GB, free: 18.95 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.828e-05/0.2777, allocations: 35.27 kB / 0.5543 GB, free: 18.93 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.2777, allocations: 3.938 kB / 0.5543 GB, free: 18.92 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.2777, allocations: 3.219 kB / 0.5543 GB, free: 18.92 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.2777, allocations: 0 / 0.5543 GB, free: 18.92 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006564/0.2784, allocations: 0.5578 MB / 0.5549 GB, free: 18.51 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.856e-06/0.2784, allocations: 3.188 kB / 0.5549 GB, free: 18.51 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001752/0.2786, allocations: 33.86 kB / 0.5549 GB, free: 18.51 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.06e-05/0.2786, allocations: 20.78 kB / 0.5549 GB, free: 18.5 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.239e-05/0.2786, allocations: 3 kB / 0.5549 GB, free: 18.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005193/0.2792, allocations: 1.272 MB / 0.5562 GB, free: 17.21 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.2792, allocations: 0 / 0.5562 GB, free: 17.21 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004645/0.2796, allocations: 377 kB / 0.5565 GB, free: 16.97 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.61e-05/0.2797, allocations: 17.97 kB / 0.5565 GB, free: 16.96 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.425e-05/0.2797, allocations: 7.031 kB / 0.5565 GB, free: 16.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001426/0.2798, allocations: 13.64 kB / 0.5565 GB, free: 16.95 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.518e-05/0.2799, allocations: 17.17 kB / 0.5566 GB, free: 16.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.916e-06/0.2799, allocations: 2.875 kB / 0.5566 GB, free: 16.95 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.817e-05/0.28, allocations: 146.7 kB / 0.5567 GB, free: 16.85 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.28, allocations: 0 / 0.5567 GB, free: 16.85 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002955/0.2803, allocations: 57.91 kB / 0.5568 GB, free: 16.84 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.0006045/0.2809, allocations: 0.9044 MB / 0.5576 GB, free: 16.06 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004478/0.2813, allocations: 257.5 kB / 0.5579 GB, free: 15.91 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.2813, allocations: 0 / 0.5579 GB, free: 15.91 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002207/0.2815, allocations: 192 kB / 0.5581 GB, free: 15.77 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003593/0.2819, allocations: 47.22 kB / 0.5581 GB, free: 15.75 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0025/0.2844, allocations: 2.568 MB / 0.5606 GB, free: 13.86 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001073/0.2845, allocations: 161 kB / 0.5608 GB, free: 13.78 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.58e-05/0.2846, allocations: 14.53 kB / 0.5608 GB, free: 13.78 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.664e-05/0.2847, allocations: 79.7 kB / 0.5609 GB, free: 13.71 MB / 382.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2847, allocations: 0 / 0.5609 GB, free: 13.71 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03813/0.3228, allocations: 5.374 MB / 0.5661 GB, free: 12.5 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.62/11.94, allocations: 4 kB / 0.5661 GB, free: 12.5 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.657313480041921] Failed to read output from testmodel.py, exit status != 0: 12.048568397760391 12.060812087 11.787963971 Calling exit ...