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: "" <> 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001022/0.001022, allocations: 91.45 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.00646/0.00646, allocations: 172.4 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.619/1.619, allocations: 205.4 MB / 222.4 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04197/0.04197, allocations: 8.109 MB / 278.8 MB, free: 13.11 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.0006239/0.0006239, allocations: 19.12 kB / 339 MB, free: 26.57 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1202, allocations: 49.27 MB / 388.3 MB, free: 9.246 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure): time 0.00262/0.1229, allocations: 1.673 MB / 389.9 MB, free: 7.559 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009565/0.1238, allocations: 0.5464 MB / 390.5 MB, free: 7.004 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.513e-05/0.1239, allocations: 4 kB / 390.5 MB, free: 7 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.933e-05/0.124, allocations: 19.84 kB / 390.5 MB, free: 6.98 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001952/0.1242, allocations: 35.69 kB / 390.5 MB, free: 6.945 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002015/0.1244, allocations: 43.97 kB / 390.6 MB, free: 6.902 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002398/0.1247, allocations: 207.2 kB / 390.8 MB, free: 6.699 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002264/0.1249, allocations: 78.75 kB / 390.9 MB, free: 6.625 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001913/0.1251, allocations: 79.7 kB / 390.9 MB, free: 6.547 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001322/0.1252, allocations: 79.62 kB / 391 MB, free: 6.469 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.438e-05/0.1253, allocations: 12 kB / 391 MB, free: 6.457 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.807e-05/0.1253, allocations: 8 kB / 391 MB, free: 6.449 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.703e-05/0.1254, allocations: 35.84 kB / 391.1 MB, free: 6.414 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001147/0.1255, allocations: 117.3 kB / 391.2 MB, free: 6.293 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002437/0.1257, allocations: 207.5 kB / 391.4 MB, free: 6.09 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1258, allocations: 4 kB / 391.4 MB, free: 6.086 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.876e-06/0.1258, allocations: 3.938 kB / 391.4 MB, free: 6.082 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.621e-06/0.1258, allocations: 0 / 391.4 MB, free: 6.082 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.0007626/0.1265, allocations: 455.4 kB / 391.8 MB, free: 5.59 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.117e-05/0.1266, allocations: 8.031 kB / 391.8 MB, free: 5.582 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.63e-05/0.1267, allocations: 58.73 kB / 391.9 MB, free: 5.516 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.118e-05/0.1268, allocations: 24.64 kB / 391.9 MB, free: 5.492 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001887/0.127, allocations: 184.2 kB / 392.1 MB, free: 5.273 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.209e-05/0.127, allocations: 12.81 kB / 392.1 MB, free: 5.258 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.117e-05/0.127, allocations: 28.31 kB / 392.1 MB, free: 5.23 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003476/0.1274, allocations: 195.4 kB / 392.3 MB, free: 5.035 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.761e-05/0.1274, allocations: 3.906 kB / 392.3 MB, free: 5.031 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.348e-05/0.1275, allocations: 8 kB / 392.4 MB, free: 5.023 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.129e-05/0.1275, allocations: 8 kB / 392.4 MB, free: 5.016 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000211/0.1277, allocations: 113.7 kB / 392.5 MB, free: 4.902 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001242/0.1289, allocations: 0.7369 MB / 393.2 MB, free: 4.102 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004533/0.1294, allocations: 267.5 kB / 393.5 MB, free: 3.812 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002448/0.1297, allocations: 108.8 kB / 393.6 MB, free: 3.703 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.2e-05/0.1297, allocations: 8 kB / 393.6 MB, free: 3.695 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002871/0.13, allocations: 119.3 kB / 393.7 MB, free: 3.566 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.422e-06/0.13, allocations: 0 / 393.7 MB, free: 3.566 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001189/0.1312, allocations: 0.6418 MB / 394.3 MB, free: 2.871 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.869e-05/0.1312, allocations: 51.41 kB / 394.4 MB, free: 2.809 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001004/0.1314, allocations: 137.6 kB / 394.5 MB, free: 2.668 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.311e-05/0.1314, allocations: 33.7 kB / 394.6 MB, free: 2.629 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.784e-05/0.1315, allocations: 136 kB / 394.7 MB, free: 2.488 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.016e-05/0.1315, allocations: 82.83 kB / 394.8 MB, free: 2.406 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.002e-05/0.1316, allocations: 29.7 kB / 394.8 MB, free: 2.371 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.1317, allocations: 334.8 kB / 395.1 MB, free: 2.035 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.76e-05/0.1318, allocations: 63.92 kB / 395.2 MB, free: 1.973 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001554/0.132, allocations: 135.4 kB / 395.3 MB, free: 1.809 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003068/0.1323, allocations: 209 kB / 395.5 MB, free: 1.578 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.1323, allocations: 0 / 395.5 MB, free: 1.578 MB / 286.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003571/0.1327, allocations: 251.9 kB / 395.8 MB, free: 1.328 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.269e-05/0.1327, allocations: 8.031 kB / 395.8 MB, free: 1.32 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.1327, allocations: 4.078 kB / 395.8 MB, free: 1.316 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.748e-05/0.1327, allocations: 7.984 kB / 395.8 MB, free: 1.309 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002008/0.1329, allocations: 59.91 kB / 395.9 MB, free: 1.25 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.44e-05/0.133, allocations: 7.984 kB / 395.9 MB, free: 1.242 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.211e-05/0.1331, allocations: 23.78 kB / 395.9 MB, free: 1.219 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.543e-05/0.1331, allocations: 8 kB / 395.9 MB, free: 1.211 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.0001857/0.1333, allocations: 146.8 kB / 396 MB, free: 1.059 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.313e-05/0.1333, allocations: 15.89 kB / 396 MB, free: 1.043 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.829e-05/0.1333, allocations: 16.84 kB / 396.1 MB, free: 1.027 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.1334, allocations: 4 kB / 396.1 MB, free: 1.023 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.1334, allocations: 0 / 396.1 MB, free: 1.023 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.67e-06/0.1334, allocations: 3.938 kB / 396.1 MB, free: 1.02 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008027/0.1342, allocations: 0.6222 MB / 396.7 MB, free: 344 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.1342, allocations: 3.938 kB / 396.7 MB, free: 340 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001867/0.1344, allocations: 39.97 kB / 396.7 MB, free: 300 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/0.1344, allocations: 4 kB / 396.7 MB, free: 296 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.564e-05/0.1344, allocations: 4 kB / 396.7 MB, free: 292 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.19e-06/0.1344, allocations: 4 kB / 396.7 MB, free: 288 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.1344, allocations: 8 kB / 396.8 MB, free: 280 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004797/0.1349, allocations: 384.8 kB / 397.1 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.017e-05/0.135, allocations: 88.92 kB / 397.2 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.945e-05/0.135, allocations: 8 kB / 397.2 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001017/0.1351, allocations: 12.03 kB / 397.2 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.7e-05/0.1352, allocations: 15.98 kB / 397.3 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.17e-05/0.1352, allocations: 8 kB / 397.3 MB, free: 15.73 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.216e-05/0.1353, allocations: 95.27 kB / 397.4 MB, free: 15.63 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1353, allocations: 3.938 kB / 397.4 MB, free: 15.63 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002849/0.1356, allocations: 48 kB / 397.4 MB, free: 15.58 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.0008793/0.1365, allocations: 0.943 MB / 398.3 MB, free: 14.61 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003006/0.1368, allocations: 184 kB / 398.5 MB, free: 14.43 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1368, allocations: 0 / 398.5 MB, free: 14.43 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001411/0.1369, allocations: 87.91 kB / 398.6 MB, free: 14.34 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002603/0.1372, allocations: 16.75 kB / 398.6 MB, free: 14.32 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002655/0.1399, allocations: 2.463 MB / 401.1 MB, free: 11.72 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003448/0.1402, allocations: 0.728 MB / 401.8 MB, free: 10.96 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.808e-05/0.1403, allocations: 21.53 kB / 401.8 MB, free: 10.95 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.521e-05/0.1404, allocations: 51.42 kB / 401.9 MB, free: 10.9 MB / 302.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1404, allocations: 0 / 401.9 MB, free: 10.9 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01542/0.1558, allocations: 2.986 MB / 404.9 MB, free: 8.059 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002693/0.1561, allocations: 243.5 kB / 405.1 MB, free: 7.801 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.96/2.117, allocations: 0 / 405.1 MB, free: 7.801 MB / 302.1 MB (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 --timeout=50 --tolerance=1e-06 ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithIntervalMeasure.fmu > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.pipe 2>&1)