Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Rotational.Drive.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.001694/0.001694, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.486/1.486, allocations: 230.6 MB / 252.6 MB, free: 8.289 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.001559/0.001559, allocations: 216.5 kB / 309.2 MB, free: 3.152 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.04184/0.04184, allocations: 8.904 MB / 374.6 MB, free: 1.91 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.Drive,fileNamePrefix="HanserModelica_HanserModelica_Rotational_Drive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Rotational.Drive,fileNamePrefix="HanserModelica_HanserModelica_Rotational_Drive",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.002528/0.002528, allocations: 87.86 kB / 0.4892 GB, free: 7.375 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2564/0.2589, allocations: 55.59 MB / 0.5435 GB, free: 26.78 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.Drive): time 0.002661/0.2616, allocations: 2.09 MB / 0.5455 GB, free: 25.33 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001333/0.2629, allocations: 1.154 MB / 0.5467 GB, free: 24.55 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.869e-05/0.263, allocations: 7.188 kB / 0.5467 GB, free: 24.54 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003001/0.2633, allocations: 119.8 kB / 0.5468 GB, free: 24.51 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000305/0.2636, allocations: 153.3 kB / 0.5469 GB, free: 24.44 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001953/0.2638, allocations: 104.9 kB / 0.547 GB, free: 24.38 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002085/0.264, allocations: 225 kB / 0.5472 GB, free: 24.28 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001144/0.2641, allocations: 29.67 kB / 0.5473 GB, free: 24.27 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001134/0.2642, allocations: 104.4 kB / 0.5474 GB, free: 24.23 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001474/0.2644, allocations: 127.6 kB / 0.5475 GB, free: 24.18 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.334e-05/0.2644, allocations: 12.5 kB / 0.5475 GB, free: 24.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.164e-05/0.2645, allocations: 50.47 kB / 0.5475 GB, free: 24.17 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.599e-05/0.2646, allocations: 43.75 kB / 0.5476 GB, free: 24.14 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.005e-05/0.2646, allocations: 99.77 kB / 0.5477 GB, free: 24.08 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002526/0.2649, allocations: 226.9 kB / 0.5479 GB, free: 23.98 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.2649, allocations: 3.422 kB / 0.5479 GB, free: 23.98 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2649, allocations: 0 / 0.5479 GB, free: 23.98 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.2649, allocations: 3.25 kB / 0.5479 GB, free: 23.98 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0005724/0.2655, allocations: 448.2 kB / 0.5483 GB, free: 23.6 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.2655, allocations: 9.906 kB / 0.5483 GB, free: 23.6 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.493e-05/0.2655, allocations: 45.47 kB / 0.5484 GB, free: 23.55 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.391e-05/0.2656, allocations: 26.39 kB / 0.5484 GB, free: 23.54 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002645/0.2659, allocations: 193.7 kB / 0.5486 GB, free: 23.36 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.728e-05/0.2659, allocations: 11.39 kB / 0.5486 GB, free: 23.36 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.126e-05/0.2659, allocations: 17.75 kB / 0.5486 GB, free: 23.35 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000226/0.2661, allocations: 139.2 kB / 0.5488 GB, free: 23.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.646e-05/0.2661, allocations: 7.094 kB / 0.5488 GB, free: 23.27 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.42e-05/0.2662, allocations: 3.062 kB / 0.5488 GB, free: 23.27 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.2662, allocations: 7.062 kB / 0.5488 GB, free: 23.26 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001454/0.2663, allocations: 72.34 kB / 0.5488 GB, free: 23.24 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006248/0.2669, allocations: 0.5692 MB / 0.5494 GB, free: 22.78 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002154/0.2671, allocations: 81.19 kB / 0.5495 GB, free: 22.73 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.669e-05/0.2672, allocations: 32.73 kB / 0.5495 GB, free: 22.71 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.357e-05/0.2672, allocations: 10.62 kB / 0.5495 GB, free: 22.71 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001568/0.2674, allocations: 83.59 kB / 0.5496 GB, free: 22.65 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.403e-06/0.2674, allocations: 0 / 0.5496 GB, free: 22.65 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003252/0.2677, allocations: 153.9 kB / 0.5497 GB, free: 22.57 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.08e-05/0.2677, allocations: 51.41 kB / 0.5498 GB, free: 22.51 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002006/0.2679, allocations: 289.2 kB / 0.5501 GB, free: 22.35 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.19e-05/0.268, allocations: 28.92 kB / 0.5501 GB, free: 22.32 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.001e-05/0.268, allocations: 143.2 kB / 0.5502 GB, free: 22.19 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.331e-05/0.268, allocations: 37.67 kB / 0.5503 GB, free: 22.16 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.089e-05/0.2681, allocations: 27.28 kB / 0.5503 GB, free: 22.14 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.206e-05/0.2681, allocations: 340.1 kB / 0.5506 GB, free: 21.81 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.19e-05/0.2682, allocations: 34.83 kB / 0.5507 GB, free: 21.79 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.622e-05/0.2683, allocations: 73.44 kB / 0.5507 GB, free: 21.73 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001399/0.2684, allocations: 102.9 kB / 0.5508 GB, free: 21.66 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.2684, allocations: 7.328 kB / 0.5508 GB, free: 21.66 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002169/0.2686, allocations: 136.7 kB / 0.551 GB, free: 21.59 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/0.2687, allocations: 11.2 kB / 0.551 GB, free: 21.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.279e-06/0.2687, allocations: 7.188 kB / 0.551 GB, free: 21.58 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.49e-05/0.2687, allocations: 0 / 0.551 GB, free: 21.58 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001381/0.2688, allocations: 25.92 kB / 0.551 GB, free: 21.58 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.243e-06/0.2688, allocations: 3.312 kB / 0.551 GB, free: 21.58 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.42e-05/0.2689, allocations: 11.23 kB / 0.551 GB, free: 21.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.062e-05/0.2689, allocations: 14.12 kB / 0.551 GB, free: 21.57 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: 5 ($PRE.combiTimeTable.nextTimeEvent,$whenCondition1,combiTimeTable.nextTimeEventScaled,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.805e-05/0.269, allocations: 148.9 kB / 0.5512 GB, free: 21.43 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.542e-05/0.269, allocations: 29.16 kB / 0.5512 GB, free: 21.41 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002412/0.2693, allocations: 141.5 kB / 0.5513 GB, free: 21.34 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.2693, allocations: 0 / 0.5513 GB, free: 21.34 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.2693, allocations: 0 / 0.5513 GB, free: 21.34 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.387e-06/0.2693, allocations: 0 / 0.5513 GB, free: 21.34 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001311/0.2694, allocations: 217.4 kB / 0.5515 GB, free: 21.15 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.2694, allocations: 0 / 0.5515 GB, free: 21.15 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001028/0.2695, allocations: 20.16 kB / 0.5516 GB, free: 21.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.2695, allocations: 2.938 kB / 0.5516 GB, free: 21.14 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.151e-05/0.2695, allocations: 4 kB / 0.5516 GB, free: 21.14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.2695, allocations: 0 / 0.5516 GB, free: 21.14 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.2695, allocations: 3.438 kB / 0.5516 GB, free: 21.14 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000277/0.2698, allocations: 194.9 kB / 0.5518 GB, free: 21.02 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.187e-05/0.2698, allocations: 14.88 kB / 0.5518 GB, free: 21.01 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.843e-05/0.2698, allocations: 10.56 kB / 0.5518 GB, free: 21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.146e-05/0.2699, allocations: 7.188 kB / 0.5518 GB, free: 21 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.112e-05/0.2699, allocations: 3.375 kB / 0.5518 GB, free: 21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.469e-05/0.27, allocations: 6.031 kB / 0.5518 GB, free: 21 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00013/0.2701, allocations: 211.6 kB / 0.552 GB, free: 20.89 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2701, allocations: 0 / 0.552 GB, free: 20.89 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002373/0.2703, allocations: 40.61 kB / 0.552 GB, free: 20.88 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inertia.w,load.phi) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001744/0.2721, allocations: 1.035 MB / 0.553 GB, free: 20.12 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002158/0.2723, allocations: 80.98 kB / 0.5531 GB, free: 20.1 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.2723, allocations: 0 / 0.5531 GB, free: 20.1 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 7.762e-05/0.2724, allocations: 37.2 kB / 0.5532 GB, free: 20.09 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002855/0.2726, allocations: 37.95 kB / 0.5532 GB, free: 20.08 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001767/0.2744, allocations: 2.133 MB / 0.5553 GB, free: 18.49 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001282/0.2745, allocations: 0.7345 MB / 0.556 GB, free: 17.8 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.448e-05/0.2746, allocations: 21.2 kB / 0.556 GB, free: 17.79 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.905e-05/0.2747, allocations: 66.17 kB / 0.5561 GB, free: 17.75 MB / 382.1 MB Notification: Performance of SimCode: time 5.11e-07/0.2747, allocations: 0 / 0.5561 GB, free: 17.75 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03892/0.3136, allocations: 4.671 MB / 0.5606 GB, free: 16.8 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/11.6, allocations: 9.547 kB / 0.5606 GB, free: 16.79 MB / 382.1 MB " [Timeout remaining time 648] (rm -f HanserModelica_HanserModelica.Rotational.Drive.pipe ; mkfifo HanserModelica_HanserModelica.Rotational.Drive.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Rotational.Drive.pipe >> ../files/HanserModelica_HanserModelica.Rotational.Drive.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.Rotational.Drive_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 HanserModelica_HanserModelica_Rotational_Drive.fmu > HanserModelica_HanserModelica.Rotational.Drive.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.630325958001777] Failed to read output from testmodel.py, exit status != 0: 11.761200163004105 11.783413188 11.513832039 Calling exit ...