Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.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.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_ThreeWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_ThreeWayValves",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.742/0.742, allocations: 141.8 MB / 149.1 MB, free: 13.21 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001107/0.001108, allocations: 186.1 kB / 181.9 MB, free: 9.891 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.408/1.408, allocations: 221.3 MB / 436 MB, free: 2.359 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.001167/0.001167, allocations: 96.81 kB / 0.507 GB, free: 11.09 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00173/0.00173, allocations: 280.9 kB / 0.5885 GB, free: 7.918 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1916/0.1934, allocations: 89.65 MB / 0.676 GB, free: 14.18 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4459/0.6394, allocations: 82.77 MB / 0.7568 GB, free: 139.1 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.736/1.375, allocations: 389.5 MB / 1.137 GB, free: 14.86 MB / 0.6825 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003289/1.376, allocations: 102.2 kB / 1.137 GB, free: 14.8 MB / 0.6825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 3.982/5.358, allocations: 0.9928 GB / 2.13 GB, free: 82.62 MB / 0.7138 GB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/5.358, allocations: 15 kB / 2.13 GB, free: 82.62 MB / 0.7138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001437/5.36, allocations: 320 kB / 2.13 GB, free: 82.46 MB / 0.7138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005288/5.365, allocations: 2.44 MB / 2.133 GB, free: 81.91 MB / 0.7138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.163e-05/5.365, allocations: 51.81 kB / 2.133 GB, free: 81.91 MB / 0.7138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002146/5.365, allocations: 104.3 kB / 2.133 GB, free: 81.91 MB / 0.7138 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001849/5.367, allocations: 0.9879 MB / 2.134 GB, free: 81.9 MB / 0.7138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002062/5.369, allocations: 1.314 MB / 2.135 GB, free: 81.71 MB / 0.7138 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.851e-05/5.369, allocations: 4.688 kB / 2.135 GB, free: 81.71 MB / 0.7138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001113/5.369, allocations: 3.938 kB / 2.135 GB, free: 81.71 MB / 0.7138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-05/5.37, allocations: 42.16 kB / 2.135 GB, free: 81.71 MB / 0.7138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01052/5.38, allocations: 8.022 MB / 2.143 GB, free: 77.68 MB / 0.7138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006274/5.381, allocations: 407.1 kB / 2.143 GB, free: 77.66 MB / 0.7138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000397/5.381, allocations: 313.5 kB / 2.144 GB, free: 77.65 MB / 0.7138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005553/5.382, allocations: 0.7614 MB / 2.145 GB, free: 76.8 MB / 0.7138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.276e-05/5.382, allocations: 38.47 kB / 2.145 GB, free: 76.76 MB / 0.7138 GB Notification: Performance of pre-optimization done (n=60): time 4.137e-06/5.382, allocations: 6.75 kB / 2.145 GB, free: 76.76 MB / 0.7138 GB Notification: Performance of matching and sorting (n=60): time 0.001696/5.383, allocations: 0.7283 MB / 2.145 GB, free: 76.61 MB / 0.7138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.63e-05/5.384, allocations: 59.66 kB / 2.145 GB, free: 76.55 MB / 0.7138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002347/5.386, allocations: 1.703 MB / 2.147 GB, free: 76.3 MB / 0.7138 GB Notification: Performance of collectPreVariables (initialization): time 0.0001517/5.386, allocations: 29.58 kB / 2.147 GB, free: 76.27 MB / 0.7138 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004895/5.387, allocations: 0.7435 MB / 2.148 GB, free: 75.87 MB / 0.7138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001953/5.387, allocations: 209.9 kB / 2.148 GB, free: 75.73 MB / 0.7138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.369e-05/5.387, allocations: 0 / 2.148 GB, free: 75.73 MB / 0.7138 GB Notification: Performance of setup shared object (initialization): time 8.982e-05/5.387, allocations: 345.9 kB / 2.148 GB, free: 75.43 MB / 0.7138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004889/5.387, allocations: 310.6 kB / 2.149 GB, free: 75.43 MB / 0.7138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007066/5.388, allocations: 0.7646 MB / 2.149 GB, free: 74.9 MB / 0.7138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008757/5.389, allocations: 459.8 kB / 2.15 GB, free: 74.87 MB / 0.7138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.292e-06/5.389, allocations: 3.094 kB / 2.15 GB, free: 74.87 MB / 0.7138 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.002099/5.391, allocations: 1.128 MB / 2.151 GB, free: 74.68 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007937/5.392, allocations: 3.148 MB / 2.154 GB, free: 71.31 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.886e-05/5.392, allocations: 9.906 kB / 2.154 GB, free: 71.31 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.805e-05/5.392, allocations: 14.5 kB / 2.154 GB, free: 71.31 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001063/5.393, allocations: 261.8 kB / 2.154 GB, free: 71.3 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.602e-05/5.393, allocations: 21.3 kB / 2.154 GB, free: 71.29 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002091/5.395, allocations: 204.9 kB / 2.154 GB, free: 71.23 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001042/5.395, allocations: 52.69 kB / 2.154 GB, free: 71.23 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 1.229e-05/5.395, allocations: 3.656 kB / 2.154 GB, free: 71.23 MB / 0.7138 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001466/5.397, allocations: 0.8541 MB / 2.155 GB, free: 71.18 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/5.397, allocations: 7.656 kB / 2.155 GB, free: 71.18 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.646e-05/5.397, allocations: 17.34 kB / 2.155 GB, free: 71.18 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009858/5.398, allocations: 258.4 kB / 2.156 GB, free: 71.16 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.63e-05/5.398, allocations: 16.81 kB / 2.156 GB, free: 71.16 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002397/5.4, allocations: 169.8 kB / 2.156 GB, free: 71.11 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001124/5.4, allocations: 55.5 kB / 2.156 GB, free: 71.11 MB / 0.7138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (138): * Single equations (assignments): 138 * 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.0004001/5.401, allocations: 146.1 kB / 2.156 GB, free: 70.98 MB / 0.7138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004839/5.401, allocations: 206.8 kB / 2.156 GB, free: 70.87 MB / 0.7138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002059/5.403, allocations: 0.8542 MB / 2.157 GB, free: 70.78 MB / 0.7138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.862e-05/5.403, allocations: 9.969 kB / 2.157 GB, free: 70.78 MB / 0.7138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/5.403, allocations: 0 / 2.157 GB, free: 70.78 MB / 0.7138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001076/5.404, allocations: 0.6608 MB / 2.158 GB, free: 70.51 MB / 0.7138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005291/5.41, allocations: 2.427 MB / 2.16 GB, free: 69.42 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/5.41, allocations: 7.031 kB / 2.16 GB, free: 69.41 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006299/5.41, allocations: 144.8 kB / 2.16 GB, free: 69.41 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.021e-05/5.41, allocations: 2.875 kB / 2.16 GB, free: 69.41 MB / 0.7138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.375e-05/5.41, allocations: 21.28 kB / 2.16 GB, free: 69.4 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.292e-06/5.411, allocations: 7.594 kB / 2.16 GB, free: 69.39 MB / 0.7138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/5.411, allocations: 0 / 2.16 GB, free: 69.39 MB / 0.7138 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001897/5.412, allocations: 1.289 MB / 2.161 GB, free: 68.7 MB / 0.7138 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002257/5.415, allocations: 2.139 MB / 2.164 GB, free: 67.4 MB / 0.7138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009157/5.416, allocations: 445.2 kB / 2.164 GB, free: 67.1 MB / 0.7138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002698/5.416, allocations: 0 / 2.164 GB, free: 67.1 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001336/5.417, allocations: 156.1 kB / 2.164 GB, free: 67.09 MB / 0.7138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.119e-05/5.417, allocations: 40.45 kB / 2.164 GB, free: 67.08 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.838e-05/5.417, allocations: 37.02 kB / 2.164 GB, free: 67.07 MB / 0.7138 GB Notification: Performance of sort global known variables: time 0.001929/5.419, allocations: 1.247 MB / 2.165 GB, free: 66.53 MB / 0.7138 GB Notification: Performance of remove unused functions: time 0.005914/5.425, allocations: 1.56 MB / 2.167 GB, free: 65.93 MB / 0.7138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (valLin.vol.dynBal.U,valEquPerLin.vol.dynBal.U,valTab.vol.dynBal.U) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.002238/5.428, allocations: 1.198 MB / 2.168 GB, free: 65.61 MB / 0.7138 GB Notification: Performance of simCode: created initialization part: time 0.002286/5.43, allocations: 1.324 MB / 2.169 GB, free: 65.13 MB / 0.7138 GB Notification: Performance of simCode: created event and clocks part: time 6.092e-06/5.43, allocations: 0 / 2.169 GB, free: 65.13 MB / 0.7138 GB Notification: Performance of simCode: created simulation system equations: time 0.0004062/5.43, allocations: 315.4 kB / 2.17 GB, free: 65.02 MB / 0.7138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007033/5.437, allocations: 1.225 MB / 2.171 GB, free: 64.83 MB / 0.7138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007815/5.445, allocations: 2.856 MB / 2.174 GB, free: 63.73 MB / 0.7138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002385/5.448, allocations: 1.833 MB / 2.175 GB, free: 62.93 MB / 0.7138 GB Notification: Performance of SimCode: time 1.002e-06/5.448, allocations: 0 / 2.175 GB, free: 62.93 MB / 0.7138 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_ThreeWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_ThreeWayValves.fmu > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)