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.001215/0.001215, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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 0.94/0.94, allocations: 177.2 MB / 199.4 MB, free: 5.938 MB / 186.7 MB " [Timeout remaining time 179] 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.001529/0.001529, allocations: 156.6 kB / 256 MB, free: 13.35 MB / 250.7 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.02233/0.02233, allocations: 6.663 MB / 319 MB, free: 26.76 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.262e-06/1.262e-06, allocations: 0 / 445.4 MB, free: 37.66 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.116e-05/2.242e-05, allocations: 6.219 kB / 445.4 MB, free: 37.65 MB / 330.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.Drive): time 0.001977/0.001999, allocations: 2.002 MB / 447.4 MB, free: 35.63 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009677/0.002967, allocations: 1.072 MB / 448.5 MB, free: 34.55 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.365e-05/0.003051, allocations: 7.938 kB / 448.5 MB, free: 34.55 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003284/0.003379, allocations: 127.4 kB / 448.6 MB, free: 34.42 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002502/0.003629, allocations: 151.2 kB / 448.7 MB, free: 34.27 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001431/0.003772, allocations: 103.6 kB / 448.8 MB, free: 34.17 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001672/0.00394, allocations: 235.1 kB / 449.1 MB, free: 33.94 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.688e-05/0.004036, allocations: 29.78 kB / 449.1 MB, free: 33.91 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.822e-05/0.004125, allocations: 131.6 kB / 449.2 MB, free: 33.79 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001007/0.004225, allocations: 103.7 kB / 449.3 MB, free: 33.68 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 1.646e-05/0.004242, allocations: 12 kB / 449.3 MB, free: 33.67 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.734e-05/0.004309, allocations: 55.92 kB / 449.4 MB, free: 33.62 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 4.545e-05/0.004355, allocations: 47.83 kB / 449.4 MB, free: 33.57 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 4.098e-05/0.004396, allocations: 55.78 kB / 449.5 MB, free: 33.52 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000186/0.004582, allocations: 231.2 kB / 449.7 MB, free: 33.29 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.204e-06/0.004584, allocations: 0 / 449.7 MB, free: 33.29 MB / 330.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.004585, allocations: 0 / 449.7 MB, free: 33.29 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.688e-06/0.00459, allocations: 3.938 kB / 449.7 MB, free: 33.29 MB / 330.7 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.0004114/0.005001, allocations: 462.9 kB / 450.2 MB, free: 32.8 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.044e-05/0.005031, allocations: 8.031 kB / 450.2 MB, free: 32.8 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.46e-05/0.005056, allocations: 42.73 kB / 450.2 MB, free: 32.75 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.325e-05/0.005089, allocations: 24.8 kB / 450.2 MB, free: 32.72 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001859/0.005275, allocations: 190.2 kB / 450.4 MB, free: 32.51 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.239e-05/0.005288, allocations: 12.61 kB / 450.4 MB, free: 32.5 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.064e-05/0.005308, allocations: 12.38 kB / 450.5 MB, free: 32.48 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001561/0.005464, allocations: 143.9 kB / 450.6 MB, free: 32.34 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/0.005476, allocations: 11.95 kB / 450.6 MB, free: 32.32 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.062e-05/0.005487, allocations: 4 kB / 450.6 MB, free: 32.32 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.005491, allocations: 4 kB / 450.6 MB, free: 32.32 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.04e-05/0.005581, allocations: 72.59 kB / 450.7 MB, free: 32.25 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004105/0.005992, allocations: 0.5379 MB / 451.2 MB, free: 31.66 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000135/0.006127, allocations: 98.61 kB / 451.3 MB, free: 31.55 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.172e-05/0.006169, allocations: 36.77 kB / 451.4 MB, free: 31.51 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.167e-05/0.00618, allocations: 4 kB / 451.4 MB, free: 31.51 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000102/0.006282, allocations: 83.38 kB / 451.4 MB, free: 31.41 MB / 330.7 MB Notification: Performance of pre-optimization done (n=10): time 1.142e-06/0.006283, allocations: 0 / 451.4 MB, free: 31.41 MB / 330.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002097/0.006493, allocations: 161.4 kB / 451.6 MB, free: 31.25 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.913e-05/0.006512, allocations: 51.41 kB / 451.7 MB, free: 31.19 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000132/0.006644, allocations: 289.7 kB / 451.9 MB, free: 30.89 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.953e-06/0.006651, allocations: 25.7 kB / 452 MB, free: 30.86 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.363e-05/0.006695, allocations: 148.2 kB / 452.1 MB, free: 30.71 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.687e-05/0.006712, allocations: 31.75 kB / 452.1 MB, free: 30.68 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.083e-05/0.006743, allocations: 41.64 kB / 452.2 MB, free: 30.63 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 2.935e-05/0.006772, allocations: 331.2 kB / 452.5 MB, free: 30.3 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.97e-05/0.006812, allocations: 27.98 kB / 452.5 MB, free: 30.27 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.339e-05/0.006855, allocations: 68.27 kB / 452.6 MB, free: 30.19 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.747e-05/0.006942, allocations: 104.2 kB / 452.7 MB, free: 30.07 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.006944, allocations: 3.938 kB / 452.7 MB, free: 30.07 MB / 330.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001272/0.007071, allocations: 161.4 kB / 452.9 MB, free: 29.9 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.02e-05/0.007082, allocations: 4 kB / 452.9 MB, free: 29.9 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-06/0.007087, allocations: 4 kB / 452.9 MB, free: 29.89 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.098e-05/0.007098, allocations: 0 / 452.9 MB, free: 29.89 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.518e-05/0.007183, allocations: 31.98 kB / 452.9 MB, free: 29.86 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.031e-06/0.007189, allocations: 7.922 kB / 452.9 MB, free: 29.86 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.835e-05/0.007227, allocations: 12 kB / 452.9 MB, free: 29.84 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.364e-06/0.007235, allocations: 4 kB / 452.9 MB, free: 29.84 MB / 330.7 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 6.315e-05/0.007298, allocations: 141.8 kB / 453.1 MB, free: 29.69 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.385e-05/0.007312, allocations: 23.8 kB / 453.1 MB, free: 29.67 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000158/0.00747, allocations: 155.3 kB / 453.2 MB, free: 29.52 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/0.007471, allocations: 0 / 453.2 MB, free: 29.52 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.007475, allocations: 0 / 453.2 MB, free: 29.52 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.007479, allocations: 0 / 453.2 MB, free: 29.52 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.86e-05/0.007577, allocations: 212.6 kB / 453.4 MB, free: 29.27 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.02e-07/0.007578, allocations: 0 / 453.4 MB, free: 29.27 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.886e-05/0.007637, allocations: 19.98 kB / 453.5 MB, free: 29.25 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.007638, allocations: 0 / 453.5 MB, free: 29.25 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.337e-06/0.007648, allocations: 4 kB / 453.5 MB, free: 29.24 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.92e-07/0.007648, allocations: 0 / 453.5 MB, free: 29.24 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.007649, allocations: 8 kB / 453.5 MB, free: 29.23 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001815/0.00783, allocations: 205 kB / 453.7 MB, free: 29.02 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.409e-05/0.007844, allocations: 15.89 kB / 453.7 MB, free: 29 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.626e-05/0.007861, allocations: 4 kB / 453.7 MB, free: 29 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.659e-05/0.007887, allocations: 7.984 kB / 453.7 MB, free: 28.99 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.637e-05/0.007914, allocations: 7.984 kB / 453.7 MB, free: 28.98 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.06e-05/0.007924, allocations: 4 kB / 453.7 MB, free: 28.98 MB / 330.7 MB Notification: Performance of sorting global known variables: time 9.273e-05/0.008017, allocations: 213.2 kB / 453.9 MB, free: 28.77 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008017, allocations: 0 / 453.9 MB, free: 28.77 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001554/0.008172, allocations: 39.94 kB / 454 MB, free: 28.73 MB / 330.7 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 (11): * Single equations (assignments): 9 * 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.0008089/0.008981, allocations: 1.085 MB / 455 MB, free: 27.81 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001313/0.009113, allocations: 87.78 kB / 455.1 MB, free: 27.72 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.142e-06/0.009114, allocations: 0 / 455.1 MB, free: 27.72 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.432e-05/0.009158, allocations: 35.98 kB / 455.2 MB, free: 27.69 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001794/0.009337, allocations: 36.47 kB / 455.2 MB, free: 27.65 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001148/0.01049, allocations: 2.102 MB / 457.3 MB, free: 25.44 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.176e-05/0.01054, allocations: 128.1 kB / 457.4 MB, free: 25.3 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 4.392e-05/0.01058, allocations: 21.48 kB / 457.4 MB, free: 25.28 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.539e-05/0.01064, allocations: 68.47 kB / 457.5 MB, free: 25.21 MB / 330.7 MB Notification: Performance of SimCode: time 4.11e-07/0.01064, allocations: 0 / 457.5 MB, free: 25.21 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01724/0.02788, allocations: 5.311 MB / 462.8 MB, free: 19.96 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.16/7.188, allocations: 8 kB / 462.8 MB, free: 19.95 MB / 330.7 MB " [Timeout remaining time 653] (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: 9.36173096857965] Failed to read output from testmodel.py, exit status != 0: 7.286710095591843 7.293137913 7.287239765 Calling exit ...