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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure") translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001293/0.001298, allocations: 103.9 kB / 15.98 MB, free: 6.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001493/0.001493, allocations: 198.9 kB / 16.91 MB, free: 6.188 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.437/1.437, allocations: 205.1 MB / 222.8 MB, free: 4.711 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03968/0.03968, allocations: 8.111 MB / 278.2 MB, free: 13.33 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.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.00203/0.00203, allocations: 63.91 kB / 337.3 MB, free: 26.85 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09477/0.09681, allocations: 48.3 MB / 385.6 MB, free: 10.51 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure): time 0.003159/0.1, allocations: 2.019 MB / 387.7 MB, free: 8.469 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008903/0.1009, allocations: 0.5659 MB / 388.2 MB, free: 7.895 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.855e-05/0.101, allocations: 4 kB / 388.2 MB, free: 7.891 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 7.122e-05/0.1011, allocations: 19.84 kB / 388.3 MB, free: 7.871 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000139/0.1013, allocations: 39.69 kB / 388.3 MB, free: 7.832 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000176/0.1015, allocations: 43.95 kB / 388.3 MB, free: 7.789 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001988/0.1017, allocations: 211.2 kB / 388.5 MB, free: 7.582 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001886/0.1019, allocations: 97.97 kB / 388.6 MB, free: 7.488 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001711/0.102, allocations: 87.77 kB / 388.7 MB, free: 7.402 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001142/0.1022, allocations: 91.61 kB / 388.8 MB, free: 7.312 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.564e-05/0.1022, allocations: 24 kB / 388.8 MB, free: 7.289 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.383e-05/0.1022, allocations: 20 kB / 388.9 MB, free: 7.27 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.464e-05/0.1023, allocations: 47.84 kB / 388.9 MB, free: 7.223 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.709e-05/0.1024, allocations: 95.59 kB / 389 MB, free: 7.129 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001865/0.1026, allocations: 171.8 kB / 389.2 MB, free: 6.961 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.1026, allocations: 0 / 389.2 MB, free: 6.961 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1026, allocations: 0 / 389.2 MB, free: 6.961 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.975e-06/0.1026, allocations: 7.984 kB / 389.2 MB, free: 6.953 MB / 286.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.0007115/0.1033, allocations: 479.4 kB / 389.6 MB, free: 6.434 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.1034, allocations: 12.03 kB / 389.6 MB, free: 6.422 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.513e-05/0.1035, allocations: 24.64 kB / 389.7 MB, free: 6.398 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001371/0.1036, allocations: 176.2 kB / 389.8 MB, free: 6.188 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.17e-05/0.1036, allocations: 20.81 kB / 389.9 MB, free: 6.168 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.525e-05/0.1037, allocations: 24.22 kB / 389.9 MB, free: 6.145 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003219/0.104, allocations: 195.6 kB / 390.1 MB, free: 5.945 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.628e-05/0.104, allocations: 4 kB / 390.1 MB, free: 5.941 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.303e-05/0.1041, allocations: 8 kB / 390.1 MB, free: 5.934 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.296e-06/0.1041, allocations: 12 kB / 390.1 MB, free: 5.922 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002031/0.1043, allocations: 117.7 kB / 390.2 MB, free: 5.809 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001083/0.1054, allocations: 0.7329 MB / 391 MB, free: 5.012 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000407/0.1058, allocations: 263.1 kB / 391.2 MB, free: 4.73 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002157/0.106, allocations: 112.8 kB / 391.3 MB, free: 4.617 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.584e-05/0.106, allocations: 4 kB / 391.3 MB, free: 4.613 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002742/0.1063, allocations: 127.3 kB / 391.4 MB, free: 4.477 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.824e-06/0.1063, allocations: 0 / 391.4 MB, free: 4.477 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001042/0.1074, allocations: 0.6429 MB / 392.1 MB, free: 3.781 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.244e-05/0.1074, allocations: 55.41 kB / 392.1 MB, free: 3.715 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.433e-05/0.1075, allocations: 137.7 kB / 392.3 MB, free: 3.574 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.115e-05/0.1076, allocations: 29.7 kB / 392.3 MB, free: 3.539 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.729e-05/0.1077, allocations: 136.1 kB / 392.4 MB, free: 3.398 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.829e-05/0.1077, allocations: 74.92 kB / 392.5 MB, free: 3.324 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.974e-05/0.1078, allocations: 57.69 kB / 392.6 MB, free: 3.262 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.1079, allocations: 334.7 kB / 392.9 MB, free: 2.926 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.396e-05/0.108, allocations: 59.92 kB / 393 MB, free: 2.867 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001598/0.1082, allocations: 139.4 kB / 393.1 MB, free: 2.699 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002591/0.1085, allocations: 212.9 kB / 393.3 MB, free: 2.465 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.1085, allocations: 0 / 393.3 MB, free: 2.465 MB / 286.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003488/0.1088, allocations: 255.7 kB / 393.5 MB, free: 2.211 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.919e-05/0.1089, allocations: 8 kB / 393.6 MB, free: 2.203 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.1089, allocations: 0 / 393.6 MB, free: 2.203 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.596e-05/0.1089, allocations: 4 kB / 393.6 MB, free: 2.199 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002074/0.1091, allocations: 59.91 kB / 393.6 MB, free: 2.141 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/0.1091, allocations: 4 kB / 393.6 MB, free: 2.137 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.795e-05/0.1092, allocations: 15.88 kB / 393.6 MB, free: 2.121 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.571e-05/0.1092, allocations: 12 kB / 393.7 MB, free: 2.109 MB / 286.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.00016/0.1094, allocations: 150 kB / 393.8 MB, free: 1.953 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.399e-05/0.1094, allocations: 15.81 kB / 393.8 MB, free: 1.938 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.93e-05/0.1095, allocations: 16.84 kB / 393.8 MB, free: 1.926 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.1095, allocations: 4 kB / 393.8 MB, free: 1.922 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.1095, allocations: 0 / 393.8 MB, free: 1.922 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.1095, allocations: 3.938 kB / 393.8 MB, free: 1.918 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007697/0.1103, allocations: 0.6211 MB / 394.5 MB, free: 1.234 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.1103, allocations: 4 kB / 394.5 MB, free: 1.23 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000195/0.1105, allocations: 39.92 kB / 394.5 MB, free: 1.191 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.786e-06/0.1105, allocations: 0 / 394.5 MB, free: 1.191 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.722e-05/0.1105, allocations: 8 kB / 394.5 MB, free: 1.184 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.027e-06/0.1105, allocations: 0 / 394.5 MB, free: 1.184 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.1105, allocations: 11.88 kB / 394.5 MB, free: 1.172 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004385/0.111, allocations: 401 kB / 394.9 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.271e-05/0.1111, allocations: 85.02 kB / 395 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.816e-05/0.1111, allocations: 4 kB / 395 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001058/0.1112, allocations: 12.03 kB / 395 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.707e-05/0.1113, allocations: 11.98 kB / 395 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.22e-05/0.1113, allocations: 16 kB / 395 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.276e-05/0.1113, allocations: 95.27 kB / 395.1 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1113, allocations: 0 / 395.1 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000342/0.1117, allocations: 51.98 kB / 395.2 MB, free: 480 kB / 286.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.0001224/0.1118, allocations: 111.1 kB / 395.3 MB, free: 356 kB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003287/0.1122, allocations: 184.1 kB / 395.5 MB, free: 172 kB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1122, allocations: 0.5 kB / 395.5 MB, free: 172 kB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001233/0.1123, allocations: 91.91 kB / 395.6 MB, free: 80 kB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002556/0.1126, allocations: 19.8 kB / 395.6 MB, free: 60 kB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001056/0.1136, allocations: 0.6812 MB / 396.3 MB, free: 15.34 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003826/0.114, allocations: 0.736 MB / 397 MB, free: 14.57 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.911e-05/0.1141, allocations: 19.44 kB / 397 MB, free: 14.55 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1141, allocations: 0 / 397 MB, free: 14.55 MB / 302.1 MB Notification: Performance of Templates: time 0.003264/0.1174, allocations: 2.065 MB / 399.1 MB, free: 12.5 MB / 302.1 MB make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.makefile (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 & ./ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.pipe 2>&1)