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.001041/0.001041, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001028/0.001028, allocations: 196 kB / 16.53 MB, free: 6.664 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.422/1.422, allocations: 205.1 MB / 222.4 MB, free: 4.605 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04282/0.04282, allocations: 8.11 MB / 277.9 MB, free: 13.15 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.001662/0.001662, allocations: 67.91 kB / 337.2 MB, free: 26.52 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.111, allocations: 48.3 MB / 385.5 MB, free: 10.17 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure): time 0.003782/0.1149, allocations: 1.955 MB / 387.4 MB, free: 8.195 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001116/0.116, allocations: 0.5697 MB / 388 MB, free: 7.617 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001632/0.1162, allocations: 4 kB / 388 MB, free: 7.613 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001028/0.1163, allocations: 31.72 kB / 388.1 MB, free: 7.582 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002049/0.1166, allocations: 47.55 kB / 388.1 MB, free: 7.535 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000237/0.1168, allocations: 51.94 kB / 388.1 MB, free: 7.484 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002551/0.1171, allocations: 211.2 kB / 388.4 MB, free: 7.277 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002359/0.1173, allocations: 102 kB / 388.5 MB, free: 7.18 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002413/0.1176, allocations: 91.69 kB / 388.5 MB, free: 7.09 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001697/0.1177, allocations: 87.62 kB / 388.6 MB, free: 7.004 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.254e-05/0.1178, allocations: 24 kB / 388.7 MB, free: 6.98 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.085e-05/0.1178, allocations: 20 kB / 388.7 MB, free: 6.961 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.269e-05/0.1179, allocations: 47.83 kB / 388.7 MB, free: 6.914 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001211/0.118, allocations: 99.59 kB / 388.8 MB, free: 6.816 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002577/0.1183, allocations: 227.5 kB / 389 MB, free: 6.594 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.1183, allocations: 0 / 389 MB, free: 6.594 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.1183, allocations: 0 / 389 MB, free: 6.594 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.895e-06/0.1183, allocations: 0 / 389 MB, free: 6.594 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.0008622/0.1192, allocations: 491.4 kB / 389.5 MB, free: 6.062 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.1193, allocations: 8.031 kB / 389.5 MB, free: 6.055 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.206e-05/0.1193, allocations: 24.66 kB / 389.6 MB, free: 6.031 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001881/0.1195, allocations: 180.1 kB / 389.7 MB, free: 5.816 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.043e-05/0.1196, allocations: 16.81 kB / 389.7 MB, free: 5.801 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.509e-05/0.1196, allocations: 24.28 kB / 389.8 MB, free: 5.777 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003904/0.12, allocations: 199.6 kB / 390 MB, free: 5.574 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.755e-05/0.1201, allocations: 4 kB / 390 MB, free: 5.57 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.119e-05/0.1201, allocations: 15.98 kB / 390 MB, free: 5.555 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.062e-05/0.1201, allocations: 4 kB / 390 MB, free: 5.551 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000247/0.1204, allocations: 117.7 kB / 390.1 MB, free: 5.438 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00131/0.1217, allocations: 0.7252 MB / 390.8 MB, free: 4.648 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004623/0.1222, allocations: 259.6 kB / 391.1 MB, free: 4.367 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002417/0.1224, allocations: 116.4 kB / 391.2 MB, free: 4.254 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.833e-05/0.1224, allocations: 0 / 391.2 MB, free: 4.254 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003284/0.1228, allocations: 127.3 kB / 391.3 MB, free: 4.117 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.603e-06/0.1228, allocations: 0 / 391.3 MB, free: 4.117 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001177/0.124, allocations: 0.6418 MB / 392 MB, free: 3.422 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.902e-05/0.124, allocations: 55.41 kB / 392 MB, free: 3.355 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001039/0.1241, allocations: 125.8 kB / 392.1 MB, free: 3.223 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.569e-05/0.1242, allocations: 41.58 kB / 392.2 MB, free: 3.176 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.349e-05/0.1243, allocations: 136.1 kB / 392.3 MB, free: 3.035 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.143e-05/0.1244, allocations: 82.89 kB / 392.4 MB, free: 2.953 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.287e-05/0.1244, allocations: 53.7 kB / 392.4 MB, free: 2.895 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.1245, allocations: 326.8 kB / 392.8 MB, free: 2.566 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.963e-05/0.1247, allocations: 67.97 kB / 392.8 MB, free: 2.5 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00014/0.1248, allocations: 127.4 kB / 393 MB, free: 2.344 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002731/0.1251, allocations: 214.1 kB / 393.2 MB, free: 2.109 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.1251, allocations: 4 kB / 393.2 MB, free: 2.105 MB / 286.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003581/0.1255, allocations: 255.6 kB / 393.4 MB, free: 1.852 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.1255, allocations: 8.625 kB / 393.4 MB, free: 1.844 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.1255, allocations: 3.938 kB / 393.4 MB, free: 1.84 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.567e-05/0.1255, allocations: 4 kB / 393.4 MB, free: 1.836 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002173/0.1257, allocations: 59.91 kB / 393.5 MB, free: 1.777 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.399e-05/0.1258, allocations: 7.938 kB / 393.5 MB, free: 1.77 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.492e-05/0.1259, allocations: 12.19 kB / 393.5 MB, free: 1.758 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.827e-05/0.1259, allocations: 16 kB / 393.5 MB, free: 1.742 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.0001843/0.1261, allocations: 145.8 kB / 393.7 MB, free: 1.59 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.576e-05/0.1261, allocations: 15.81 kB / 393.7 MB, free: 1.574 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.411e-05/0.1262, allocations: 16.84 kB / 393.7 MB, free: 1.562 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.1262, allocations: 4 kB / 393.7 MB, free: 1.559 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.1262, allocations: 0 / 393.7 MB, free: 1.559 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-06/0.1262, allocations: 7.922 kB / 393.7 MB, free: 1.551 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008649/0.1271, allocations: 0.6144 MB / 394.3 MB, free: 0.875 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.578e-06/0.1271, allocations: 4 kB / 394.3 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000206/0.1273, allocations: 43.92 kB / 394.4 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.898e-06/0.1273, allocations: 0 / 394.4 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.142e-05/0.1273, allocations: 8 kB / 394.4 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.008e-06/0.1274, allocations: 8 kB / 394.4 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.1274, allocations: 3.984 kB / 394.4 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005045/0.1279, allocations: 380.8 kB / 394.8 MB, free: 424 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.603e-05/0.1279, allocations: 85.02 kB / 394.8 MB, free: 320 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.857e-05/0.128, allocations: 12.03 kB / 394.9 MB, free: 308 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001089/0.1281, allocations: 8 kB / 394.9 MB, free: 300 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.549e-05/0.1282, allocations: 15.98 kB / 394.9 MB, free: 284 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.584e-05/0.1282, allocations: 15.92 kB / 394.9 MB, free: 268 kB / 286.1 MB Notification: Performance of sorting global known variables: time 5.56e-05/0.1283, allocations: 99.2 kB / 395 MB, free: 168 kB / 286.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.1283, allocations: 0 / 395 MB, free: 168 kB / 286.1 MB Notification: Performance of remove unused functions: time 0.000312/0.1286, allocations: 48 kB / 395 MB, free: 120 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.0001318/0.1287, allocations: 107.3 kB / 395.1 MB, free: 0 / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003734/0.1291, allocations: 196.5 kB / 395.3 MB, free: 15.81 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.594e-06/0.1291, allocations: 0 / 395.3 MB, free: 15.81 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001302/0.1293, allocations: 103.7 kB / 395.4 MB, free: 15.71 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002589/0.1295, allocations: 14.34 kB / 395.5 MB, free: 15.7 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001064/0.1306, allocations: 0.5858 MB / 396 MB, free: 15.07 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003331/0.131, allocations: 0.7282 MB / 396.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.375e-05/0.131, allocations: 21.53 kB / 396.8 MB, free: 14.3 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.463e-05/0.1311, allocations: 19.44 kB / 396.8 MB, free: 14.28 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1311, allocations: 0 / 396.8 MB, free: 14.28 MB / 302.1 MB Notification: Performance of Templates: time 0.004497/0.1356, allocations: 1.546 MB / 398.4 MB, free: 12.75 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)