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.00111/0.00111, allocations: 105.7 kB / 16.27 MB, free: 6.414 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.001109/0.00111, allocations: 189.8 kB / 17.2 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.618/1.618, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04366/0.04366, allocations: 8.105 MB / 278.5 MB, free: 4.012 MB / 222.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.001666/0.001666, allocations: 71.91 kB / 337.9 MB, free: 8.559 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2578/0.2595, allocations: 48.28 MB / 386.1 MB, free: 51.15 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure): time 0.004084/0.2636, allocations: 1.964 MB / 388.1 MB, free: 49.8 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001136/0.2648, allocations: 0.568 MB / 388.7 MB, free: 49.39 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001005/0.2649, allocations: 3.781 kB / 388.7 MB, free: 49.39 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 8.628e-05/0.2651, allocations: 29.36 kB / 388.7 MB, free: 49.38 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001569/0.2652, allocations: 47.98 kB / 388.8 MB, free: 49.34 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002203/0.2654, allocations: 50.03 kB / 388.8 MB, free: 49.32 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002427/0.2657, allocations: 220.2 kB / 389 MB, free: 49.2 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002338/0.2659, allocations: 97.78 kB / 389.1 MB, free: 49.17 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001856/0.2661, allocations: 88.12 kB / 389.2 MB, free: 49.12 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001391/0.2663, allocations: 90.38 kB / 389.3 MB, free: 49.08 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.687e-05/0.2663, allocations: 21.81 kB / 389.3 MB, free: 49.08 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.084e-05/0.2664, allocations: 21.34 kB / 389.3 MB, free: 49.08 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.194e-05/0.2664, allocations: 46.27 kB / 389.4 MB, free: 49.05 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001105/0.2665, allocations: 98.44 kB / 389.5 MB, free: 48.99 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002885/0.2668, allocations: 232.3 kB / 389.7 MB, free: 48.9 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.2669, allocations: 0.8438 kB / 389.7 MB, free: 48.9 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.2669, allocations: 0 / 389.7 MB, free: 48.9 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.652e-06/0.2669, allocations: 0 / 389.7 MB, free: 48.9 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.0007364/0.2676, allocations: 487.8 kB / 390.2 MB, free: 48.47 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/0.2677, allocations: 10.59 kB / 390.2 MB, free: 48.47 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.044e-05/0.2677, allocations: 22.28 kB / 390.2 MB, free: 48.46 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001151/0.2679, allocations: 181.5 kB / 390.4 MB, free: 48.25 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.307e-05/0.2679, allocations: 14.88 kB / 390.4 MB, free: 48.25 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.333e-05/0.2679, allocations: 27.95 kB / 390.4 MB, free: 48.24 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003576/0.2683, allocations: 201.3 kB / 390.6 MB, free: 48.14 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.525e-05/0.2683, allocations: 0.5312 kB / 390.6 MB, free: 48.14 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.521e-05/0.2684, allocations: 10.66 kB / 390.6 MB, free: 48.13 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.337e-06/0.2684, allocations: 7.094 kB / 390.6 MB, free: 48.13 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002298/0.2686, allocations: 114.4 kB / 390.8 MB, free: 48.09 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001159/0.2698, allocations: 0.729 MB / 391.5 MB, free: 47.57 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000433/0.2702, allocations: 261.8 kB / 391.7 MB, free: 47.4 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002492/0.2705, allocations: 108 kB / 391.8 MB, free: 47.36 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.863e-05/0.2705, allocations: 7.156 kB / 391.8 MB, free: 47.36 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003004/0.2708, allocations: 124.2 kB / 392 MB, free: 47.28 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.743e-06/0.2708, allocations: 0 / 392 MB, free: 47.28 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001127/0.272, allocations: 0.6415 MB / 392.6 MB, free: 46.86 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.483e-05/0.272, allocations: 60.38 kB / 392.7 MB, free: 46.8 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.875e-05/0.2721, allocations: 127.1 kB / 392.8 MB, free: 46.69 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.042e-05/0.2721, allocations: 32.52 kB / 392.8 MB, free: 46.65 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.735e-05/0.2722, allocations: 143.7 kB / 393 MB, free: 46.52 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.603e-05/0.2723, allocations: 77.08 kB / 393 MB, free: 46.46 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.948e-05/0.2724, allocations: 55.94 kB / 393.1 MB, free: 46.43 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.854e-05/0.2724, allocations: 331.4 kB / 393.4 MB, free: 46.11 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001071/0.2726, allocations: 63.42 kB / 393.5 MB, free: 46.09 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001616/0.2727, allocations: 140.7 kB / 393.6 MB, free: 45.97 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003241/0.2731, allocations: 212.8 kB / 393.8 MB, free: 45.82 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.2731, allocations: 0 / 393.8 MB, free: 45.82 MB / 318.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003765/0.2734, allocations: 249.7 kB / 394.1 MB, free: 45.71 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.506e-05/0.2735, allocations: 7.594 kB / 394.1 MB, free: 45.71 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/0.2735, allocations: 3.312 kB / 394.1 MB, free: 45.71 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.939e-05/0.2735, allocations: 3.156 kB / 394.1 MB, free: 45.71 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002224/0.2738, allocations: 65.7 kB / 394.1 MB, free: 45.7 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.03e-05/0.2738, allocations: 3.891 kB / 394.2 MB, free: 45.7 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.326e-05/0.2739, allocations: 14.19 kB / 394.2 MB, free: 45.7 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.054e-05/0.2739, allocations: 12.88 kB / 394.2 MB, free: 45.69 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.0001654/0.2741, allocations: 155.1 kB / 394.3 MB, free: 45.55 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.762e-05/0.2741, allocations: 10.44 kB / 394.3 MB, free: 45.55 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.679e-05/0.2742, allocations: 20.45 kB / 394.4 MB, free: 45.54 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.2742, allocations: 3.422 kB / 394.4 MB, free: 45.54 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.2742, allocations: 0 / 394.4 MB, free: 45.54 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.184e-06/0.2742, allocations: 5.203 kB / 394.4 MB, free: 45.53 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008512/0.275, allocations: 0.626 MB / 395 MB, free: 45.08 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.2751, allocations: 1.641 kB / 395 MB, free: 45.08 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002058/0.2753, allocations: 46.44 kB / 395 MB, free: 45.07 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.2753, allocations: 1.344 kB / 395 MB, free: 45.07 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.937e-05/0.2753, allocations: 8.312 kB / 395.1 MB, free: 45.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/0.2753, allocations: 1.828 kB / 395.1 MB, free: 45.07 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.2753, allocations: 1.031 kB / 395.1 MB, free: 45.07 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004917/0.2758, allocations: 390.5 kB / 395.4 MB, free: 44.82 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.735e-05/0.2759, allocations: 87.97 kB / 395.5 MB, free: 44.72 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.18e-05/0.2759, allocations: 7.547 kB / 395.5 MB, free: 44.72 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001054/0.276, allocations: 9.484 kB / 395.5 MB, free: 44.71 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.58e-05/0.2761, allocations: 14.8 kB / 395.6 MB, free: 44.71 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.854e-05/0.2761, allocations: 12.33 kB / 395.6 MB, free: 44.71 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.407e-05/0.2762, allocations: 96.23 kB / 395.7 MB, free: 44.63 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2762, allocations: 0 / 395.7 MB, free: 44.63 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000315/0.2765, allocations: 51.88 kB / 395.7 MB, free: 44.62 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.000117/0.2766, allocations: 109.2 kB / 395.8 MB, free: 44.52 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003792/0.277, allocations: 193.3 kB / 396 MB, free: 44.46 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.277, allocations: 0 / 396 MB, free: 44.46 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001408/0.2772, allocations: 92.98 kB / 396.1 MB, free: 44.43 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002589/0.2775, allocations: 20.55 kB / 396.1 MB, free: 44.41 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001031/0.2785, allocations: 0.6148 MB / 396.7 MB, free: 43.96 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002297/0.2787, allocations: 0.7348 MB / 397.5 MB, free: 43.26 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.882e-05/0.2788, allocations: 19.41 kB / 397.5 MB, free: 43.25 MB / 318.1 MB Notification: Performance of SimCode: time 5.71e-07/0.2788, allocations: 0 / 397.5 MB, free: 43.25 MB / 318.1 MB Notification: Performance of Templates: time 0.00508/0.2839, allocations: 2.069 MB / 399.6 MB, free: 43.1 MB / 318.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)