Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.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.PlantWithPulseCounter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter") translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter") [: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.002121/0.002121, allocations: 185.7 kB / 7.458 MB, free: 2.512 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.9741/0.9741, allocations: 194.2 MB / 202.1 MB, free: 8.672 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03294/0.03294, allocations: 7.919 MB / 254.9 MB, free: 1.719 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.001496/0.001496, allocations: 121.1 kB / 301.5 MB, free: 3.309 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 6.713e-06/6.753e-06, allocations: 0 / 353.8 MB, free: 14.97 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1584/0.1584, allocations: 46.19 MB / 400 MB, free: 70.3 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06457/0.223, allocations: 71.9 MB / 471.8 MB, free: 15.52 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001261/0.2232, allocations: 47.98 kB / 471.9 MB, free: 15.48 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.007202/0.2304, allocations: 2.58 MB / 474.5 MB, free: 12.89 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.091e-05/0.2305, allocations: 4 kB / 474.5 MB, free: 12.89 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.0005669/0.2311, allocations: 456.1 kB / 474.9 MB, free: 12.39 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.2311, allocations: 17.22 kB / 474.9 MB, free: 12.38 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.104e-05/0.2312, allocations: 19.72 kB / 475 MB, free: 12.36 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001551/0.2313, allocations: 186.8 kB / 475.1 MB, free: 12.13 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.918e-05/0.2314, allocations: 11.91 kB / 475.2 MB, free: 12.12 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.569e-05/0.2314, allocations: 15.98 kB / 475.2 MB, free: 12.11 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002118/0.2316, allocations: 96.8 kB / 475.3 MB, free: 12.01 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002405/0.2319, allocations: 145.8 kB / 475.4 MB, free: 11.87 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.608e-05/0.2319, allocations: 0 / 475.4 MB, free: 11.87 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.875e-05/0.2319, allocations: 4 kB / 475.4 MB, free: 11.86 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.185e-06/0.2319, allocations: 4 kB / 475.4 MB, free: 11.86 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001055/0.233, allocations: 0.6857 MB / 476.1 MB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001283/0.2331, allocations: 93.58 kB / 476.2 MB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002286/0.2334, allocations: 116.8 kB / 476.3 MB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.39e-05/0.2334, allocations: 0 / 476.3 MB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001642/0.2336, allocations: 166.9 kB / 476.5 MB, free: 10.72 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 1.272e-06/0.2336, allocations: 0 / 476.5 MB, free: 10.72 MB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008728/0.2345, allocations: 0.5221 MB / 477 MB, free: 10.15 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.796e-05/0.2345, allocations: 140.7 kB / 477.1 MB, free: 9.98 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.591e-05/0.2346, allocations: 120.9 kB / 477.2 MB, free: 9.855 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.961e-05/0.2347, allocations: 25.7 kB / 477.3 MB, free: 9.824 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.397e-05/0.2347, allocations: 136.1 kB / 477.4 MB, free: 9.688 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.249e-05/0.2348, allocations: 78.91 kB / 477.5 MB, free: 9.609 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.726e-06/0.2348, allocations: 0 / 477.5 MB, free: 9.609 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001094/0.2349, allocations: 330.8 kB / 477.8 MB, free: 9.277 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001082/0.235, allocations: 51.94 kB / 477.9 MB, free: 9.227 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001234/0.2352, allocations: 115.7 kB / 478 MB, free: 9.086 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001262/0.2353, allocations: 76.84 kB / 478 MB, free: 9.008 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.2353, allocations: 0 / 478 MB, free: 9.008 MB / 330.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003054/0.2356, allocations: 213.3 kB / 478.2 MB, free: 8.797 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.202e-05/0.2356, allocations: 12.25 kB / 478.3 MB, free: 8.785 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.2357, allocations: 0 / 478.3 MB, free: 8.785 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.2357, allocations: 4 kB / 478.3 MB, free: 8.781 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002175/0.2359, allocations: 63.86 kB / 478.3 MB, free: 8.719 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.2359, allocations: 7.984 kB / 478.3 MB, free: 8.711 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.238e-05/0.236, allocations: 7.906 kB / 478.3 MB, free: 8.703 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.737e-05/0.236, allocations: 8 kB / 478.4 MB, free: 8.695 MB / 330.7 MB Warning: Assuming fixed start value for the following 1 variables: pulseCounter.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: 11 ($PRE.pulseCounter.w,pulseCounter.w,$PRE.pulseCounter.count,pulseCounter.count,$whenCondition2,$whenCondition1,$whenCondition3,$PRE.pulseCounter.next_phi,pulseCounter.next_phi,$PRE.pulseCounter.prev_phi,pulseCounter.prev_phi) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 1 * 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.0001541/0.2362, allocations: 158.3 kB / 478.5 MB, free: 8.527 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.674e-05/0.2362, allocations: 15.81 kB / 478.5 MB, free: 8.512 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.833e-05/0.2363, allocations: 16.72 kB / 478.5 MB, free: 8.496 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.255e-06/0.2363, allocations: 0 / 478.5 MB, free: 8.496 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.2363, allocations: 4 kB / 478.5 MB, free: 8.492 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.2363, allocations: 0 / 478.5 MB, free: 8.492 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007447/0.2371, allocations: 0.5826 MB / 479.1 MB, free: 7.863 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.2371, allocations: 3.938 kB / 479.1 MB, free: 7.859 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001975/0.2373, allocations: 39.97 kB / 479.2 MB, free: 7.82 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.2373, allocations: 0 / 479.2 MB, free: 7.82 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.82e-05/0.2373, allocations: 8.062 kB / 479.2 MB, free: 7.812 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.2373, allocations: 4 kB / 479.2 MB, free: 7.809 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.2373, allocations: 0 / 479.2 MB, free: 7.809 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00042/0.2377, allocations: 392.2 kB / 479.6 MB, free: 7.391 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.271e-05/0.2378, allocations: 93.08 kB / 479.7 MB, free: 7.281 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.828e-05/0.2378, allocations: 7.984 kB / 479.7 MB, free: 7.273 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001172/0.238, allocations: 4 kB / 479.7 MB, free: 7.27 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.662e-05/0.238, allocations: 15.98 kB / 479.7 MB, free: 7.254 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.091e-05/0.238, allocations: 4 kB / 479.7 MB, free: 7.25 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.611e-05/0.2381, allocations: 99.27 kB / 479.8 MB, free: 7.152 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002786/0.2384, allocations: 44 kB / 479.8 MB, free: 7.109 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: 7 ($whenCondition2,$whenCondition1,$whenCondition3,pulseCounter.w,pulseCounter.next_phi,pulseCounter.prev_phi,pulseCounter.count) * Number of discrete states: 7 (pulseCounter.w,$whenCondition3,pulseCounter.count,pulseCounter.prev_phi,pulseCounter.next_phi,$whenCondition2,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.0001342/0.2385, allocations: 119.1 kB / 479.9 MB, free: 6.98 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002707/0.2388, allocations: 190.9 kB / 480.1 MB, free: 6.789 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.2388, allocations: 3.938 kB / 480.1 MB, free: 6.785 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001612/0.239, allocations: 157.6 kB / 480.3 MB, free: 6.625 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001472/0.2391, allocations: 7.906 kB / 480.3 MB, free: 6.617 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00089/0.24, allocations: 0.4975 MB / 480.8 MB, free: 6.09 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003234/0.2404, allocations: 0.748 MB / 481.5 MB, free: 5.312 MB / 330.7 MB Notification: Performance of SimCode: time 2.21e-07/0.2404, allocations: 0 / 481.5 MB, free: 5.312 MB / 330.7 MB Notification: Performance of Templates: time 0.00373/0.2441, allocations: 1.58 MB / 483.1 MB, free: 3.742 MB / 330.7 MB make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.makefile (rm -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.pipe >> ../files/ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.sim & ./ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.pipe 2>&1)