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.0009301/0.00093, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.009019/0.00902, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.667/1.667, allocations: 205.4 MB / 222.4 MB, free: 5.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04063/0.04063, allocations: 8.109 MB / 278.8 MB, free: 13.12 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.0005295/0.0005295, allocations: 14.97 kB / 338.9 MB, free: 26.68 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.125/0.1255, allocations: 49.27 MB / 388.2 MB, free: 9.359 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure): time 0.002305/0.1279, allocations: 1.665 MB / 389.8 MB, free: 7.68 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009114/0.1288, allocations: 0.5659 MB / 390.4 MB, free: 7.105 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.409e-05/0.1289, allocations: 4 kB / 390.4 MB, free: 7.102 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.528e-05/0.129, allocations: 15.86 kB / 390.4 MB, free: 7.086 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001501/0.1292, allocations: 39.69 kB / 390.4 MB, free: 7.047 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001865/0.1294, allocations: 39.95 kB / 390.5 MB, free: 7.008 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002321/0.1296, allocations: 207.2 kB / 390.7 MB, free: 6.805 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000232/0.1298, allocations: 78.75 kB / 390.8 MB, free: 6.73 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001862/0.13, allocations: 67.78 kB / 390.8 MB, free: 6.664 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001364/0.1302, allocations: 79.61 kB / 390.9 MB, free: 6.586 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.304e-05/0.1302, allocations: 12 kB / 390.9 MB, free: 6.574 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.327e-05/0.1303, allocations: 12 kB / 390.9 MB, free: 6.562 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.565e-05/0.1303, allocations: 35.8 kB / 391 MB, free: 6.527 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001314/0.1304, allocations: 113.3 kB / 391.1 MB, free: 6.41 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002668/0.1307, allocations: 215.4 kB / 391.3 MB, free: 6.199 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.1307, allocations: 3.938 kB / 391.3 MB, free: 6.195 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.896e-06/0.1307, allocations: 4 kB / 391.3 MB, free: 6.191 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.713e-06/0.1308, allocations: 0 / 391.3 MB, free: 6.191 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.00077/0.1315, allocations: 447.4 kB / 391.7 MB, free: 5.707 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.288e-05/0.1316, allocations: 12.03 kB / 391.7 MB, free: 5.695 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.286e-05/0.1317, allocations: 16.75 kB / 391.8 MB, free: 5.68 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001967/0.1319, allocations: 196.1 kB / 392 MB, free: 5.449 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.288e-05/0.1319, allocations: 16.81 kB / 392 MB, free: 5.43 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.574e-05/0.132, allocations: 20.38 kB / 392 MB, free: 5.41 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003874/0.1324, allocations: 203.6 kB / 392.2 MB, free: 5.207 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.729e-05/0.1324, allocations: 0 / 392.2 MB, free: 5.207 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.699e-05/0.1324, allocations: 4 kB / 392.2 MB, free: 5.203 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.428e-06/0.1325, allocations: 4 kB / 392.2 MB, free: 5.199 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002205/0.1327, allocations: 121.6 kB / 392.3 MB, free: 5.078 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001394/0.1341, allocations: 0.7446 MB / 393.1 MB, free: 4.27 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004905/0.1346, allocations: 255.6 kB / 393.3 MB, free: 3.992 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002346/0.1348, allocations: 108.8 kB / 393.4 MB, free: 3.883 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.697e-05/0.1349, allocations: 0 / 393.4 MB, free: 3.883 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003029/0.1352, allocations: 131.2 kB / 393.5 MB, free: 3.742 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.944e-06/0.1352, allocations: 0 / 393.5 MB, free: 3.742 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001195/0.1364, allocations: 0.6418 MB / 394.2 MB, free: 3.047 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.548e-05/0.1365, allocations: 59.41 kB / 394.2 MB, free: 2.977 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001174/0.1366, allocations: 129.7 kB / 394.4 MB, free: 2.844 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.491e-05/0.1366, allocations: 29.7 kB / 394.4 MB, free: 2.809 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.127e-05/0.1367, allocations: 136.2 kB / 394.5 MB, free: 2.668 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.071e-05/0.1368, allocations: 78.91 kB / 394.6 MB, free: 2.59 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.531e-05/0.1368, allocations: 37.64 kB / 394.6 MB, free: 2.547 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001752/0.137, allocations: 326.8 kB / 395 MB, free: 2.219 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001051/0.1371, allocations: 63.97 kB / 395 MB, free: 2.156 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000162/0.1373, allocations: 143.4 kB / 395.2 MB, free: 1.984 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002823/0.1376, allocations: 212.8 kB / 395.4 MB, free: 1.75 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-06/0.1376, allocations: 0 / 395.4 MB, free: 1.75 MB / 286.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003497/0.138, allocations: 247.7 kB / 395.6 MB, free: 1.504 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/0.138, allocations: 4 kB / 395.6 MB, free: 1.5 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.478e-06/0.138, allocations: 8.25 kB / 395.6 MB, free: 1.492 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.834e-05/0.138, allocations: 11.98 kB / 395.6 MB, free: 1.48 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002059/0.1382, allocations: 55.92 kB / 395.7 MB, free: 1.426 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.002e-05/0.1383, allocations: 4 kB / 395.7 MB, free: 1.422 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.502e-05/0.1384, allocations: 19.92 kB / 395.7 MB, free: 1.402 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.803e-05/0.1384, allocations: 12 kB / 395.7 MB, free: 1.391 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.0001836/0.1386, allocations: 150.7 kB / 395.9 MB, free: 1.234 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.144e-05/0.1386, allocations: 7.906 kB / 395.9 MB, free: 1.227 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.883e-05/0.1387, allocations: 20.84 kB / 395.9 MB, free: 1.207 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.07e-06/0.1387, allocations: 7.984 kB / 395.9 MB, free: 1.199 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.86e-06/0.1387, allocations: 0 / 395.9 MB, free: 1.199 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.072e-06/0.1387, allocations: 3.938 kB / 395.9 MB, free: 1.195 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009342/0.1396, allocations: 0.6261 MB / 396.5 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.1396, allocations: 0 / 396.5 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001896/0.1398, allocations: 47.86 kB / 396.6 MB, free: 472 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.1399, allocations: 4 kB / 396.6 MB, free: 468 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.753e-05/0.1399, allocations: 7.984 kB / 396.6 MB, free: 460 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.536e-06/0.1399, allocations: 4 kB / 396.6 MB, free: 456 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.1399, allocations: 0 / 396.6 MB, free: 456 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004953/0.1404, allocations: 388.8 kB / 397 MB, free: 44 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.961e-05/0.1405, allocations: 92.95 kB / 397.1 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.97e-05/0.1405, allocations: 8 kB / 397.1 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.793e-05/0.1406, allocations: 4 kB / 397.1 MB, free: 15.92 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.667e-05/0.1407, allocations: 15.97 kB / 397.1 MB, free: 15.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.242e-05/0.1407, allocations: 8 kB / 397.1 MB, free: 15.9 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.559e-05/0.1408, allocations: 103.3 kB / 397.2 MB, free: 15.8 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1408, allocations: 0 / 397.2 MB, free: 15.8 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002986/0.1411, allocations: 48 kB / 397.3 MB, free: 15.75 MB / 302.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.1412, allocations: 113.5 kB / 397.4 MB, free: 15.63 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002783/0.1415, allocations: 176.3 kB / 397.5 MB, free: 15.46 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.1415, allocations: 0.5 kB / 397.5 MB, free: 15.46 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001284/0.1416, allocations: 95.84 kB / 397.6 MB, free: 15.36 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002539/0.1419, allocations: 19.8 kB / 397.7 MB, free: 15.34 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001117/0.143, allocations: 0.7442 MB / 398.4 MB, free: 14.57 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004248/0.1435, allocations: 0.7286 MB / 399.1 MB, free: 13.82 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.704e-05/0.1436, allocations: 17.55 kB / 399.1 MB, free: 13.8 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.468e-05/0.1436, allocations: 19.44 kB / 399.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1436, allocations: 3.938 kB / 399.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of Templates: time 0.004097/0.1477, allocations: 1.404 MB / 400.6 MB, free: 12.39 MB / 302.1 MB make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: