Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.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.001169/0.001169, 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.001066/0.001066, 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.8421/0.8421, 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.02448/0.02448, allocations: 6.408 MB / 242.9 MB, free: 9.062 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.PlantWithSampleHold,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithSampleHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithSampleHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.412e-06/1.412e-06, allocations: 0 / 359.8 MB, free: 4.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.354e-05/1.495e-05, allocations: 5.938 kB / 359.8 MB, free: 4.426 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.001836/0.001851, allocations: 1.884 MB / 361.7 MB, free: 2.523 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003737/0.002225, allocations: 235.2 kB / 361.9 MB, free: 2.293 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.988e-05/0.002305, allocations: 4 kB / 361.9 MB, free: 2.289 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 6.657e-05/0.002371, allocations: 27.73 kB / 362 MB, free: 2.262 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 8.724e-05/0.002459, allocations: 43.56 kB / 362 MB, free: 2.219 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002416/0.0027, allocations: 47.88 kB / 362.1 MB, free: 2.172 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001294/0.00283, allocations: 203 kB / 362.3 MB, free: 1.973 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001667/0.002996, allocations: 74.3 kB / 362.3 MB, free: 1.902 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.654e-05/0.003083, allocations: 115.8 kB / 362.4 MB, free: 1.789 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.405e-05/0.003167, allocations: 55.81 kB / 362.5 MB, free: 1.734 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.63e-05/0.003203, allocations: 24 kB / 362.5 MB, free: 1.711 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.816e-05/0.003221, allocations: 16 kB / 362.5 MB, free: 1.695 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.404e-05/0.003255, allocations: 39.89 kB / 362.6 MB, free: 1.656 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.351e-05/0.003309, allocations: 63.84 kB / 362.6 MB, free: 1.594 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001708/0.00348, allocations: 207.3 kB / 362.8 MB, free: 1.391 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.003482, allocations: 0 / 362.8 MB, free: 1.391 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.003484, allocations: 0 / 362.8 MB, free: 1.391 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.052e-06/0.00349, allocations: 0 / 362.8 MB, free: 1.391 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0004465/0.003936, allocations: 390.9 kB / 363.2 MB, free: 0.9727 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/0.00398, allocations: 11.98 kB / 363.2 MB, free: 0.9609 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.771e-05/0.004017, allocations: 54.73 kB / 363.3 MB, free: 0.8984 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.735e-05/0.004055, allocations: 20.8 kB / 363.3 MB, free: 0.8789 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.518e-05/0.00412, allocations: 121.6 kB / 363.4 MB, free: 0.7344 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.802e-05/0.004138, allocations: 16.75 kB / 363.4 MB, free: 0.7188 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.178e-05/0.00417, allocations: 24.36 kB / 363.5 MB, free: 0.6953 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001899/0.00436, allocations: 161.1 kB / 363.6 MB, free: 0.5352 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.356e-05/0.004373, allocations: 16.08 kB / 363.6 MB, free: 0.5195 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.305e-05/0.004386, allocations: 4.375 kB / 363.6 MB, free: 0.5156 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.004393, allocations: 8.125 kB / 363.6 MB, free: 0.5078 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001131/0.004506, allocations: 111.6 kB / 363.8 MB, free: 408 kB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007492/0.005255, allocations: 0.6031 MB / 364.4 MB, free: 15.74 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002594/0.005514, allocations: 134.5 kB / 364.5 MB, free: 15.6 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001474/0.005662, allocations: 84.81 kB / 364.6 MB, free: 15.52 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.287e-05/0.005675, allocations: 0 / 364.6 MB, free: 15.52 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001659/0.005841, allocations: 99.53 kB / 364.7 MB, free: 15.41 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 1.553e-06/0.005842, allocations: 4 kB / 364.7 MB, free: 15.4 MB / 298.7 MB Notification: Performance of matching and sorting (n=18): time 0.0007697/0.006612, allocations: 440.4 kB / 365.1 MB, free: 14.94 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.82e-05/0.00665, allocations: 55.34 kB / 365.2 MB, free: 14.88 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.543e-05/0.006726, allocations: 132.4 kB / 365.3 MB, free: 14.73 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.488e-05/0.00674, allocations: 29.7 kB / 365.3 MB, free: 14.7 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.737e-05/0.006798, allocations: 136.4 kB / 365.4 MB, free: 14.56 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.475e-05/0.006833, allocations: 63.44 kB / 365.5 MB, free: 14.5 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.906e-05/0.006882, allocations: 49.7 kB / 365.6 MB, free: 14.45 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.08e-05/0.006962, allocations: 322.8 kB / 365.9 MB, free: 14.12 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.73e-05/0.00704, allocations: 43.98 kB / 365.9 MB, free: 14.08 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001177/0.007157, allocations: 114.8 kB / 366 MB, free: 13.94 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000158/0.007315, allocations: 162.7 kB / 366.2 MB, free: 13.76 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.007318, allocations: 4 kB / 366.2 MB, free: 13.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0001971/0.007515, allocations: 209.3 kB / 366.4 MB, free: 13.54 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.007531, allocations: 8 kB / 366.4 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.007537, allocations: 3.938 kB / 366.4 MB, free: 13.53 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.007549, allocations: 4 kB / 366.4 MB, free: 13.53 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001157/0.007665, allocations: 51.91 kB / 366.5 MB, free: 13.48 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.007671, allocations: 4 kB / 366.5 MB, free: 13.47 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.68e-05/0.007708, allocations: 8 kB / 366.5 MB, free: 13.46 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.468e-06/0.007718, allocations: 8 kB / 366.5 MB, free: 13.46 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,sampleHold.w,$PRE.sampleHold.w) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * 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.032e-05/0.007798, allocations: 146 kB / 366.6 MB, free: 13.3 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.117e-05/0.007809, allocations: 11.89 kB / 366.6 MB, free: 13.29 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.511e-05/0.007844, allocations: 20.7 kB / 366.7 MB, free: 13.27 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.007846, allocations: 4 kB / 366.7 MB, free: 13.27 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.007851, allocations: 0 / 366.7 MB, free: 13.27 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.007855, allocations: 0 / 366.7 MB, free: 13.27 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000446/0.008301, allocations: 480.5 kB / 367.1 MB, free: 12.75 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.008302, allocations: 0 / 367.1 MB, free: 12.75 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000109/0.008411, allocations: 43.91 kB / 367.2 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.008413, allocations: 4 kB / 367.2 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.088e-05/0.008424, allocations: 4 kB / 367.2 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.008425, allocations: 4 kB / 367.2 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.008426, allocations: 0 / 367.2 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002589/0.008685, allocations: 299.8 kB / 367.5 MB, free: 12.39 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.08e-05/0.008696, allocations: 7.953 kB / 367.5 MB, free: 12.38 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.81e-05/0.008714, allocations: 7.938 kB / 367.5 MB, free: 12.37 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.77e-05/0.008752, allocations: 0 / 367.5 MB, free: 12.37 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.077e-05/0.008783, allocations: 16.03 kB / 367.5 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.035e-06/0.008791, allocations: 3.984 kB / 367.5 MB, free: 12.35 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.968e-05/0.00883, allocations: 91.28 kB / 367.6 MB, free: 12.26 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.00883, allocations: 4 kB / 367.6 MB, free: 12.26 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001938/0.009024, allocations: 43.98 kB / 367.6 MB, free: 12.21 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.w,sampleHold.flange.phi) * Number of discrete variables: 2 ($whenCondition1,sampleHold.w) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0004772/0.009501, allocations: 0.8359 MB / 368.5 MB, free: 11.35 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001871/0.009688, allocations: 123.8 kB / 368.6 MB, free: 11.23 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.00969, allocations: 0 / 368.6 MB, free: 11.23 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.677e-05/0.009747, allocations: 55.91 kB / 368.7 MB, free: 11.18 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001704/0.009917, allocations: 16.12 kB / 368.7 MB, free: 11.16 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001632/0.01155, allocations: 2.003 MB / 370.7 MB, free: 9.035 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.133e-05/0.01164, allocations: 112.1 kB / 370.8 MB, free: 8.906 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.958e-05/0.01168, allocations: 13.48 kB / 370.8 MB, free: 8.895 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.938e-05/0.01176, allocations: 52.48 kB / 370.9 MB, free: 8.84 MB / 298.7 MB Notification: Performance of SimCode: time 1.082e-06/0.01176, allocations: 0 / 370.9 MB, free: 8.84 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01596/0.02772, allocations: 3.409 MB / 374.3 MB, free: 5.527 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.042/7.069, allocations: 7.844 kB / 374.3 MB, free: 5.52 MB / 298.7 MB " [Timeout remaining time 653] (rm -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe >> ../files/ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.sim & python3 -m fmpy simulate --output-file ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold_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_PlantWithSampleHold.fmu > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 8.876835532486439] Failed to read output from testmodel.py, exit status != 0: 7.1516051003709435 7.162461185 7.156323947 Calling exit ...