Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.Pressure.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.Pressure,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_Pressure",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Sensors.Examples.Pressure,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_Pressure",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.7784/0.7784, allocations: 141.8 MB / 149.1 MB, free: 2.004 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.001141/0.001141, allocations: 177.3 kB / 182 MB, free: 1.461 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.431/1.431, allocations: 221.4 MB / 436 MB, free: 6.129 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.001012/0.001012, allocations: 107.9 kB / 0.5071 GB, free: 2.809 MB / 410.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001828/0.001828, allocations: 277.1 kB / 0.5885 GB, free: 47.82 MB / 410.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1659/0.1678, allocations: 89.63 MB / 0.676 GB, free: 6.109 MB / 458.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3805/0.5483, allocations: 82.77 MB / 0.7568 GB, free: 25.23 MB / 458.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.295/3.844, allocations: 1.83 GB / 2.587 GB, free: 146.7 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002246/3.844, allocations: 90.94 kB / 2.587 GB, free: 146.6 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.885/4.729, allocations: 346.8 MB / 2.925 GB, free: 79.96 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/4.729, allocations: 11.94 kB / 2.925 GB, free: 79.95 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004218/4.729, allocations: 79.47 kB / 2.925 GB, free: 79.88 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005036/4.73, allocations: 318.2 kB / 2.926 GB, free: 79.53 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.417e-05/4.73, allocations: 8 kB / 2.926 GB, free: 79.52 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.525e-05/4.73, allocations: 12 kB / 2.926 GB, free: 79.51 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00022/4.73, allocations: 120.8 kB / 2.926 GB, free: 79.39 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003135/4.73, allocations: 251.8 kB / 2.926 GB, free: 79.11 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/4.73, allocations: 3.938 kB / 2.926 GB, free: 79.1 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.034e-05/4.731, allocations: 0 / 2.926 GB, free: 79.1 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.909e-06/4.731, allocations: 8 kB / 2.926 GB, free: 79.09 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001371/4.732, allocations: 1.675 MB / 2.928 GB, free: 77.32 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001682/4.732, allocations: 74.62 kB / 2.928 GB, free: 77.24 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.175e-05/4.732, allocations: 57.06 kB / 2.928 GB, free: 77.18 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002383/4.732, allocations: 194.1 kB / 2.928 GB, free: 76.95 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.41e-05/4.732, allocations: 38.47 kB / 2.928 GB, free: 76.91 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=11): time 1.864e-06/4.732, allocations: 0 / 2.928 GB, free: 76.91 MB / 0.6982 GB Notification: Performance of matching and sorting (n=11): time 0.0004519/4.733, allocations: 157.2 kB / 2.928 GB, free: 76.75 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.161e-05/4.733, allocations: 51.41 kB / 2.928 GB, free: 76.68 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001691/4.733, allocations: 219.4 kB / 2.928 GB, free: 76.46 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 1.81e-05/4.733, allocations: 29.7 kB / 2.928 GB, free: 76.43 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 6.033e-05/4.733, allocations: 175.7 kB / 2.929 GB, free: 76.25 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 2.024e-05/4.733, allocations: 43.39 kB / 2.929 GB, free: 76.21 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.105e-06/4.733, allocations: 0 / 2.929 GB, free: 76.21 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 5.135e-05/4.733, allocations: 334.8 kB / 2.929 GB, free: 75.88 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.134e-05/4.733, allocations: 36 kB / 2.929 GB, free: 75.84 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001208/4.734, allocations: 183.4 kB / 2.929 GB, free: 75.59 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.169e-05/4.734, allocations: 76.5 kB / 2.929 GB, free: 75.52 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/4.734, allocations: 4 kB / 2.929 GB, free: 75.51 MB / 0.6982 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002611/4.734, allocations: 197 kB / 2.929 GB, free: 75.31 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002244/4.734, allocations: 1.395 MB / 2.931 GB, free: 73.81 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/4.734, allocations: 7.938 kB / 2.931 GB, free: 73.8 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/4.734, allocations: 8 kB / 2.931 GB, free: 73.79 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001972/4.734, allocations: 55.91 kB / 2.931 GB, free: 73.74 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.136e-06/4.734, allocations: 11.92 kB / 2.931 GB, free: 73.73 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002691/4.735, allocations: 35.73 kB / 2.931 GB, free: 73.69 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.045e-05/4.735, allocations: 15.98 kB / 2.931 GB, free: 73.68 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 5.691e-06/4.735, allocations: 4 kB / 2.931 GB, free: 73.67 MB / 0.6982 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001909/4.735, allocations: 135.9 kB / 2.931 GB, free: 73.54 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.735e-06/4.735, allocations: 8.094 kB / 2.931 GB, free: 73.53 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.779e-06/4.735, allocations: 8 kB / 2.931 GB, free: 73.52 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001742/4.735, allocations: 51.91 kB / 2.931 GB, free: 73.47 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.258e-06/4.735, allocations: 8 kB / 2.931 GB, free: 73.46 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002364/4.735, allocations: 35.81 kB / 2.931 GB, free: 73.43 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.984e-05/4.735, allocations: 12 kB / 2.931 GB, free: 73.42 MB / 0.6982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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 6.455e-05/4.735, allocations: 116.8 kB / 2.931 GB, free: 73.3 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.244e-05/4.735, allocations: 23.72 kB / 2.931 GB, free: 73.27 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002074/4.736, allocations: 127.5 kB / 2.931 GB, free: 73.14 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/4.736, allocations: 96 / 2.931 GB, free: 73.14 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/4.736, allocations: 3.938 kB / 2.931 GB, free: 73.14 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.087e-06/4.736, allocations: 7.938 kB / 2.931 GB, free: 73.13 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005848/4.736, allocations: 0.5437 MB / 2.932 GB, free: 72.52 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/4.736, allocations: 7.938 kB / 2.932 GB, free: 72.51 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001327/4.736, allocations: 31.92 kB / 2.932 GB, free: 72.48 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.937e-06/4.736, allocations: 4.328 kB / 2.932 GB, free: 72.48 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.189e-05/4.737, allocations: 4 kB / 2.932 GB, free: 72.47 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.836e-06/4.737, allocations: 4 kB / 2.932 GB, free: 72.47 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/4.737, allocations: 0 / 2.932 GB, free: 72.47 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002079/4.737, allocations: 361.2 kB / 2.932 GB, free: 72.04 MB / 0.6982 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004082/4.737, allocations: 0.7749 MB / 2.933 GB, free: 71.18 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 7.619e-05/4.737, allocations: 112.7 kB / 2.933 GB, free: 71.05 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.969e-05/4.737, allocations: 4 kB / 2.933 GB, free: 71.04 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002114/4.737, allocations: 23.97 kB / 2.933 GB, free: 71.02 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.186e-05/4.738, allocations: 8 kB / 2.933 GB, free: 71.01 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.528e-06/4.738, allocations: 7.906 kB / 2.933 GB, free: 71 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.0001191/4.738, allocations: 175.1 kB / 2.933 GB, free: 70.84 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.002375/4.74, allocations: 0.5074 MB / 2.934 GB, free: 70.33 MB / 0.6982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.001498/4.742, allocations: 1.411 MB / 2.935 GB, free: 68.88 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.0003014/4.742, allocations: 198.6 kB / 2.936 GB, free: 68.69 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/4.742, allocations: 4.062 kB / 2.936 GB, free: 68.68 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 7.174e-05/4.742, allocations: 51.86 kB / 2.936 GB, free: 68.63 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006286/4.743, allocations: 103.9 kB / 2.936 GB, free: 68.53 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005591/4.743, allocations: 350.3 kB / 2.936 GB, free: 68.14 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002315/4.743, allocations: 0.8147 MB / 2.937 GB, free: 67.3 MB / 0.6982 GB Notification: Performance of SimCode: time 2.6e-07/4.743, allocations: 0 / 2.937 GB, free: 67.3 MB / 0.6982 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.Pressure.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.Pressure.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.Pressure.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.Pressure.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_Pressure_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_Pressure.fmu > BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.Pressure.pipe 2>&1)