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.001439/0.001439, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001569/0.001569, allocations: 220.3 kB / 22.26 MB, free: 5.125 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.789/1.789, allocations: 207.6 MB / 233 MB, free: 9.988 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.05089/0.05089, allocations: 8.198 MB / 293.5 MB, free: 13.64 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.002609/0.002609, allocations: 80.2 kB / 410.5 MB, free: 46.94 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09178/0.09439, allocations: 50.94 MB / 461.4 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure): time 0.003787/0.09818, allocations: 1.965 MB / 463.4 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00152/0.0997, allocations: 0.586 MB / 463.9 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002305/0.09993, allocations: 4 kB / 463.9 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001637/0.1001, allocations: 27.72 kB / 464 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003248/0.1004, allocations: 51.55 kB / 464 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002843/0.1007, allocations: 51.92 kB / 464.1 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003733/0.1011, allocations: 207.2 kB / 464.3 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002606/0.1013, allocations: 78.58 kB / 464.4 MB, free: 10.49 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002671/0.1016, allocations: 91.7 kB / 464.4 MB, free: 10.4 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001936/0.1018, allocations: 91.61 kB / 464.5 MB, free: 10.31 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.885e-05/0.1018, allocations: 28 kB / 464.6 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.719e-05/0.1019, allocations: 20 kB / 464.6 MB, free: 10.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.805e-05/0.102, allocations: 47.84 kB / 464.6 MB, free: 10.22 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001349/0.1021, allocations: 95.59 kB / 464.7 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003157/0.1024, allocations: 223.1 kB / 464.9 MB, free: 9.906 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.1024, allocations: 0 / 464.9 MB, free: 9.906 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1024, allocations: 0 / 464.9 MB, free: 9.906 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.037e-05/0.1024, allocations: 4 kB / 464.9 MB, free: 9.902 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.0008283/0.1032, allocations: 417.9 kB / 465.3 MB, free: 9.465 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.401e-05/0.1033, allocations: 15.98 kB / 465.4 MB, free: 9.449 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.122e-05/0.1034, allocations: 50.73 kB / 465.4 MB, free: 9.391 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.71e-05/0.1034, allocations: 20.84 kB / 465.4 MB, free: 9.371 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000144/0.1036, allocations: 122.3 kB / 465.6 MB, free: 9.227 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.731e-05/0.1036, allocations: 20.81 kB / 465.6 MB, free: 9.207 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.694e-05/0.1036, allocations: 24.36 kB / 465.6 MB, free: 9.184 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003558/0.104, allocations: 207.3 kB / 465.8 MB, free: 8.973 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.82e-05/0.104, allocations: 4 kB / 465.8 MB, free: 8.969 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.493e-05/0.1041, allocations: 8 kB / 465.8 MB, free: 8.961 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.175e-06/0.1041, allocations: 4 kB / 465.8 MB, free: 8.957 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002285/0.1043, allocations: 121.7 kB / 465.9 MB, free: 8.84 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001239/0.1055, allocations: 0.6603 MB / 466.6 MB, free: 8.129 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004/0.1059, allocations: 170.5 kB / 466.8 MB, free: 7.953 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002302/0.1062, allocations: 92.81 kB / 466.9 MB, free: 7.859 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.285e-05/0.1062, allocations: 7.938 kB / 466.9 MB, free: 7.852 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003317/0.1065, allocations: 127.5 kB / 467 MB, free: 7.715 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.503e-06/0.1065, allocations: 0 / 467 MB, free: 7.715 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.00116/0.1077, allocations: 0.5669 MB / 467.6 MB, free: 7.113 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.842e-05/0.1077, allocations: 63.39 kB / 467.6 MB, free: 7.039 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001162/0.1079, allocations: 121.7 kB / 467.7 MB, free: 6.914 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.084e-05/0.1079, allocations: 37.69 kB / 467.8 MB, free: 6.871 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001333/0.108, allocations: 136.3 kB / 467.9 MB, free: 6.73 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.595e-05/0.1081, allocations: 83.31 kB / 468 MB, free: 6.648 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.27e-05/0.1082, allocations: 57.45 kB / 468 MB, free: 6.586 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.1083, allocations: 334.8 kB / 468.4 MB, free: 6.25 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001143/0.1085, allocations: 59.97 kB / 468.4 MB, free: 6.191 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001725/0.1086, allocations: 135.6 kB / 468.6 MB, free: 6.027 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003146/0.1089, allocations: 209 kB / 468.8 MB, free: 5.797 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.109, allocations: 4 kB / 468.8 MB, free: 5.793 MB / 334.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.000407/0.1094, allocations: 255.7 kB / 469 MB, free: 5.539 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.76e-05/0.1094, allocations: 4 kB / 469 MB, free: 5.535 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.1094, allocations: 4 kB / 469 MB, free: 5.531 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.894e-05/0.1094, allocations: 4 kB / 469 MB, free: 5.527 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002272/0.1096, allocations: 59.91 kB / 469.1 MB, free: 5.469 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.252e-05/0.1096, allocations: 4.078 kB / 469.1 MB, free: 5.465 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001079/0.1098, allocations: 24.14 kB / 469.1 MB, free: 5.441 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.249e-05/0.1098, allocations: 11.98 kB / 469.1 MB, free: 5.43 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.0002025/0.11, allocations: 145.7 kB / 469.3 MB, free: 5.277 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.478e-05/0.11, allocations: 7.953 kB / 469.3 MB, free: 5.27 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.551e-05/0.1101, allocations: 24.92 kB / 469.3 MB, free: 5.242 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.1101, allocations: 4 kB / 469.3 MB, free: 5.238 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.1101, allocations: 0 / 469.3 MB, free: 5.238 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.1101, allocations: 3.938 kB / 469.3 MB, free: 5.234 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009301/0.111, allocations: 0.5938 MB / 469.9 MB, free: 4.586 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.111, allocations: 3.938 kB / 469.9 MB, free: 4.582 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001962/0.1112, allocations: 35.98 kB / 469.9 MB, free: 4.547 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.502e-06/0.1112, allocations: 3.938 kB / 469.9 MB, free: 4.543 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.822e-05/0.1112, allocations: 8 kB / 470 MB, free: 4.535 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.027e-06/0.1112, allocations: 11.98 kB / 470 MB, free: 4.523 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.1112, allocations: 4.062 kB / 470 MB, free: 4.52 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005276/0.1118, allocations: 381.1 kB / 470.3 MB, free: 4.125 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.468e-05/0.1118, allocations: 15.92 kB / 470.4 MB, free: 4.109 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.391e-05/0.1118, allocations: 16.02 kB / 470.4 MB, free: 4.094 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001043/0.1119, allocations: 4 kB / 470.4 MB, free: 4.09 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.031e-05/0.112, allocations: 23.97 kB / 470.4 MB, free: 4.066 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.31e-05/0.112, allocations: 8 kB / 470.4 MB, free: 4.059 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.038e-05/0.1121, allocations: 95.27 kB / 470.5 MB, free: 3.965 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1121, allocations: 0 / 470.5 MB, free: 3.965 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003039/0.1124, allocations: 44 kB / 470.5 MB, free: 3.922 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.0008699/0.1132, allocations: 0.9324 MB / 471.5 MB, free: 2.957 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003409/0.1136, allocations: 167.9 kB / 471.6 MB, free: 2.793 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1136, allocations: 0 / 471.6 MB, free: 2.793 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001387/0.1137, allocations: 79.91 kB / 471.7 MB, free: 2.715 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000266/0.114, allocations: 13.17 kB / 471.7 MB, free: 2.703 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003049/0.117, allocations: 2.336 MB / 474.1 MB, free: 224 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004247/0.1175, allocations: 0.7281 MB / 474.8 MB, free: 15.46 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.999e-05/0.1175, allocations: 17.64 kB / 474.8 MB, free: 15.45 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001022/0.1176, allocations: 51.42 kB / 474.9 MB, free: 15.4 MB / 350.1 MB Notification: Performance of SimCode: time 9.22e-07/0.1176, allocations: 4 kB / 474.9 MB, free: 15.39 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0356/0.1532, allocations: 3.656 MB / 478.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/11.24, allocations: 15.78 kB / 478.5 MB, free: 11.78 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: 14.30445641092956] Failed to read output from testmodel.py, exit status != 0: 11.341300752945244 11.366436085 11.259267094 Calling exit ...