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.001056/0.001056, allocations: 107.4 kB / 15.34 MB, free: 0.5 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.00132/0.00132, allocations: 194.4 kB / 16.26 MB, free: 6.633 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.601/1.601, allocations: 205.1 MB / 222.1 MB, free: 4.699 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03932/0.03932, allocations: 8.098 MB / 277.6 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.001462/0.001462, allocations: 63.91 kB / 336.7 MB, free: 26.86 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1045, allocations: 48.3 MB / 385 MB, free: 10.52 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure): time 0.003059/0.1076, allocations: 2.023 MB / 387 MB, free: 8.473 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000855/0.1085, allocations: 0.5542 MB / 387.6 MB, free: 7.91 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.228e-05/0.1086, allocations: 4 kB / 387.6 MB, free: 7.906 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 7.459e-05/0.1086, allocations: 23.84 kB / 387.6 MB, free: 7.883 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001362/0.1088, allocations: 39.69 kB / 387.6 MB, free: 7.844 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001645/0.109, allocations: 47.95 kB / 387.7 MB, free: 7.797 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001964/0.1092, allocations: 207.2 kB / 387.9 MB, free: 7.594 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001884/0.1094, allocations: 94.03 kB / 388 MB, free: 7.504 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001654/0.1095, allocations: 83.72 kB / 388.1 MB, free: 7.422 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001059/0.1096, allocations: 95.59 kB / 388.2 MB, free: 7.328 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.021e-05/0.1097, allocations: 20 kB / 388.2 MB, free: 7.309 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.267e-05/0.1097, allocations: 28 kB / 388.2 MB, free: 7.281 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.78e-05/0.1098, allocations: 47.78 kB / 388.2 MB, free: 7.234 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001035/0.1099, allocations: 103.6 kB / 388.3 MB, free: 7.133 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002014/0.1101, allocations: 219.5 kB / 388.6 MB, free: 6.918 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1101, allocations: 0 / 388.6 MB, free: 6.918 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1101, allocations: 0 / 388.6 MB, free: 6.918 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.1101, allocations: 0 / 388.6 MB, free: 6.918 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.0007001/0.1108, allocations: 491.4 kB / 389 MB, free: 6.387 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.518e-05/0.1109, allocations: 8.031 kB / 389 MB, free: 6.379 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.257e-05/0.1109, allocations: 28.64 kB / 389.1 MB, free: 6.352 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001485/0.1111, allocations: 180.2 kB / 389.3 MB, free: 6.137 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.068e-05/0.1111, allocations: 16.81 kB / 389.3 MB, free: 6.121 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.425e-05/0.1112, allocations: 24.28 kB / 389.3 MB, free: 6.098 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003337/0.1115, allocations: 199.5 kB / 389.5 MB, free: 5.895 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.547e-05/0.1115, allocations: 0 / 389.5 MB, free: 5.895 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.489e-05/0.1116, allocations: 12 kB / 389.5 MB, free: 5.883 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.123e-06/0.1116, allocations: 4 kB / 389.5 MB, free: 5.879 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002115/0.1118, allocations: 117.7 kB / 389.6 MB, free: 5.766 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001058/0.1128, allocations: 0.733 MB / 390.3 MB, free: 4.969 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003964/0.1133, allocations: 255.6 kB / 390.6 MB, free: 4.691 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002101/0.1135, allocations: 108.8 kB / 390.7 MB, free: 4.582 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.593e-05/0.1135, allocations: 4 kB / 390.7 MB, free: 4.578 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002516/0.1138, allocations: 135.2 kB / 390.8 MB, free: 4.434 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.653e-06/0.1138, allocations: 0 / 390.8 MB, free: 4.434 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001049/0.1148, allocations: 0.6391 MB / 391.5 MB, free: 3.742 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.657e-05/0.1149, allocations: 55.41 kB / 391.5 MB, free: 3.676 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.275e-05/0.115, allocations: 125.8 kB / 391.7 MB, free: 3.543 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.648e-05/0.115, allocations: 37.7 kB / 391.7 MB, free: 3.5 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.507e-05/0.1151, allocations: 140 kB / 391.8 MB, free: 3.355 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.931e-05/0.1152, allocations: 74.91 kB / 391.9 MB, free: 3.281 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.377e-05/0.1153, allocations: 57.69 kB / 392 MB, free: 3.219 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.1154, allocations: 330.8 kB / 392.3 MB, free: 2.887 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.752e-05/0.1155, allocations: 55.98 kB / 392.3 MB, free: 2.832 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001506/0.1156, allocations: 143.4 kB / 392.5 MB, free: 2.66 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000254/0.1159, allocations: 212.9 kB / 392.7 MB, free: 2.426 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/0.1159, allocations: 0 / 392.7 MB, free: 2.426 MB / 286.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003269/0.1162, allocations: 259.8 kB / 392.9 MB, free: 2.168 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.1163, allocations: 10.22 kB / 392.9 MB, free: 2.16 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.1163, allocations: 4 kB / 393 MB, free: 2.156 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.736e-05/0.1163, allocations: 4 kB / 393 MB, free: 2.152 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002087/0.1165, allocations: 63.89 kB / 393 MB, free: 2.09 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/0.1165, allocations: 0 / 393 MB, free: 2.09 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.806e-05/0.1166, allocations: 19.88 kB / 393 MB, free: 2.07 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.818e-05/0.1166, allocations: 12 kB / 393.1 MB, free: 2.059 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.0001646/0.1168, allocations: 145.8 kB / 393.2 MB, free: 1.906 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.127e-05/0.1168, allocations: 15.81 kB / 393.2 MB, free: 1.891 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.482e-05/0.1169, allocations: 20.84 kB / 393.2 MB, free: 1.875 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.1169, allocations: 3.938 kB / 393.2 MB, free: 1.871 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.1169, allocations: 4 kB / 393.2 MB, free: 1.867 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.1169, allocations: 3.938 kB / 393.2 MB, free: 1.863 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000735/0.1177, allocations: 0.6133 MB / 393.9 MB, free: 1.188 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.1177, allocations: 0 / 393.9 MB, free: 1.188 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001955/0.1179, allocations: 43.86 kB / 393.9 MB, free: 1.145 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.1179, allocations: 4 kB / 393.9 MB, free: 1.141 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.875e-05/0.1179, allocations: 8 kB / 393.9 MB, free: 1.133 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.1179, allocations: 0 / 393.9 MB, free: 1.133 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.1179, allocations: 0 / 393.9 MB, free: 1.133 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004344/0.1184, allocations: 396.9 kB / 394.3 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.873e-05/0.1184, allocations: 85.02 kB / 394.4 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.768e-05/0.1185, allocations: 8 kB / 394.4 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001028/0.1186, allocations: 12.03 kB / 394.4 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.538e-05/0.1186, allocations: 11.98 kB / 394.4 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.274e-05/0.1186, allocations: 8 kB / 394.4 MB, free: 0.582 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.627e-05/0.1187, allocations: 103 kB / 394.5 MB, free: 496 kB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1187, allocations: 3.938 kB / 394.5 MB, free: 492 kB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003121/0.119, allocations: 51.98 kB / 394.6 MB, free: 440 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.0001016/0.1191, allocations: 107.2 kB / 394.7 MB, free: 320 kB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003156/0.1195, allocations: 188.1 kB / 394.9 MB, free: 132 kB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.1195, allocations: 0 / 394.9 MB, free: 132 kB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001173/0.1196, allocations: 88.41 kB / 394.9 MB, free: 44 kB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002434/0.1198, allocations: 16.12 kB / 395 MB, free: 28 kB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001002/0.1208, allocations: 0.6598 MB / 395.6 MB, free: 15.32 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002845/0.1211, allocations: 0.7437 MB / 396.4 MB, free: 14.55 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.544e-05/0.1212, allocations: 17.53 kB / 396.4 MB, free: 14.54 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.566e-05/0.1213, allocations: 19.44 kB / 396.4 MB, free: 14.52 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1213, allocations: 0 / 396.4 MB, free: 14.52 MB / 302.1 MB Notification: Performance of Templates: time 0.003854/0.1251, allocations: 1.521 MB / 397.9 MB, free: 13.02 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)