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.001262/0.001262, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.001413/0.001413, allocations: 224.5 kB / 23.03 MB, free: 4.945 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.37/1.37, allocations: 207.7 MB / 233.9 MB, free: 9.781 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.04852/0.04852, allocations: 8.199 MB / 294.3 MB, free: 13.47 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithIntervalMeasure",fmuType="cs",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.0021/0.0021, allocations: 76.73 kB / 411.2 MB, free: 46.85 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07449/0.07659, allocations: 50.93 MB / 462.1 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure): time 0.003236/0.07982, allocations: 1.874 MB / 464 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009752/0.0808, allocations: 0.5587 MB / 464.6 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.918e-05/0.08087, allocations: 4 kB / 464.6 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.58e-05/0.08095, allocations: 23.73 kB / 464.6 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001405/0.08109, allocations: 47.5 kB / 464.7 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001989/0.08129, allocations: 55.92 kB / 464.7 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000254/0.08155, allocations: 215.1 kB / 464.9 MB, free: 10.52 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002195/0.08176, allocations: 82.58 kB / 465 MB, free: 10.44 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001834/0.08195, allocations: 87.78 kB / 465.1 MB, free: 10.35 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001409/0.08209, allocations: 91.61 kB / 465.2 MB, free: 10.26 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.582e-05/0.08216, allocations: 20 kB / 465.2 MB, free: 10.24 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.847e-05/0.08219, allocations: 24 kB / 465.2 MB, free: 10.22 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.101e-05/0.08224, allocations: 43.84 kB / 465.3 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001073/0.08235, allocations: 87.64 kB / 465.3 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002739/0.08263, allocations: 215.2 kB / 465.6 MB, free: 9.879 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.08263, allocations: 7.938 kB / 465.6 MB, free: 9.871 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.08263, allocations: 0 / 465.6 MB, free: 9.871 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.021e-06/0.08264, allocations: 0 / 465.6 MB, free: 9.871 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.0007662/0.08341, allocations: 421.9 kB / 466 MB, free: 9.43 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/0.08345, allocations: 11.98 kB / 466 MB, free: 9.418 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.241e-05/0.08347, allocations: 8.562 kB / 466 MB, free: 9.41 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.815e-05/0.08353, allocations: 54.73 kB / 466.1 MB, free: 9.348 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.095e-05/0.08358, allocations: 16.84 kB / 466.1 MB, free: 9.332 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00014/0.08372, allocations: 130.3 kB / 466.2 MB, free: 9.18 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.239e-05/0.08374, allocations: 16.81 kB / 466.2 MB, free: 9.164 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.993e-05/0.08379, allocations: 28.38 kB / 466.2 MB, free: 9.137 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003586/0.08415, allocations: 195.2 kB / 466.4 MB, free: 8.938 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.445e-05/0.08416, allocations: 4 kB / 466.4 MB, free: 8.934 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.274e-05/0.08419, allocations: 8 kB / 466.4 MB, free: 8.926 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.797e-06/0.0842, allocations: 4 kB / 466.4 MB, free: 8.922 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002287/0.08443, allocations: 121.6 kB / 466.6 MB, free: 8.805 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00115/0.08557, allocations: 0.6174 MB / 467.2 MB, free: 8.137 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003841/0.08596, allocations: 170.5 kB / 467.3 MB, free: 7.961 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002251/0.08618, allocations: 100.8 kB / 467.4 MB, free: 7.859 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.683e-05/0.0862, allocations: 4 kB / 467.5 MB, free: 7.855 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002449/0.08645, allocations: 123.6 kB / 467.6 MB, free: 7.723 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.713e-06/0.08645, allocations: 0 / 467.6 MB, free: 7.723 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001102/0.08755, allocations: 0.5629 MB / 468.1 MB, free: 7.125 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.315e-05/0.0876, allocations: 55.41 kB / 468.2 MB, free: 7.059 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001127/0.08772, allocations: 129.7 kB / 468.3 MB, free: 6.926 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.583e-05/0.08774, allocations: 33.7 kB / 468.3 MB, free: 6.887 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000119/0.08786, allocations: 144.3 kB / 468.5 MB, free: 6.738 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.937e-05/0.08793, allocations: 83.31 kB / 468.6 MB, free: 6.656 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.348e-05/0.08801, allocations: 57.45 kB / 468.6 MB, free: 6.594 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.08816, allocations: 330.8 kB / 468.9 MB, free: 6.262 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001092/0.08827, allocations: 67.91 kB / 469 MB, free: 6.195 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002675/0.08854, allocations: 131.7 kB / 469.1 MB, free: 6.035 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003218/0.08886, allocations: 212.9 kB / 469.4 MB, free: 5.801 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.08886, allocations: 0 / 469.4 MB, free: 5.801 MB / 334.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003757/0.08924, allocations: 255.6 kB / 469.6 MB, free: 5.547 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/0.08925, allocations: 4 kB / 469.6 MB, free: 5.543 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.744e-06/0.08926, allocations: 4 kB / 469.6 MB, free: 5.539 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.825e-05/0.08928, allocations: 12.23 kB / 469.6 MB, free: 5.527 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002195/0.0895, allocations: 55.92 kB / 469.7 MB, free: 5.473 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.1e-05/0.08951, allocations: 7.938 kB / 469.7 MB, free: 5.465 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.567e-05/0.08961, allocations: 15.94 kB / 469.7 MB, free: 5.449 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.791e-05/0.08962, allocations: 12 kB / 469.7 MB, free: 5.438 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.0001852/0.08981, allocations: 141.7 kB / 469.8 MB, free: 5.289 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.408e-05/0.08983, allocations: 7.953 kB / 469.9 MB, free: 5.281 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.79e-05/0.08988, allocations: 20.94 kB / 469.9 MB, free: 5.258 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.429e-06/0.08989, allocations: 4 kB / 469.9 MB, free: 5.254 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.664e-06/0.08989, allocations: 11.92 kB / 469.9 MB, free: 5.242 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.0899, allocations: 0 / 469.9 MB, free: 5.242 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008297/0.09073, allocations: 0.5743 MB / 470.5 MB, free: 4.613 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.09073, allocations: 0 / 470.5 MB, free: 4.613 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002017/0.09093, allocations: 43.86 kB / 470.5 MB, free: 4.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.09093, allocations: 0 / 470.5 MB, free: 4.57 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.242e-05/0.09096, allocations: 15.97 kB / 470.5 MB, free: 4.555 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.022e-06/0.09096, allocations: 8 kB / 470.5 MB, free: 4.547 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.09096, allocations: 4.062 kB / 470.5 MB, free: 4.543 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004902/0.09145, allocations: 385.1 kB / 470.9 MB, free: 4.145 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.348e-05/0.09148, allocations: 15.89 kB / 470.9 MB, free: 4.129 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.07e-05/0.09151, allocations: 8.031 kB / 470.9 MB, free: 4.121 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001055/0.09161, allocations: 8 kB / 470.9 MB, free: 4.113 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.125e-05/0.09166, allocations: 15.97 kB / 471 MB, free: 4.098 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.383e-05/0.09169, allocations: 8 kB / 471 MB, free: 4.09 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.12e-05/0.09176, allocations: 99.27 kB / 471.1 MB, free: 3.992 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.09176, allocations: 0 / 471.1 MB, free: 3.992 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002832/0.09204, allocations: 44 kB / 471.1 MB, free: 3.949 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.0008064/0.09285, allocations: 0.9363 MB / 472 MB, free: 2.98 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003024/0.09315, allocations: 171.8 kB / 472.2 MB, free: 2.812 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.09315, allocations: 0 / 472.2 MB, free: 2.812 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001315/0.09328, allocations: 83.84 kB / 472.3 MB, free: 2.73 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002575/0.09354, allocations: 18.89 kB / 472.3 MB, free: 2.715 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002698/0.09624, allocations: 2.329 MB / 474.6 MB, free: 244 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001261/0.09637, allocations: 120.2 kB / 474.8 MB, free: 108 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.438e-05/0.09642, allocations: 13.64 kB / 474.8 MB, free: 92 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001113/0.09653, allocations: 63.41 kB / 474.8 MB, free: 28 kB / 334.1 MB Notification: Performance of SimCode: time 5.71e-07/0.09653, allocations: 0 / 474.8 MB, free: 28 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02396/0.1205, allocations: 3.636 MB / 478.5 MB, free: 12.45 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11/11.12, allocations: 3.984 kB / 478.5 MB, free: 12.45 MB / 350.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithIntervalMeasure_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=50 --tolerance=1e-06 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: 13.65348732599523] Failed to read output from testmodel.py, exit status != 0: 11.277783927042037 11.294938621 11.20914255 Calling exit ...