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: "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithIntervalMeasure",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithIntervalMeasure",fmuType="me",version="2.0",platforms={"static"}) [: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.001971/0.001971, allocations: 181 kB / 7.457 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.9728/0.9728, allocations: 194.2 MB / 202.1 MB, free: 8.668 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03263/0.03263, allocations: 7.92 MB / 254.9 MB, free: 1.711 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.001526/0.001526, allocations: 121.1 kB / 301.5 MB, free: 3.312 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08528/0.08684, allocations: 52.32 MB / 353.9 MB, free: 14.86 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1705/0.2574, allocations: 46.19 MB / 400 MB, free: 70.26 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06557/0.323, allocations: 71.82 MB / 471.9 MB, free: 15.54 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001659/0.3232, allocations: 59.92 kB / 471.9 MB, free: 15.48 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.007224/0.3305, allocations: 2.965 MB / 474.9 MB, free: 12.48 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.3305, allocations: 13 kB / 474.9 MB, free: 12.46 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.303e-05/0.3306, allocations: 23.72 kB / 474.9 MB, free: 12.44 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001434/0.3307, allocations: 183 kB / 475.1 MB, free: 12.22 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.159e-05/0.3308, allocations: 8 kB / 475.1 MB, free: 12.21 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.338e-05/0.3308, allocations: 19.89 kB / 475.1 MB, free: 12.2 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001987/0.331, allocations: 96.88 kB / 475.2 MB, free: 12.1 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002476/0.3313, allocations: 162.4 kB / 475.4 MB, free: 11.94 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.3313, allocations: 0 / 475.4 MB, free: 11.94 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.679e-05/0.3313, allocations: 0 / 475.4 MB, free: 11.94 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.634e-06/0.3313, allocations: 4 kB / 475.4 MB, free: 11.93 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009991/0.3323, allocations: 0.6857 MB / 476.1 MB, free: 11.2 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001666/0.3325, allocations: 112.3 kB / 476.2 MB, free: 11.09 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002219/0.3328, allocations: 109.2 kB / 476.3 MB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.551e-05/0.3328, allocations: 4 kB / 476.3 MB, free: 10.97 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001693/0.333, allocations: 109.7 kB / 476.4 MB, free: 10.85 MB / 330.7 MB Notification: Performance of pre-optimization done (n=21): time 1.743e-06/0.333, allocations: 0 / 476.4 MB, free: 10.85 MB / 330.7 MB Notification: Performance of matching and sorting (n=23): time 0.0008882/0.3339, allocations: 0.5023 MB / 476.9 MB, free: 10.3 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.71e-05/0.3339, allocations: 67.25 kB / 477 MB, free: 10.22 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.482e-05/0.334, allocations: 116.9 kB / 477.1 MB, free: 10.1 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.098e-05/0.334, allocations: 25.7 kB / 477.1 MB, free: 10.07 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.47e-05/0.3341, allocations: 136.1 kB / 477.2 MB, free: 9.934 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.97e-05/0.3342, allocations: 70.91 kB / 477.3 MB, free: 9.863 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.035e-06/0.3342, allocations: 8 kB / 477.3 MB, free: 9.855 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001086/0.3343, allocations: 322.8 kB / 477.6 MB, free: 9.531 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.032e-05/0.3344, allocations: 52 kB / 477.7 MB, free: 9.48 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001266/0.3345, allocations: 112 kB / 477.8 MB, free: 9.34 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001239/0.3347, allocations: 73.08 kB / 477.9 MB, free: 9.27 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/0.3347, allocations: 0 / 477.9 MB, free: 9.27 MB / 330.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0002838/0.335, allocations: 213 kB / 478.1 MB, free: 9.059 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.335, allocations: 16.05 kB / 478.1 MB, free: 9.043 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.335, allocations: 0 / 478.1 MB, free: 9.043 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.335, allocations: 4 kB / 478.1 MB, free: 9.039 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002205/0.3352, allocations: 59.92 kB / 478.2 MB, free: 8.98 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.3353, allocations: 11.92 kB / 478.2 MB, free: 8.969 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.054e-05/0.3353, allocations: 7.906 kB / 478.2 MB, free: 8.961 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.841e-05/0.3354, allocations: 16 kB / 478.2 MB, free: 8.945 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.0001235/0.3355, allocations: 116.7 kB / 478.3 MB, free: 8.824 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.433e-05/0.3355, allocations: 11.81 kB / 478.3 MB, free: 8.812 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.264e-05/0.3356, allocations: 16.72 kB / 478.3 MB, free: 8.797 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.583e-06/0.3356, allocations: 4 kB / 478.3 MB, free: 8.793 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.3356, allocations: 3.984 kB / 478.3 MB, free: 8.789 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.3356, allocations: 3.938 kB / 478.3 MB, free: 8.785 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006494/0.3363, allocations: 0.5355 MB / 478.9 MB, free: 8.199 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.3363, allocations: 0 / 478.9 MB, free: 8.199 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001993/0.3365, allocations: 39.98 kB / 478.9 MB, free: 8.16 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.811e-06/0.3365, allocations: 4.062 kB / 478.9 MB, free: 8.156 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.597e-05/0.3365, allocations: 7.984 kB / 478.9 MB, free: 8.148 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.3365, allocations: 0 / 478.9 MB, free: 8.148 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.3365, allocations: 4 kB / 478.9 MB, free: 8.145 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000363/0.3369, allocations: 372.1 kB / 479.3 MB, free: 7.746 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000501/0.3374, allocations: 0.7834 MB / 480.1 MB, free: 6.926 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.488e-05/0.3375, allocations: 92.86 kB / 480.2 MB, free: 6.816 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.847e-05/0.3375, allocations: 7.984 kB / 480.2 MB, free: 6.809 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000105/0.3376, allocations: 4 kB / 480.2 MB, free: 6.805 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.923e-05/0.3377, allocations: 15.98 kB / 480.2 MB, free: 6.789 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.679e-05/0.3377, allocations: 7.984 kB / 480.2 MB, free: 6.781 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.973e-05/0.3377, allocations: 98.84 kB / 480.3 MB, free: 6.688 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007977/0.3385, allocations: 43.91 kB / 480.3 MB, free: 6.645 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.0001087/0.3387, allocations: 103.2 kB / 480.4 MB, free: 6.531 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002366/0.3389, allocations: 157.1 kB / 480.6 MB, free: 6.379 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.3389, allocations: 0 / 480.6 MB, free: 6.379 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001086/0.339, allocations: 83.86 kB / 480.7 MB, free: 6.297 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001461/0.3392, allocations: 4 kB / 480.7 MB, free: 6.293 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008741/0.3401, allocations: 0.4896 MB / 481.2 MB, free: 5.777 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000301/0.3404, allocations: 0.7552 MB / 481.9 MB, free: 4.988 MB / 330.7 MB Notification: Performance of SimCode: time 2.8e-07/0.3404, allocations: 0 / 481.9 MB, free: 4.988 MB / 330.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithIntervalMeasure_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithIntervalMeasure.fmu > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.pipe 2>&1)