Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.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.002064/0.002064, allocations: 107.6 kB / 16.45 MB, free: 6.453 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.002493/0.002493, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.762/1.762, allocations: 207.6 MB / 229.8 MB, free: 11.4 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.05202/0.05202, allocations: 8.205 MB / 289.9 MB, free: 14.84 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.PlantWithIntervalMeasure,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithIntervalMeasure",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithIntervalMeasure",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.002254/0.002254, allocations: 72.36 kB / 405.2 MB, free: 47.49 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0896/0.09185, allocations: 50.89 MB / 456.1 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure): time 0.004114/0.09596, allocations: 1.98 MB / 458.1 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001199/0.09716, allocations: 0.5782 MB / 458.7 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.614e-05/0.09726, allocations: 4 kB / 458.7 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 7.695e-05/0.09734, allocations: 23.73 kB / 458.7 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000166/0.0975, allocations: 55.55 kB / 458.8 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000204/0.09771, allocations: 47.94 kB / 458.8 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002528/0.09796, allocations: 215.1 kB / 459 MB, free: 12.03 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002363/0.0982, allocations: 74.38 kB / 459.1 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001917/0.09839, allocations: 91.7 kB / 459.2 MB, free: 11.87 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001638/0.09855, allocations: 91.61 kB / 459.3 MB, free: 11.78 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.605e-05/0.0986, allocations: 24 kB / 459.3 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.253e-05/0.09863, allocations: 20 kB / 459.3 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.586e-05/0.09869, allocations: 47.83 kB / 459.4 MB, free: 11.69 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000112/0.0988, allocations: 99.59 kB / 459.5 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002979/0.0991, allocations: 223.2 kB / 459.7 MB, free: 11.37 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.0991, allocations: 0 / 459.7 MB, free: 11.37 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.0991, allocations: 4 kB / 459.7 MB, free: 11.37 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.646e-06/0.09911, allocations: 0 / 459.7 MB, free: 11.37 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001053/0.1002, allocations: 491 kB / 460.2 MB, free: 10.84 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.77e-05/0.1002, allocations: 15.89 kB / 460.2 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.072e-05/0.1003, allocations: 54.73 kB / 460.2 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.906e-05/0.1003, allocations: 20.84 kB / 460.3 MB, free: 10.74 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002241/0.1006, allocations: 188.1 kB / 460.5 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.466e-05/0.1006, allocations: 16.81 kB / 460.5 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.767e-05/0.1006, allocations: 20.38 kB / 460.5 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003872/0.101, allocations: 195.4 kB / 460.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.863e-05/0.1011, allocations: 0 / 460.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.641e-05/0.1011, allocations: 15.94 kB / 460.7 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.069e-05/0.1011, allocations: 4 kB / 460.7 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002374/0.1013, allocations: 117.7 kB / 460.8 MB, free: 10.15 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001342/0.1027, allocations: 0.7253 MB / 461.5 MB, free: 9.363 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004634/0.1031, allocations: 247.6 kB / 461.8 MB, free: 9.094 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002448/0.1034, allocations: 100.8 kB / 461.9 MB, free: 8.992 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.359e-05/0.1034, allocations: 4 kB / 461.9 MB, free: 8.988 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003555/0.1037, allocations: 123.6 kB / 462 MB, free: 8.855 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.954e-06/0.1037, allocations: 3.938 kB / 462 MB, free: 8.852 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001294/0.105, allocations: 0.6391 MB / 462.6 MB, free: 8.16 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.066e-05/0.1051, allocations: 59.39 kB / 462.7 MB, free: 8.09 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001285/0.1052, allocations: 129.8 kB / 462.8 MB, free: 7.953 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.07e-05/0.1053, allocations: 33.64 kB / 462.9 MB, free: 7.914 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001088/0.1054, allocations: 144.3 kB / 463 MB, free: 7.77 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.854e-05/0.1055, allocations: 83.33 kB / 463.1 MB, free: 7.688 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.989e-05/0.1056, allocations: 57.45 kB / 463.1 MB, free: 7.625 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001983/0.1058, allocations: 326.8 kB / 463.5 MB, free: 7.297 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001157/0.1059, allocations: 63.97 kB / 463.5 MB, free: 7.234 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001845/0.1061, allocations: 127.9 kB / 463.6 MB, free: 7.078 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003513/0.1064, allocations: 205 kB / 463.8 MB, free: 6.852 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.1064, allocations: 4 kB / 463.9 MB, free: 6.848 MB / 334.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0004239/0.1068, allocations: 258.6 kB / 464.1 MB, free: 6.594 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.677e-05/0.1069, allocations: 8 kB / 464.1 MB, free: 6.586 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.886e-06/0.1069, allocations: 0 / 464.1 MB, free: 6.586 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.651e-05/0.1069, allocations: 4 kB / 464.1 MB, free: 6.582 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002468/0.1071, allocations: 63.91 kB / 464.2 MB, free: 6.52 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.667e-05/0.1072, allocations: 7.938 kB / 464.2 MB, free: 6.512 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001118/0.1073, allocations: 15.89 kB / 464.2 MB, free: 6.496 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.127e-05/0.1073, allocations: 12 kB / 464.2 MB, free: 6.484 MB / 334.1 MB Warning: Assuming fixed start value for the following 1 variables: intervalMeasure.w:DISCRETE(flow=false fixed = true ) \"Sensed speed\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 10 (intervalMeasure.last_time,$PRE.intervalMeasure.last_time,$PRE.intervalMeasure.w,intervalMeasure.w,intervalMeasure.prev_phi,$PRE.intervalMeasure.prev_phi,intervalMeasure.next_phi,$PRE.intervalMeasure.next_phi,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 38 * 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.0002647/0.1076, allocations: 145.9 kB / 464.4 MB, free: 6.332 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.952e-05/0.1076, allocations: 11.95 kB / 464.4 MB, free: 6.32 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.212e-05/0.1077, allocations: 24.83 kB / 464.4 MB, free: 6.297 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.1077, allocations: 4 kB / 464.4 MB, free: 6.293 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.1077, allocations: 0 / 464.4 MB, free: 6.293 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.185e-06/0.1077, allocations: 3.938 kB / 464.4 MB, free: 6.289 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001128/0.1088, allocations: 0.6327 MB / 465 MB, free: 5.594 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.1088, allocations: 0 / 465 MB, free: 5.594 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000223/0.109, allocations: 47.97 kB / 465.1 MB, free: 5.547 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-05/0.109, allocations: 7.875 kB / 465.1 MB, free: 5.539 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.104e-05/0.1091, allocations: 4 kB / 465.1 MB, free: 5.535 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.285e-06/0.1091, allocations: 3.938 kB / 465.1 MB, free: 5.531 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.1091, allocations: 0 / 465.1 MB, free: 5.531 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005765/0.1097, allocations: 389 kB / 465.5 MB, free: 5.129 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.886e-05/0.1097, allocations: 89 kB / 465.6 MB, free: 5.023 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.426e-05/0.1098, allocations: 11.94 kB / 465.6 MB, free: 5.012 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001071/0.1099, allocations: 4 kB / 465.6 MB, free: 5.008 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.143e-05/0.11, allocations: 20.02 kB / 465.6 MB, free: 4.988 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.383e-05/0.11, allocations: 7.938 kB / 465.6 MB, free: 4.98 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.574e-05/0.1101, allocations: 99.27 kB / 465.7 MB, free: 4.883 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1101, allocations: 4 kB / 465.7 MB, free: 4.879 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003454/0.1104, allocations: 48 kB / 465.8 MB, free: 4.832 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertia2.flange_a.phi,inertia2.w,inertia1.flange_a.phi,inertia1.w) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,intervalMeasure.w,intervalMeasure.next_phi,intervalMeasure.prev_phi,intervalMeasure.last_time) * Number of discrete states: 3 (intervalMeasure.prev_phi,intervalMeasure.next_phi,intervalMeasure.last_time) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0009251/0.1113, allocations: 0.9169 MB / 466.7 MB, free: 3.883 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003832/0.1117, allocations: 172.1 kB / 466.8 MB, free: 3.715 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1117, allocations: 0 / 466.8 MB, free: 3.715 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001595/0.1119, allocations: 83.84 kB / 466.9 MB, free: 3.633 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003079/0.1122, allocations: 16.55 kB / 466.9 MB, free: 3.617 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003423/0.1156, allocations: 2.323 MB / 469.3 MB, free: 1.156 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004344/0.1161, allocations: 0.7241 MB / 470 MB, free: 416 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.221e-05/0.1161, allocations: 21.55 kB / 470 MB, free: 392 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001211/0.1163, allocations: 55.42 kB / 470.1 MB, free: 336 kB / 334.1 MB Notification: Performance of SimCode: time 1.864e-06/0.1163, allocations: 0 / 470.1 MB, free: 336 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03068/0.1469, allocations: 3.41 MB / 473.5 MB, free: 13.05 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.242/8.389, allocations: 11.28 kB / 473.5 MB, free: 13.04 MB / 350.1 MB " [Timeout remaining time 652] (rm -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.pipe >> ../files/ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.sim & python3 -m fmpy simulate --output-file ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure_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_PlantWithIntervalMeasure.fmu > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.67282432600041] Failed to read output from testmodel.py, exit status != 0: 8.477945694001392 8.50328171 8.399566951 Calling exit ...