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.008711/0.008711, allocations: 102.6 kB / 15.73 MB, free: 6.039 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.001626/0.001626, allocations: 190.7 kB / 16.67 MB, free: 5.953 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.697/1.697, allocations: 205.1 MB / 222.5 MB, free: 4.496 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04458/0.04458, allocations: 8.117 MB / 278 MB, free: 13.06 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.001436/0.001436, allocations: 63.91 kB / 386.7 MB, free: 9.031 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.377/0.3784, allocations: 48.3 MB / 435 MB, free: 7.816 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure): time 0.003526/0.382, allocations: 1.962 MB / 437 MB, free: 6.445 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001033/0.3831, allocations: 0.5717 MB / 437.5 MB, free: 6.035 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.552e-05/0.3832, allocations: 6.688 kB / 437.5 MB, free: 6.031 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 7.749e-05/0.3833, allocations: 24.83 kB / 437.6 MB, free: 6.016 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001652/0.3834, allocations: 43.66 kB / 437.6 MB, free: 5.984 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002689/0.3837, allocations: 54.36 kB / 437.7 MB, free: 5.953 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002774/0.384, allocations: 218 kB / 437.9 MB, free: 5.844 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002747/0.3843, allocations: 94.67 kB / 438 MB, free: 5.797 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002286/0.3845, allocations: 84.7 kB / 438 MB, free: 5.758 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001585/0.3847, allocations: 89.61 kB / 438.1 MB, free: 5.711 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.616e-05/0.3847, allocations: 20.31 kB / 438.1 MB, free: 5.711 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.036e-05/0.3848, allocations: 21.91 kB / 438.2 MB, free: 5.711 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.964e-05/0.3848, allocations: 49.67 kB / 438.2 MB, free: 5.676 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001317/0.385, allocations: 98.59 kB / 438.3 MB, free: 5.617 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003571/0.3853, allocations: 227.5 kB / 438.5 MB, free: 5.531 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.755e-06/0.3854, allocations: 9.344 kB / 438.5 MB, free: 5.523 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.3854, allocations: 0 / 438.5 MB, free: 5.523 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.845e-06/0.3854, allocations: 0 / 438.5 MB, free: 5.523 MB / 318.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.0009023/0.3863, allocations: 482.3 kB / 439 MB, free: 5.102 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.577e-05/0.3863, allocations: 9.781 kB / 439 MB, free: 5.102 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.784e-05/0.3864, allocations: 19 kB / 439 MB, free: 5.094 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001317/0.3866, allocations: 186.6 kB / 439.2 MB, free: 4.879 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.741e-05/0.3866, allocations: 17.47 kB / 439.2 MB, free: 4.871 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.039e-05/0.3866, allocations: 19.47 kB / 439.3 MB, free: 4.867 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003771/0.387, allocations: 196.9 kB / 439.5 MB, free: 4.77 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.83e-05/0.3871, allocations: 1.156 kB / 439.5 MB, free: 4.77 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.549e-05/0.3871, allocations: 9.906 kB / 439.5 MB, free: 4.762 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.048e-05/0.3871, allocations: 5.875 kB / 439.5 MB, free: 4.762 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000248/0.3874, allocations: 123.2 kB / 439.6 MB, free: 4.719 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001198/0.3886, allocations: 0.7236 MB / 440.3 MB, free: 4.191 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004315/0.389, allocations: 257.5 kB / 440.6 MB, free: 4.023 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002386/0.3892, allocations: 121.2 kB / 440.7 MB, free: 3.973 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.768e-05/0.3893, allocations: 2.188 kB / 440.7 MB, free: 3.973 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002784/0.3896, allocations: 128.8 kB / 440.8 MB, free: 3.891 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.834e-06/0.3896, allocations: 5.406 kB / 440.8 MB, free: 3.887 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.00126/0.3908, allocations: 0.6338 MB / 441.5 MB, free: 3.461 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.247e-05/0.3909, allocations: 56.25 kB / 441.5 MB, free: 3.398 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00011/0.391, allocations: 131 kB / 441.6 MB, free: 3.285 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.359e-05/0.391, allocations: 41.11 kB / 441.7 MB, free: 3.242 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.206e-05/0.3911, allocations: 138.1 kB / 441.8 MB, free: 3.117 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.352e-05/0.3912, allocations: 80.95 kB / 441.9 MB, free: 3.055 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001018/0.3913, allocations: 61.52 kB / 441.9 MB, free: 3.012 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.941e-05/0.3914, allocations: 328.6 kB / 442.3 MB, free: 2.691 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001536/0.3916, allocations: 61.86 kB / 442.3 MB, free: 2.668 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001976/0.3918, allocations: 130.9 kB / 442.5 MB, free: 2.562 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002906/0.3921, allocations: 209.6 kB / 442.7 MB, free: 2.414 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.3921, allocations: 5.312 kB / 442.7 MB, free: 2.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0004016/0.3925, allocations: 251.9 kB / 442.9 MB, free: 2.293 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/0.3925, allocations: 9.594 kB / 442.9 MB, free: 2.289 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.797e-06/0.3925, allocations: 2.031 kB / 442.9 MB, free: 2.289 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.633e-05/0.3926, allocations: 4.484 kB / 442.9 MB, free: 2.289 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002349/0.3928, allocations: 62.48 kB / 443 MB, free: 2.281 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.354e-05/0.3928, allocations: 7.688 kB / 443 MB, free: 2.277 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.1e-05/0.3929, allocations: 13.47 kB / 443 MB, free: 2.27 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.074e-05/0.3929, allocations: 13.84 kB / 443 MB, free: 2.266 MB / 318.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.0001669/0.3931, allocations: 142.4 kB / 443.2 MB, free: 2.129 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.601e-05/0.3932, allocations: 14.08 kB / 443.2 MB, free: 2.121 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.79e-05/0.3932, allocations: 20.08 kB / 443.2 MB, free: 2.105 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/0.3932, allocations: 2.219 kB / 443.2 MB, free: 2.105 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.665e-06/0.3932, allocations: 1.062 kB / 443.2 MB, free: 2.105 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.114e-06/0.3932, allocations: 5.297 kB / 443.2 MB, free: 2.102 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008535/0.3941, allocations: 0.6233 MB / 443.8 MB, free: 1.652 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.3941, allocations: 9.406 kB / 443.8 MB, free: 1.645 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001965/0.3943, allocations: 46.17 kB / 443.9 MB, free: 1.637 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.3943, allocations: 5.094 kB / 443.9 MB, free: 1.633 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.908e-05/0.3944, allocations: 4.25 kB / 443.9 MB, free: 1.633 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.696e-06/0.3944, allocations: 2.469 kB / 443.9 MB, free: 1.633 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.3944, allocations: 0 / 443.9 MB, free: 1.633 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004655/0.3948, allocations: 391.3 kB / 444.3 MB, free: 1.387 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.703e-05/0.3949, allocations: 93.69 kB / 444.4 MB, free: 1.281 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.26e-05/0.3949, allocations: 9.625 kB / 444.4 MB, free: 1.277 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001023/0.395, allocations: 3.969 kB / 444.4 MB, free: 1.277 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.473e-05/0.3951, allocations: 16.17 kB / 444.4 MB, free: 1.273 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.306e-05/0.3951, allocations: 8.234 kB / 444.4 MB, free: 1.273 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.337e-05/0.3952, allocations: 98.45 kB / 444.5 MB, free: 1.191 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.152e-06/0.3952, allocations: 1.375 kB / 444.5 MB, free: 1.191 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003029/0.3955, allocations: 58.38 kB / 444.6 MB, free: 1.172 MB / 318.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.0001131/0.3956, allocations: 109.2 kB / 444.7 MB, free: 1.078 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003427/0.396, allocations: 181.1 kB / 444.8 MB, free: 1.02 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.396, allocations: 0 / 444.8 MB, free: 1.02 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001505/0.3961, allocations: 86.38 kB / 444.9 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002633/0.3964, allocations: 18.72 kB / 444.9 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001024/0.3974, allocations: 0.5817 MB / 445.5 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002757/0.3977, allocations: 0.7299 MB / 446.3 MB, free: 15.85 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.017e-05/0.3978, allocations: 17.12 kB / 446.3 MB, free: 15.84 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.304e-05/0.3979, allocations: 19.05 kB / 446.3 MB, free: 15.84 MB / 334.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3979, allocations: 0 / 446.3 MB, free: 15.84 MB / 334.1 MB Notification: Performance of Templates: time 0.005403/0.4033, allocations: 1.584 MB / 447.9 MB, free: 15.67 MB / 334.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)