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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) 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.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001869/0.001869, allocations: 181.5 kB / 7.457 MB, free: 2.504 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 0.9483/0.9483, allocations: 194.2 MB / 202.1 MB, free: 8.727 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03272/0.03272, allocations: 7.924 MB / 254.9 MB, free: 1.758 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.00158/0.00158, allocations: 121.2 kB / 301.5 MB, free: 3.363 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 5.14e-06/5.159e-06, allocations: 0 / 353.8 MB, free: 15.02 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1622/0.1622, allocations: 46.19 MB / 400 MB, free: 70.27 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06475/0.227, allocations: 71.83 MB / 471.8 MB, free: 15.56 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001549/0.2272, allocations: 47.98 kB / 471.8 MB, free: 15.52 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.006805/0.234, allocations: 2.51 MB / 474.3 MB, free: 13 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.684e-06/0.2341, allocations: 7.938 kB / 474.3 MB, free: 13 MB / 330.7 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.0005134/0.2346, allocations: 450.9 kB / 474.8 MB, free: 12.51 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.2346, allocations: 9.031 kB / 474.8 MB, free: 12.5 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.324e-05/0.2347, allocations: 23.72 kB / 474.8 MB, free: 12.48 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000155/0.2349, allocations: 191 kB / 475 MB, free: 12.25 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.904e-05/0.2349, allocations: 8 kB / 475 MB, free: 12.25 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.815e-05/0.2349, allocations: 19.91 kB / 475 MB, free: 12.23 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002019/0.2352, allocations: 100.9 kB / 475.1 MB, free: 12.13 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002518/0.2354, allocations: 158.4 kB / 475.3 MB, free: 11.97 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.333e-05/0.2354, allocations: 0 / 475.3 MB, free: 11.97 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.721e-05/0.2355, allocations: 0 / 475.3 MB, free: 11.97 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.2355, allocations: 8 kB / 475.3 MB, free: 11.96 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009711/0.2364, allocations: 0.6779 MB / 476 MB, free: 11.23 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001603/0.2366, allocations: 105.7 kB / 476.1 MB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002308/0.2369, allocations: 113.2 kB / 476.2 MB, free: 11.01 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.466e-05/0.2369, allocations: 7.938 kB / 476.2 MB, free: 11 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001596/0.237, allocations: 120.2 kB / 476.3 MB, free: 10.88 MB / 330.7 MB Notification: Performance of pre-optimization done (n=21): time 1.523e-06/0.2371, allocations: 4 kB / 476.3 MB, free: 10.87 MB / 330.7 MB Notification: Performance of matching and sorting (n=23): time 0.0007487/0.2378, allocations: 0.4945 MB / 476.8 MB, free: 10.33 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.271e-05/0.2379, allocations: 63.2 kB / 476.9 MB, free: 10.25 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.331e-05/0.2379, allocations: 116.9 kB / 477 MB, free: 10.13 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.864e-05/0.238, allocations: 25.7 kB / 477 MB, free: 10.1 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.125e-05/0.238, allocations: 136.1 kB / 477.1 MB, free: 9.965 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.908e-05/0.2381, allocations: 74.92 kB / 477.2 MB, free: 9.891 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.694e-06/0.2381, allocations: 4 kB / 477.2 MB, free: 9.887 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.2382, allocations: 322.8 kB / 477.5 MB, free: 9.562 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.918e-05/0.2383, allocations: 56 kB / 477.6 MB, free: 9.508 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001451/0.2385, allocations: 108 kB / 477.7 MB, free: 9.371 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001093/0.2386, allocations: 69.09 kB / 477.8 MB, free: 9.305 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.041e-06/0.2386, allocations: 0 / 477.8 MB, free: 9.305 MB / 330.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0002983/0.2389, allocations: 225 kB / 478 MB, free: 9.082 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.064e-05/0.2389, allocations: 8 kB / 478 MB, free: 9.074 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.489e-06/0.2389, allocations: 0 / 478 MB, free: 9.074 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.167e-05/0.239, allocations: 4 kB / 478 MB, free: 9.07 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002167/0.2392, allocations: 59.91 kB / 478.1 MB, free: 9.012 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.2392, allocations: 7.938 kB / 478.1 MB, free: 9.004 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.643e-05/0.2393, allocations: 7.906 kB / 478.1 MB, free: 8.996 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.588e-05/0.2393, allocations: 12 kB / 478.1 MB, free: 8.984 MB / 330.7 MB Warning: Assuming fixed start value for the following 1 variables: intervalMeasure.w:DISCRETE(fixed = false ) "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 ($PRE.intervalMeasure.last_time,intervalMeasure.last_time,$PRE.intervalMeasure.w,intervalMeasure.w,$whenCondition2,$whenCondition1,$PRE.intervalMeasure.next_phi,intervalMeasure.next_phi,$PRE.intervalMeasure.prev_phi,intervalMeasure.prev_phi) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001185/0.2394, allocations: 116.8 kB / 478.2 MB, free: 8.863 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.274e-05/0.2395, allocations: 23.75 kB / 478.2 MB, free: 8.84 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.927e-05/0.2395, allocations: 16.7 kB / 478.2 MB, free: 8.824 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.2395, allocations: 4 kB / 478.2 MB, free: 8.82 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.2395, allocations: 0 / 478.2 MB, free: 8.82 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.2395, allocations: 0 / 478.2 MB, free: 8.82 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006499/0.2402, allocations: 0.5394 MB / 478.8 MB, free: 8.23 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.2402, allocations: 0 / 478.8 MB, free: 8.23 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002022/0.2404, allocations: 39.92 kB / 478.8 MB, free: 8.191 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.544e-06/0.2404, allocations: 4.062 kB / 478.8 MB, free: 8.188 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.653e-05/0.2404, allocations: 7.984 kB / 478.8 MB, free: 8.18 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.2405, allocations: 0 / 478.8 MB, free: 8.18 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.2405, allocations: 4 kB / 478.8 MB, free: 8.176 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003931/0.2409, allocations: 368.1 kB / 479.2 MB, free: 7.781 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.904e-05/0.2409, allocations: 89 kB / 479.3 MB, free: 7.676 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.705e-05/0.2409, allocations: 0 / 479.3 MB, free: 7.676 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000109/0.2411, allocations: 7.906 kB / 479.3 MB, free: 7.668 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.916e-05/0.2411, allocations: 23.91 kB / 479.3 MB, free: 7.645 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.44e-05/0.2411, allocations: 4 kB / 479.3 MB, free: 7.641 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.881e-05/0.2412, allocations: 99.16 kB / 479.4 MB, free: 7.547 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002672/0.2415, allocations: 39.98 kB / 479.4 MB, free: 7.508 MB / 330.7 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.w,idealSensor.flange.phi) * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001177/0.2416, allocations: 107.2 kB / 479.6 MB, free: 7.391 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002405/0.2418, allocations: 155.9 kB / 479.7 MB, free: 7.238 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.2418, allocations: 0 / 479.7 MB, free: 7.238 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001031/0.242, allocations: 75.94 kB / 479.8 MB, free: 7.164 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001428/0.2421, allocations: 5.219 kB / 479.8 MB, free: 7.16 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008425/0.2429, allocations: 0.4932 MB / 480.3 MB, free: 6.641 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003011/0.2433, allocations: 0.7513 MB / 481 MB, free: 5.855 MB / 330.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2433, allocations: 4 kB / 481 MB, free: 5.852 MB / 330.7 MB Notification: Performance of Templates: time 0.003384/0.2467, allocations: 1.494 MB / 482.5 MB, free: 4.383 MB / 330.7 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)