Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.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.001096/0.001096, 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/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.0008607/0.0008607, allocations: 170.3 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8884/0.8884, allocations: 158.6 MB / 184.2 MB, free: 3.047 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.02986/0.02986, allocations: 6.404 MB / 242.9 MB, free: 8.977 MB / 234.7 MB " [Timeout remaining time 180] Using package ModelicaByExample with version 0.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/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 ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_Plant",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_Plant",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 0 / 359.8 MB, free: 4.379 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.023e-05/2.187e-05, allocations: 2.281 kB / 359.8 MB, free: 4.375 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant): time 0.001939/0.001961, allocations: 1.825 MB / 361.6 MB, free: 2.531 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002449/0.002206, allocations: 147.5 kB / 361.8 MB, free: 2.387 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.321e-05/0.002259, allocations: 4 kB / 361.8 MB, free: 2.383 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.766e-05/0.002307, allocations: 23.72 kB / 361.8 MB, free: 2.359 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 6.491e-05/0.002372, allocations: 47.58 kB / 361.9 MB, free: 2.312 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001326/0.002504, allocations: 39.94 kB / 361.9 MB, free: 2.273 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001051/0.002609, allocations: 179.2 kB / 362.1 MB, free: 2.098 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00014/0.002749, allocations: 61.98 kB / 362.1 MB, free: 2.035 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.131e-05/0.002831, allocations: 111.8 kB / 362.2 MB, free: 1.926 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.868e-05/0.002909, allocations: 43.88 kB / 362.3 MB, free: 1.883 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.503e-05/0.002944, allocations: 20 kB / 362.3 MB, free: 1.863 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.675e-05/0.002961, allocations: 16 kB / 362.3 MB, free: 1.848 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.597e-05/0.002987, allocations: 39.84 kB / 362.4 MB, free: 1.809 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.978e-05/0.003027, allocations: 63.89 kB / 362.4 MB, free: 1.746 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001384/0.003165, allocations: 183.5 kB / 362.6 MB, free: 1.566 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.134e-06/0.003167, allocations: 0 / 362.6 MB, free: 1.566 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.003169, allocations: 0 / 362.6 MB, free: 1.566 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.551e-06/0.003174, allocations: 3.938 kB / 362.6 MB, free: 1.562 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.0004041/0.003578, allocations: 377.7 kB / 363 MB, free: 1.16 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.003619, allocations: 15.98 kB / 363 MB, free: 1.145 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.582e-05/0.003655, allocations: 50.73 kB / 363 MB, free: 1.086 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.925e-05/0.003684, allocations: 16.84 kB / 363.1 MB, free: 1.07 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.424e-05/0.003758, allocations: 141.5 kB / 363.2 MB, free: 0.9062 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.353e-05/0.003772, allocations: 8.375 kB / 363.2 MB, free: 0.8984 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.97e-05/0.003801, allocations: 20.38 kB / 363.2 MB, free: 0.8789 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001829/0.003984, allocations: 150.2 kB / 363.4 MB, free: 0.7266 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.299e-05/0.003997, allocations: 4.172 kB / 363.4 MB, free: 0.7227 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.434e-05/0.004012, allocations: 8.375 kB / 363.4 MB, free: 0.7148 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.176e-06/0.00402, allocations: 8.125 kB / 363.4 MB, free: 0.707 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001126/0.004132, allocations: 103.9 kB / 363.5 MB, free: 0.6055 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006294/0.004762, allocations: 0.5836 MB / 364.1 MB, free: 15.97 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002707/0.005032, allocations: 133.5 kB / 364.2 MB, free: 15.83 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001269/0.005159, allocations: 88.62 kB / 364.3 MB, free: 15.74 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.099e-05/0.00517, allocations: 4 kB / 364.3 MB, free: 15.74 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.754e-05/0.005188, allocations: 34.56 kB / 364.3 MB, free: 15.7 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.492e-06/0.005189, allocations: 0 / 364.3 MB, free: 15.7 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.0005662/0.005756, allocations: 405 kB / 364.7 MB, free: 15.27 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.013e-05/0.005786, allocations: 55.41 kB / 364.8 MB, free: 15.2 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.261e-05/0.005858, allocations: 117.8 kB / 364.9 MB, free: 15.07 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.542e-05/0.005874, allocations: 33.7 kB / 364.9 MB, free: 15.04 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.74e-05/0.005941, allocations: 132.2 kB / 365.1 MB, free: 14.9 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.402e-05/0.005975, allocations: 63.47 kB / 365.1 MB, free: 14.84 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.662e-05/0.006022, allocations: 41.7 kB / 365.2 MB, free: 14.79 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.224e-05/0.006114, allocations: 318.8 kB / 365.5 MB, free: 14.47 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.647e-05/0.006171, allocations: 47.97 kB / 365.5 MB, free: 14.42 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.612e-05/0.006257, allocations: 91.28 kB / 365.6 MB, free: 14.32 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001392/0.006396, allocations: 148.6 kB / 365.7 MB, free: 14.16 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.006398, allocations: 4 kB / 365.8 MB, free: 14.15 MB / 298.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0001711/0.006569, allocations: 177.4 kB / 365.9 MB, free: 13.97 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.208e-05/0.006581, allocations: 8 kB / 365.9 MB, free: 13.96 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.006587, allocations: 0 / 365.9 MB, free: 13.96 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.221e-05/0.006599, allocations: 4 kB / 365.9 MB, free: 13.96 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001042/0.006703, allocations: 43.92 kB / 366 MB, free: 13.92 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.17e-06/0.006709, allocations: 160 / 366 MB, free: 13.92 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.26e-05/0.006741, allocations: 12 kB / 366 MB, free: 13.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.032e-05/0.006751, allocations: 8 kB / 366 MB, free: 13.9 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (25): * Single equations (assignments): 25 * 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 7.87e-05/0.00683, allocations: 137.7 kB / 366.1 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.74e-05/0.006848, allocations: 7.953 kB / 366.1 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.373e-05/0.006881, allocations: 16.78 kB / 366.2 MB, free: 13.73 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.006885, allocations: 4 kB / 366.2 MB, free: 13.73 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.00689, allocations: 0 / 366.2 MB, free: 13.73 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.006894, allocations: 0 / 366.2 MB, free: 13.73 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004047/0.007299, allocations: 451.2 kB / 366.6 MB, free: 13.24 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.0073, allocations: 3.984 kB / 366.6 MB, free: 13.24 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.983e-05/0.0074, allocations: 39.98 kB / 366.6 MB, free: 13.2 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.007402, allocations: 0 / 366.6 MB, free: 13.2 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.176e-06/0.00741, allocations: 7.938 kB / 366.7 MB, free: 13.19 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.007411, allocations: 0 / 366.7 MB, free: 13.19 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.007412, allocations: 80 / 366.7 MB, free: 13.19 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002168/0.007629, allocations: 281.2 kB / 366.9 MB, free: 12.9 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.268e-05/0.007642, allocations: 11.91 kB / 366.9 MB, free: 12.89 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.827e-05/0.00766, allocations: 11.97 kB / 367 MB, free: 12.88 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.688e-05/0.007697, allocations: 4 kB / 367 MB, free: 12.88 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.765e-05/0.007715, allocations: 11.98 kB / 367 MB, free: 12.86 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.699e-06/0.007719, allocations: 7.938 kB / 367 MB, free: 12.86 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.351e-05/0.007753, allocations: 95.27 kB / 367.1 MB, free: 12.76 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.007753, allocations: 0 / 367.1 MB, free: 12.76 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001769/0.00793, allocations: 35.94 kB / 367.1 MB, free: 12.73 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (inertia2.flange_a.phi,inertia2.w,inertia1.flange_a.phi,inertia1.w) * 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 (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 Backend phase and start with SimCode phase: time 0.0003579/0.008288, allocations: 0.7983 MB / 367.9 MB, free: 11.9 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001462/0.008434, allocations: 119.1 kB / 368 MB, free: 11.79 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.373e-06/0.008435, allocations: 320 / 368 MB, free: 11.79 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.331e-05/0.008478, allocations: 59.36 kB / 368.1 MB, free: 11.73 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001584/0.008637, allocations: 4 kB / 368.1 MB, free: 11.73 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001323/0.00996, allocations: 1.904 MB / 370 MB, free: 9.707 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.725e-05/0.01003, allocations: 107.4 kB / 370.1 MB, free: 9.582 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.99e-05/0.01006, allocations: 13.14 kB / 370.1 MB, free: 9.57 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.191e-05/0.01012, allocations: 44.48 kB / 370.1 MB, free: 9.527 MB / 298.7 MB Notification: Performance of SimCode: time 6.11e-07/0.01012, allocations: 0 / 370.1 MB, free: 9.527 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0149/0.02502, allocations: 3.192 MB / 373.3 MB, free: 6.391 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.844/6.869, allocations: 15.81 kB / 373.4 MB, free: 6.375 MB / 298.7 MB " [Timeout remaining time 653] (rm -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe >> ../files/ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.sim & python3 -m fmpy simulate --output-file ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_Plant.fmu > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 8.7452292740345] Failed to read output from testmodel.py, exit status != 0: 6.9497527200728655 6.962448778 6.957566048 Calling exit ...