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.001679/0.001679, allocations: 99.66 kB / 18.95 MB, free: 2.84 MB / 14.72 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.001594/0.001594, allocations: 221 kB / 22.24 MB, free: 5.113 MB / 14.72 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 1.394/1.394, allocations: 207.7 MB / 233.1 MB, free: 9.785 MB / 190.1 MB " [Timeout remaining time 178] 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.0486/0.0486, allocations: 8.194 MB / 293.5 MB, free: 13.57 MB / 238.1 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: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaByExample requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002153/0.002153, allocations: 72.09 kB / 410.4 MB, free: 46.8 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08175/0.0839, allocations: 50.94 MB / 461.4 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.003243/0.08715, allocations: 1.873 MB / 463.2 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004856/0.08763, allocations: 231.9 kB / 463.5 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.143e-05/0.0877, allocations: 0 / 463.5 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 7.855e-05/0.08778, allocations: 35.72 kB / 463.5 MB, free: 11.17 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001047/0.08789, allocations: 43.61 kB / 463.6 MB, free: 11.13 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002289/0.08812, allocations: 47.89 kB / 463.6 MB, free: 11.08 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002123/0.08833, allocations: 187.2 kB / 463.8 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001926/0.08852, allocations: 74.52 kB / 463.9 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.776e-05/0.08861, allocations: 71.78 kB / 463.9 MB, free: 10.76 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001152/0.08872, allocations: 67.62 kB / 464 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.327e-05/0.08876, allocations: 20 kB / 464 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.589e-05/0.08879, allocations: 20 kB / 464 MB, free: 10.65 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.039e-05/0.08883, allocations: 39.91 kB / 464.1 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001003/0.08893, allocations: 83.66 kB / 464.2 MB, free: 10.53 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002347/0.08917, allocations: 199.2 kB / 464.3 MB, free: 10.34 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.08917, allocations: 0 / 464.3 MB, free: 10.34 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.08917, allocations: 4 kB / 464.3 MB, free: 10.33 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.387e-06/0.08918, allocations: 0 / 464.3 MB, free: 10.33 MB / 334.1 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.0006458/0.08983, allocations: 386 kB / 464.7 MB, free: 9.918 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.667e-05/0.08988, allocations: 15.92 kB / 464.7 MB, free: 9.902 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.086e-05/0.08994, allocations: 58.73 kB / 464.8 MB, free: 9.836 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.605e-05/0.08998, allocations: 24.73 kB / 464.8 MB, free: 9.812 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001134/0.0901, allocations: 126.3 kB / 464.9 MB, free: 9.664 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.128e-05/0.09012, allocations: 12.75 kB / 465 MB, free: 9.652 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.18e-05/0.09017, allocations: 28.33 kB / 465 MB, free: 9.625 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002881/0.09046, allocations: 161.2 kB / 465.1 MB, free: 9.465 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.701e-05/0.09048, allocations: 3.938 kB / 465.1 MB, free: 9.461 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.888e-05/0.09049, allocations: 8 kB / 465.2 MB, free: 9.453 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.114e-05/0.09051, allocations: 4 kB / 465.2 MB, free: 9.449 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001956/0.0907, allocations: 111.6 kB / 465.3 MB, free: 9.34 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001139/0.09184, allocations: 0.6027 MB / 465.9 MB, free: 8.68 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003225/0.09216, allocations: 134.5 kB / 466 MB, free: 8.539 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002029/0.09236, allocations: 84.8 kB / 466.1 MB, free: 8.453 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.622e-05/0.09238, allocations: 4 kB / 466.1 MB, free: 8.449 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001975/0.09258, allocations: 90.75 kB / 466.2 MB, free: 8.352 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.563e-06/0.09258, allocations: 0 / 466.2 MB, free: 8.352 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.0008941/0.09347, allocations: 448.9 kB / 466.6 MB, free: 7.879 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.146e-05/0.09353, allocations: 55.41 kB / 466.7 MB, free: 7.812 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001077/0.09363, allocations: 130 kB / 466.8 MB, free: 7.672 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.142e-05/0.09365, allocations: 33.64 kB / 466.8 MB, free: 7.633 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.636e-05/0.09375, allocations: 136.4 kB / 467 MB, free: 7.492 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.634e-05/0.09381, allocations: 63.44 kB / 467 MB, free: 7.43 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.953e-05/0.09388, allocations: 49.66 kB / 467.1 MB, free: 7.375 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.09403, allocations: 322.8 kB / 467.4 MB, free: 7.051 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.56e-05/0.09412, allocations: 51.97 kB / 467.4 MB, free: 7 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001352/0.09426, allocations: 99.59 kB / 467.5 MB, free: 6.879 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002303/0.09449, allocations: 170.7 kB / 467.7 MB, free: 6.688 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.09449, allocations: 7.922 kB / 467.7 MB, free: 6.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003009/0.09479, allocations: 197.6 kB / 467.9 MB, free: 6.48 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.09481, allocations: 10.34 kB / 467.9 MB, free: 6.473 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.09481, allocations: 3.984 kB / 467.9 MB, free: 6.469 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.665e-05/0.09483, allocations: 7.938 kB / 467.9 MB, free: 6.461 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001908/0.09502, allocations: 47.92 kB / 468 MB, free: 6.414 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.036e-05/0.09503, allocations: 7.938 kB / 468 MB, free: 6.406 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.446e-05/0.0951, allocations: 4 kB / 468 MB, free: 6.402 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.646e-05/0.09511, allocations: 12 kB / 468 MB, free: 6.391 MB / 334.1 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 0.0001207/0.09523, allocations: 133.8 kB / 468.1 MB, free: 6.25 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.341e-05/0.09526, allocations: 19.84 kB / 468.1 MB, free: 6.23 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.656e-05/0.0953, allocations: 16.81 kB / 468.2 MB, free: 6.211 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/0.09531, allocations: 4 kB / 468.2 MB, free: 6.207 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.09531, allocations: 0 / 468.2 MB, free: 6.207 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.09532, allocations: 4 kB / 468.2 MB, free: 6.203 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006651/0.09598, allocations: 469.7 kB / 468.6 MB, free: 5.695 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.09598, allocations: 0 / 468.6 MB, free: 5.695 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001785/0.09616, allocations: 31.98 kB / 468.7 MB, free: 5.664 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/0.09616, allocations: 4 kB / 468.7 MB, free: 5.66 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.407e-05/0.09618, allocations: 4 kB / 468.7 MB, free: 5.656 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.09618, allocations: 4 kB / 468.7 MB, free: 5.652 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.09618, allocations: 4 kB / 468.7 MB, free: 5.648 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003841/0.09657, allocations: 307.8 kB / 469 MB, free: 5.332 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.332e-05/0.09658, allocations: 3.953 kB / 469 MB, free: 5.328 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.089e-05/0.0966, allocations: 7.938 kB / 469 MB, free: 5.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.437e-05/0.09668, allocations: 4 kB / 469 MB, free: 5.316 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.999e-05/0.09672, allocations: 15.95 kB / 469 MB, free: 5.301 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.808e-06/0.09673, allocations: 4 kB / 469 MB, free: 5.297 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.217e-05/0.0968, allocations: 103.1 kB / 469.1 MB, free: 5.199 MB / 334.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.0968, allocations: 0 / 469.1 MB, free: 5.199 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002667/0.09706, allocations: 36 kB / 469.1 MB, free: 5.164 MB / 334.1 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.0007044/0.09777, allocations: 0.8466 MB / 470 MB, free: 4.293 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002355/0.098, allocations: 127.7 kB / 470.1 MB, free: 4.168 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.09801, allocations: 0 / 470.1 MB, free: 4.168 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.059e-05/0.0981, allocations: 56.7 kB / 470.2 MB, free: 4.113 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002244/0.09832, allocations: 8 kB / 470.2 MB, free: 4.105 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002527/0.1008, allocations: 2.119 MB / 472.3 MB, free: 1.863 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001192/0.101, allocations: 111.9 kB / 472.4 MB, free: 1.734 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.01e-05/0.101, allocations: 17.41 kB / 472.4 MB, free: 1.719 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.156e-05/0.1011, allocations: 51.42 kB / 472.5 MB, free: 1.668 MB / 334.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1011, allocations: 0 / 472.5 MB, free: 1.668 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03561/0.1367, allocations: 3.264 MB / 475.7 MB, free: 14.45 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.92/11.05, allocations: 3.953 kB / 475.7 MB, free: 14.45 MB / 350.1 MB " [Timeout remaining time 649] (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: 13.77283558389172] Failed to read output from testmodel.py, exit status != 0: 11.159814259037375 11.185986279 11.092328819 Calling exit ...