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.001164/0.001164, allocations: 111.3 kB / 15.23 MB, free: 0.6562 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.001348/0.001348, allocations: 193.5 kB / 16.14 MB, free: 6.668 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.334/1.334, allocations: 205.1 MB / 222 MB, free: 4.715 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03793/0.03793, allocations: 8.11 MB / 277.4 MB, free: 13.37 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.001445/0.001445, allocations: 59.92 kB / 336.5 MB, free: 26.98 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08404/0.08549, allocations: 48.3 MB / 384.8 MB, free: 10.63 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure): time 0.00292/0.08846, allocations: 2.012 MB / 386.8 MB, free: 8.602 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007696/0.08925, allocations: 0.5659 MB / 387.4 MB, free: 8.027 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.841e-05/0.08933, allocations: 4 kB / 387.4 MB, free: 8.023 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 7.47e-05/0.08942, allocations: 15.84 kB / 387.4 MB, free: 8.008 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001324/0.08956, allocations: 39.69 kB / 387.4 MB, free: 7.969 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000175/0.08974, allocations: 39.97 kB / 387.5 MB, free: 7.93 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001954/0.08995, allocations: 211.1 kB / 387.7 MB, free: 7.723 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001839/0.09014, allocations: 82.73 kB / 387.8 MB, free: 7.645 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001481/0.09029, allocations: 79.77 kB / 387.8 MB, free: 7.566 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.933e-05/0.0904, allocations: 87.61 kB / 387.9 MB, free: 7.48 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.606e-05/0.09043, allocations: 16 kB / 387.9 MB, free: 7.465 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.914e-05/0.09047, allocations: 12 kB / 388 MB, free: 7.453 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.107e-05/0.09051, allocations: 47.83 kB / 388 MB, free: 7.406 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.805e-05/0.09061, allocations: 91.59 kB / 388.1 MB, free: 7.316 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000189/0.0908, allocations: 211.5 kB / 388.3 MB, free: 7.109 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.09081, allocations: 4 kB / 388.3 MB, free: 7.105 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.09082, allocations: 4 kB / 388.3 MB, free: 7.102 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.99e-06/0.09083, allocations: 0 / 388.3 MB, free: 7.102 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.000668/0.0915, allocations: 483.4 kB / 388.8 MB, free: 6.578 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.09155, allocations: 8.031 kB / 388.8 MB, free: 6.57 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.225e-05/0.0916, allocations: 28.66 kB / 388.8 MB, free: 6.543 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001228/0.09173, allocations: 184.2 kB / 389 MB, free: 6.324 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.111e-05/0.09176, allocations: 24.75 kB / 389 MB, free: 6.301 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.418e-05/0.09181, allocations: 28.28 kB / 389 MB, free: 6.273 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003118/0.09213, allocations: 195.6 kB / 389.2 MB, free: 6.074 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.539e-05/0.09215, allocations: 0 / 389.2 MB, free: 6.074 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.168e-05/0.09218, allocations: 8 kB / 389.2 MB, free: 6.066 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.735e-06/0.09219, allocations: 4 kB / 389.2 MB, free: 6.062 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001956/0.09239, allocations: 121.7 kB / 389.4 MB, free: 5.945 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001027/0.09342, allocations: 0.729 MB / 390.1 MB, free: 5.152 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003789/0.09381, allocations: 263.6 kB / 390.4 MB, free: 4.867 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002128/0.09404, allocations: 112.8 kB / 390.5 MB, free: 4.754 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.653e-05/0.09406, allocations: 0 / 390.5 MB, free: 4.754 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002587/0.09433, allocations: 127.2 kB / 390.6 MB, free: 4.617 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.252e-06/0.09434, allocations: 0 / 390.6 MB, free: 4.617 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001011/0.09535, allocations: 0.6419 MB / 391.2 MB, free: 3.922 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.575e-05/0.09542, allocations: 59.39 kB / 391.3 MB, free: 3.852 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.972e-05/0.09552, allocations: 129.6 kB / 391.4 MB, free: 3.719 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.427e-05/0.09555, allocations: 29.7 kB / 391.4 MB, free: 3.684 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.045e-05/0.09563, allocations: 136 kB / 391.6 MB, free: 3.543 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.997e-05/0.0957, allocations: 94.77 kB / 391.7 MB, free: 3.449 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.177e-05/0.09578, allocations: 53.7 kB / 391.7 MB, free: 3.391 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001177/0.0959, allocations: 330.8 kB / 392 MB, free: 3.059 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.637e-05/0.09601, allocations: 63.97 kB / 392.1 MB, free: 2.996 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001418/0.09615, allocations: 127.4 kB / 392.2 MB, free: 2.84 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000241/0.0964, allocations: 212.9 kB / 392.4 MB, free: 2.605 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.09641, allocations: 8 kB / 392.4 MB, free: 2.598 MB / 286.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003074/0.09672, allocations: 251.6 kB / 392.7 MB, free: 2.348 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/0.09675, allocations: 10.5 kB / 392.7 MB, free: 2.34 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.09676, allocations: 0 / 392.7 MB, free: 2.34 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.522e-05/0.09678, allocations: 4 kB / 392.7 MB, free: 2.336 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002006/0.09698, allocations: 63.91 kB / 392.8 MB, free: 2.273 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.026e-06/0.09701, allocations: 12.19 kB / 392.8 MB, free: 2.262 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.628e-05/0.0971, allocations: 11.94 kB / 392.8 MB, free: 2.25 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.425e-05/0.09712, allocations: 8 kB / 392.8 MB, free: 2.242 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.0001467/0.09727, allocations: 138.9 kB / 392.9 MB, free: 2.098 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.338e-05/0.0973, allocations: 15.81 kB / 392.9 MB, free: 2.082 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.448e-05/0.09735, allocations: 24.81 kB / 393 MB, free: 2.059 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.09736, allocations: 4 kB / 393 MB, free: 2.055 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.09737, allocations: 0 / 393 MB, free: 2.055 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.09738, allocations: 7.938 kB / 393 MB, free: 2.047 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006996/0.09808, allocations: 0.6105 MB / 393.6 MB, free: 1.375 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.0981, allocations: 0 / 393.6 MB, free: 1.375 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001914/0.09829, allocations: 51.91 kB / 393.6 MB, free: 1.324 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.09831, allocations: 4.062 kB / 393.6 MB, free: 1.32 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.732e-05/0.09833, allocations: 8 kB / 393.7 MB, free: 1.312 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.09834, allocations: 3.938 kB / 393.7 MB, free: 1.309 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.09834, allocations: 0 / 393.7 MB, free: 1.309 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003974/0.09875, allocations: 388.8 kB / 394 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.895e-05/0.09879, allocations: 85.02 kB / 394.1 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.673e-05/0.09883, allocations: 12 kB / 394.1 MB, free: 0.793 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.972e-05/0.09893, allocations: 4 kB / 394.1 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.886e-05/0.09899, allocations: 20.02 kB / 394.2 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.018e-05/0.09902, allocations: 8 kB / 394.2 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.065e-05/0.09907, allocations: 99.2 kB / 394.3 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.09908, allocations: 3.938 kB / 394.3 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002751/0.09936, allocations: 48 kB / 394.3 MB, free: 0.6133 MB / 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 9.675e-05/0.09946, allocations: 114.8 kB / 394.4 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002638/0.09973, allocations: 180.2 kB / 394.6 MB, free: 324 kB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.09974, allocations: 3.938 kB / 394.6 MB, free: 320 kB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001108/0.09985, allocations: 88.09 kB / 394.7 MB, free: 232 kB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002445/0.1001, allocations: 8.375 kB / 394.7 MB, free: 224 kB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009278/0.101, allocations: 0.6736 MB / 395.4 MB, free: 15.52 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002307/0.1013, allocations: 0.7286 MB / 396.1 MB, free: 14.76 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.447e-05/0.1013, allocations: 17.55 kB / 396.1 MB, free: 14.75 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.175e-05/0.1014, allocations: 19.44 kB / 396.1 MB, free: 14.73 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1014, allocations: 0 / 396.1 MB, free: 14.73 MB / 302.1 MB Notification: Performance of Templates: time 0.003376/0.1048, allocations: 1.447 MB / 397.6 MB, free: 13.3 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)