Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.Velocity.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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 4.0.0+maint.om/package.mo", uses=false) 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/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Sensors.Examples.Velocity,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_Velocity",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Sensors.Examples.Velocity,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_Velocity",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/BuildingSystems 2.0.0-master/package.mo): time 0.7234/0.7234, allocations: 141.8 MB / 149.1 MB, free: 1.254 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001028/0.001028, allocations: 193.2 kB / 182 MB, free: 0.5508 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.248/1.248, allocations: 221.4 MB / 436 MB, free: 5.355 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001226/0.001226, allocations: 100.7 kB / 0.507 GB, free: 2.035 MB / 410.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001627/0.001627, allocations: 283.7 kB / 0.5885 GB, free: 47.08 MB / 410.9 MB Notification: Performance of FrontEnd - loaded program: time 0.3306/0.3322, allocations: 89.62 MB / 0.676 GB, free: 59.45 MB / 442.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1508/0.483, allocations: 82.79 MB / 0.7568 GB, free: 436 kB / 442.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.223/3.706, allocations: 1.866 GB / 2.623 GB, free: 100.6 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002593/3.706, allocations: 91.81 kB / 2.623 GB, free: 100.5 MB / 0.6982 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.7553/4.462, allocations: 247.1 MB / 2.864 GB, free: 128.8 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/4.462, allocations: 12 kB / 2.864 GB, free: 128.8 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001462/4.463, allocations: 163.4 kB / 2.864 GB, free: 128.6 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006324/4.464, allocations: 358.1 kB / 2.865 GB, free: 128.2 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.787e-05/4.464, allocations: 8 kB / 2.865 GB, free: 128.2 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.841e-05/4.464, allocations: 12 kB / 2.865 GB, free: 128.2 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003674/4.464, allocations: 212.8 kB / 2.865 GB, free: 128 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003609/4.465, allocations: 262.5 kB / 2.865 GB, free: 127.7 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.364e-05/4.465, allocations: 3.938 kB / 2.865 GB, free: 127.7 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.43e-05/4.465, allocations: 4 kB / 2.865 GB, free: 127.7 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/4.465, allocations: 4 kB / 2.865 GB, free: 127.7 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001452/4.466, allocations: 1.107 MB / 2.866 GB, free: 126.5 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003695/4.467, allocations: 227 kB / 2.866 GB, free: 126.3 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001473/4.467, allocations: 109.2 kB / 2.867 GB, free: 126.2 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005909/4.467, allocations: 477.6 kB / 2.867 GB, free: 125.6 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.388e-05/4.467, allocations: 34.69 kB / 2.867 GB, free: 125.6 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=21): time 2.324e-06/4.467, allocations: 0 / 2.867 GB, free: 125.6 MB / 0.6982 GB Notification: Performance of matching and sorting (n=21): time 0.0009948/4.468, allocations: 267.4 kB / 2.867 GB, free: 125.3 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.218e-05/4.469, allocations: 63.25 kB / 2.867 GB, free: 125.3 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001726/4.469, allocations: 197.1 kB / 2.868 GB, free: 125.1 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 2.132e-05/4.469, allocations: 25.7 kB / 2.868 GB, free: 125 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 6.957e-05/4.469, allocations: 148.3 kB / 2.868 GB, free: 124.9 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 4.471e-05/4.469, allocations: 74.91 kB / 2.868 GB, free: 124.8 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.989e-06/4.469, allocations: 0 / 2.868 GB, free: 124.8 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 7.375e-05/4.469, allocations: 334.8 kB / 2.868 GB, free: 124.5 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.138e-05/4.469, allocations: 43.98 kB / 2.868 GB, free: 124.4 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001131/4.469, allocations: 116.4 kB / 2.868 GB, free: 124.3 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002377/4.469, allocations: 103.8 kB / 2.868 GB, free: 124.2 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/4.469, allocations: 3.938 kB / 2.868 GB, free: 124.2 MB / 0.6982 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004016/4.47, allocations: 229.2 kB / 2.869 GB, free: 124 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/4.47, allocations: 4.094 kB / 2.869 GB, free: 124 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/4.47, allocations: 8 kB / 2.869 GB, free: 124 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/4.47, allocations: 3.906 kB / 2.869 GB, free: 123.9 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002243/4.47, allocations: 55.91 kB / 2.869 GB, free: 123.9 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.636e-06/4.47, allocations: 64 / 2.869 GB, free: 123.9 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002176/4.47, allocations: 35.83 kB / 2.869 GB, free: 123.9 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.608e-05/4.47, allocations: 11.98 kB / 2.869 GB, free: 123.8 MB / 0.6982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * 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 7.392e-05/4.47, allocations: 109 kB / 2.869 GB, free: 123.7 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.351e-05/4.471, allocations: 27.62 kB / 2.869 GB, free: 123.7 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004425/4.471, allocations: 227.5 kB / 2.869 GB, free: 123.5 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/4.471, allocations: 4 kB / 2.869 GB, free: 123.5 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/4.471, allocations: 4 kB / 2.869 GB, free: 123.5 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.123e-06/4.471, allocations: 0 / 2.869 GB, free: 123.5 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001027/4.472, allocations: 0.7106 MB / 2.87 GB, free: 122.7 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/4.472, allocations: 4 kB / 2.87 GB, free: 122.7 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002182/4.472, allocations: 43.91 kB / 2.87 GB, free: 122.6 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.811e-06/4.472, allocations: 8.344 kB / 2.87 GB, free: 122.6 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.926e-05/4.472, allocations: 8 kB / 2.87 GB, free: 122.6 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.598e-06/4.472, allocations: 7.906 kB / 2.87 GB, free: 122.6 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/4.472, allocations: 3.938 kB / 2.87 GB, free: 122.6 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005944/4.473, allocations: 0.5896 MB / 2.87 GB, free: 121.9 MB / 0.6982 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008873/4.474, allocations: 1.101 MB / 2.871 GB, free: 120.7 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001042/4.474, allocations: 124.8 kB / 2.872 GB, free: 120.5 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.641e-05/4.474, allocations: 4 kB / 2.872 GB, free: 120.5 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002272/4.474, allocations: 23.95 kB / 2.872 GB, free: 120.5 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.455e-05/4.474, allocations: 20.06 kB / 2.872 GB, free: 120.5 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.441e-05/4.474, allocations: 11.98 kB / 2.872 GB, free: 120.5 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.0001162/4.474, allocations: 157.2 kB / 2.872 GB, free: 120.3 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.00141/4.476, allocations: 263.8 kB / 2.872 GB, free: 120.1 MB / 0.6982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 1 (senDyn.d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 21 * 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 Backend phase and start with SimCode phase: time 0.001504/4.477, allocations: 1.199 MB / 2.873 GB, free: 118.9 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.0002647/4.478, allocations: 139.8 kB / 2.873 GB, free: 118.7 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/4.478, allocations: 0 / 2.873 GB, free: 118.7 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0001208/4.478, allocations: 83.86 kB / 2.873 GB, free: 118.7 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006588/4.478, allocations: 129.4 kB / 2.874 GB, free: 118.5 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007901/4.479, allocations: 463.9 kB / 2.874 GB, free: 118 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003027/4.48, allocations: 0.818 MB / 2.875 GB, free: 117.2 MB / 0.6982 GB Notification: Performance of SimCode: time 2.8e-07/4.48, allocations: 4 kB / 2.875 GB, free: 117.2 MB / 0.6982 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.Velocity.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.Velocity.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.Velocity.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.Velocity.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_Velocity_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_Velocity.fmu > BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.Velocity.pipe 2>&1)