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.001318/0.001318, allocations: 108.7 kB / 16.37 MB, free: 6.016 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.001031/0.001031, allocations: 195.1 kB / 17.31 MB, free: 5.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.366/1.366, allocations: 205.1 MB / 223.2 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04239/0.04239, allocations: 8.108 MB / 278.6 MB, free: 3.969 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.001536/0.001536, allocations: 71.89 kB / 338.6 MB, free: 7.848 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2671/0.2687, allocations: 48.28 MB / 386.9 MB, free: 51.54 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure): time 0.003171/0.2719, allocations: 1.959 MB / 388.9 MB, free: 50.2 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008116/0.2727, allocations: 0.5679 MB / 389.5 MB, free: 49.8 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.278e-05/0.2728, allocations: 3.438 kB / 389.5 MB, free: 49.8 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 7.167e-05/0.2729, allocations: 26.09 kB / 389.5 MB, free: 49.78 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001257/0.273, allocations: 48.22 kB / 389.5 MB, free: 49.75 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001807/0.2732, allocations: 51.27 kB / 389.6 MB, free: 49.72 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001869/0.2734, allocations: 217 kB / 389.8 MB, free: 49.61 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002106/0.2736, allocations: 106.3 kB / 389.9 MB, free: 49.57 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00016/0.2738, allocations: 83.55 kB / 390 MB, free: 49.53 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001208/0.2739, allocations: 91.17 kB / 390.1 MB, free: 49.48 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.738e-05/0.274, allocations: 20.66 kB / 390.1 MB, free: 49.48 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.629e-05/0.274, allocations: 21.25 kB / 390.1 MB, free: 49.48 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.244e-05/0.2741, allocations: 52.3 kB / 390.2 MB, free: 49.45 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.216e-05/0.2742, allocations: 95.64 kB / 390.3 MB, free: 49.39 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002549/0.2744, allocations: 226.6 kB / 390.5 MB, free: 49.31 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.2744, allocations: 0 / 390.5 MB, free: 49.31 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.2745, allocations: 1 kB / 390.5 MB, free: 49.31 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.653e-06/0.2745, allocations: 1.625 kB / 390.5 MB, free: 49.31 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.0006464/0.2751, allocations: 484.5 kB / 390.9 MB, free: 48.89 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.763e-05/0.2752, allocations: 10.2 kB / 391 MB, free: 48.89 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.23e-05/0.2752, allocations: 21.69 kB / 391 MB, free: 48.88 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001166/0.2754, allocations: 191.9 kB / 391.2 MB, free: 48.66 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.216e-05/0.2754, allocations: 13.38 kB / 391.2 MB, free: 48.65 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.598e-05/0.2754, allocations: 28.38 kB / 391.2 MB, free: 48.64 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003223/0.2758, allocations: 196.9 kB / 391.4 MB, free: 48.55 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.437e-05/0.2758, allocations: 1.875 kB / 391.4 MB, free: 48.55 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.953e-05/0.2758, allocations: 6.625 kB / 391.4 MB, free: 48.54 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.116e-06/0.2758, allocations: 8.562 kB / 391.4 MB, free: 48.54 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002109/0.276, allocations: 121.3 kB / 391.5 MB, free: 48.5 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001034/0.2771, allocations: 0.7232 MB / 392.3 MB, free: 47.98 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004754/0.2776, allocations: 270.6 kB / 392.5 MB, free: 47.8 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002596/0.2778, allocations: 107.5 kB / 392.6 MB, free: 47.76 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.858e-05/0.2779, allocations: 3.938 kB / 392.6 MB, free: 47.76 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003043/0.2782, allocations: 127.7 kB / 392.8 MB, free: 47.68 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.823e-06/0.2782, allocations: 3.781 kB / 392.8 MB, free: 47.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.00123/0.2795, allocations: 0.6406 MB / 393.4 MB, free: 47.26 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.803e-05/0.2795, allocations: 61.03 kB / 393.5 MB, free: 47.19 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001106/0.2796, allocations: 129.3 kB / 393.6 MB, free: 47.08 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.255e-05/0.2797, allocations: 32.61 kB / 393.6 MB, free: 47.05 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.661e-05/0.2798, allocations: 138.7 kB / 393.8 MB, free: 46.92 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.208e-05/0.2798, allocations: 80.62 kB / 393.8 MB, free: 46.86 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.116e-05/0.2799, allocations: 58.73 kB / 393.9 MB, free: 46.82 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.22e-05/0.28, allocations: 327.2 kB / 394.2 MB, free: 46.5 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001064/0.2801, allocations: 63.03 kB / 394.3 MB, free: 46.48 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001622/0.2803, allocations: 133.4 kB / 394.4 MB, free: 46.38 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000283/0.2806, allocations: 204.9 kB / 394.6 MB, free: 46.23 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.582e-06/0.2806, allocations: 1.125 kB / 394.6 MB, free: 46.23 MB / 318.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003711/0.281, allocations: 255.5 kB / 394.9 MB, free: 46.11 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.059e-05/0.281, allocations: 6.75 kB / 394.9 MB, free: 46.11 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.281, allocations: 2.25 kB / 394.9 MB, free: 46.11 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.509e-05/0.281, allocations: 4.375 kB / 394.9 MB, free: 46.11 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002561/0.2813, allocations: 64.88 kB / 394.9 MB, free: 46.11 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.456e-05/0.2813, allocations: 8.625 kB / 394.9 MB, free: 46.1 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001003/0.2814, allocations: 13 kB / 394.9 MB, free: 46.09 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.3e-05/0.2815, allocations: 18.2 kB / 395 MB, free: 46.09 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.0001579/0.2816, allocations: 142.6 kB / 395.1 MB, free: 45.95 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.562e-05/0.2817, allocations: 17.81 kB / 395.1 MB, free: 45.94 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.681e-05/0.2817, allocations: 15.22 kB / 395.1 MB, free: 45.93 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.2817, allocations: 3.328 kB / 395.1 MB, free: 45.93 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.2817, allocations: 1.156 kB / 395.1 MB, free: 45.93 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.2818, allocations: 4.828 kB / 395.1 MB, free: 45.93 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007285/0.2825, allocations: 0.6221 MB / 395.8 MB, free: 45.48 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.2825, allocations: 1.406 kB / 395.8 MB, free: 45.48 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001926/0.2827, allocations: 45.5 kB / 395.8 MB, free: 45.47 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.689e-06/0.2827, allocations: 5.344 kB / 395.8 MB, free: 45.47 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.651e-05/0.2827, allocations: 8.406 kB / 395.8 MB, free: 45.46 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.2827, allocations: 1.688 kB / 395.8 MB, free: 45.46 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.2827, allocations: 1.656 kB / 395.8 MB, free: 45.46 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003998/0.2832, allocations: 386.5 kB / 396.2 MB, free: 45.22 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.727e-05/0.2832, allocations: 89.59 kB / 396.3 MB, free: 45.12 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.845e-05/0.2832, allocations: 9.578 kB / 396.3 MB, free: 45.12 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001059/0.2833, allocations: 3.875 kB / 396.3 MB, free: 45.12 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.087e-05/0.2834, allocations: 22.59 kB / 396.3 MB, free: 45.11 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.271e-05/0.2834, allocations: 12.09 kB / 396.3 MB, free: 45.11 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.462e-05/0.2835, allocations: 101.2 kB / 396.4 MB, free: 45.02 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2835, allocations: 1.375 kB / 396.4 MB, free: 45.02 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000305/0.2838, allocations: 47.16 kB / 396.5 MB, free: 45.02 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 8.425e-05/0.2839, allocations: 106.6 kB / 396.6 MB, free: 44.92 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000289/0.2842, allocations: 181.8 kB / 396.8 MB, free: 44.86 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.2842, allocations: 4.125 kB / 396.8 MB, free: 44.86 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001333/0.2843, allocations: 88.34 kB / 396.9 MB, free: 44.83 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002609/0.2846, allocations: 17.16 kB / 396.9 MB, free: 44.82 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001011/0.2856, allocations: 0.5871 MB / 397.5 MB, free: 44.4 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001997/0.2858, allocations: 0.7317 MB / 398.2 MB, free: 43.7 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 6.183e-05/0.2859, allocations: 20.02 kB / 398.2 MB, free: 43.7 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.07e-05/0.2859, allocations: 19.16 kB / 398.2 MB, free: 43.7 MB / 318.1 MB Notification: Performance of SimCode: time 2.2e-07/0.286, allocations: 0 / 398.2 MB, free: 43.7 MB / 318.1 MB Notification: Performance of Templates: time 0.004725/0.2907, allocations: 1.549 MB / 399.8 MB, free: 43.6 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 -s gbode -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.pipe 2>&1)