Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.conf.json 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/IBPSA 4.0.0-master/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) 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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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) Running command: translateModel(IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves") translateModel(IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves") [: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 4.0.0+maint.om/package.mo): time 0.001136/0.001135, allocations: 188.9 kB / 7.804 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4425/0.4425, allocations: 90.85 MB / 99.08 MB, free: 14.95 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.303/1.303, allocations: 221.4 MB / 342.8 MB, free: 5.488 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009534/0.0009532, allocations: 105.4 kB / 415.5 MB, free: 6.426 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 1.162e-05/1.189e-05, allocations: 4 kB / 493.9 MB, free: 8.07 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3204/0.3204, allocations: 72.3 MB / 0.5529 GB, free: 73.59 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5355/0.8559, allocations: 382.5 MB / 0.9265 GB, free: 8.504 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002575/0.8562, allocations: 101.4 kB / 0.9266 GB, free: 8.453 MB / 0.5886 GB Notification: Performance of FrontEnd: time 3.542/4.398, allocations: 0.9942 GB / 1.921 GB, free: 57.04 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 0.0003092/4.399, allocations: 81.83 kB / 1.921 GB, free: 57.04 MB / 0.6355 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 0.004855/4.404, allocations: 2.575 MB / 1.923 GB, free: 56.13 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/4.404, allocations: 7.281 kB / 1.923 GB, free: 56.13 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007692/4.404, allocations: 324.9 kB / 1.924 GB, free: 55.98 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004318/4.409, allocations: 2.491 MB / 1.926 GB, free: 55.57 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.431e-05/4.409, allocations: 49.78 kB / 1.926 GB, free: 55.57 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001924/4.409, allocations: 104.1 kB / 1.926 GB, free: 55.57 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001748/4.411, allocations: 0.9893 MB / 1.927 GB, free: 55.56 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002006/4.413, allocations: 1.314 MB / 1.928 GB, free: 55.38 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.682e-05/4.413, allocations: 3.375 kB / 1.929 GB, free: 55.38 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001007/4.413, allocations: 7.75 kB / 1.929 GB, free: 55.38 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.391e-05/4.413, allocations: 35.53 kB / 1.929 GB, free: 55.38 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009264/4.422, allocations: 8.034 MB / 1.936 GB, free: 51.49 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005778/4.423, allocations: 407.2 kB / 1.937 GB, free: 51.48 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004102/4.423, allocations: 312.7 kB / 1.937 GB, free: 51.46 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005682/4.424, allocations: 0.7561 MB / 1.938 GB, free: 50.62 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.523e-05/4.424, allocations: 48.81 kB / 1.938 GB, free: 50.58 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=60): time 2.635e-06/4.424, allocations: 0 / 1.938 GB, free: 50.58 MB / 0.6355 GB Notification: Performance of matching and sorting (n=60): time 0.001544/4.425, allocations: 0.7349 MB / 1.939 GB, free: 50.43 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.265e-05/4.426, allocations: 59.44 kB / 1.939 GB, free: 50.37 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002371/4.428, allocations: 1.715 MB / 1.94 GB, free: 50.14 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 0.0001106/4.428, allocations: 28.55 kB / 1.94 GB, free: 50.11 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.000535/4.429, allocations: 0.7504 MB / 1.941 GB, free: 49.7 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001903/4.429, allocations: 208.7 kB / 1.941 GB, free: 49.56 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.423e-05/4.429, allocations: 0 / 1.941 GB, free: 49.56 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001011/4.429, allocations: 347.2 kB / 1.942 GB, free: 49.26 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004829/4.429, allocations: 308 kB / 1.942 GB, free: 49.26 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007342/4.43, allocations: 0.7628 MB / 1.943 GB, free: 48.75 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008106/4.431, allocations: 464.4 kB / 1.943 GB, free: 48.73 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/4.431, allocations: 0 / 1.943 GB, free: 48.73 MB / 0.6355 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.001796/4.433, allocations: 1.137 MB / 1.944 GB, free: 48.58 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007738/4.434, allocations: 3.154 MB / 1.947 GB, free: 45.22 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.476e-05/4.434, allocations: 6.875 kB / 1.947 GB, free: 45.22 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.009e-05/4.434, allocations: 15.28 kB / 1.947 GB, free: 45.22 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001021/4.435, allocations: 259.2 kB / 1.948 GB, free: 45.22 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.157e-05/4.435, allocations: 28.23 kB / 1.948 GB, free: 45.21 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00189/4.437, allocations: 188.9 kB / 1.948 GB, free: 45.16 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000101/4.437, allocations: 54.61 kB / 1.948 GB, free: 45.16 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 8.235e-06/4.437, allocations: 5.375 kB / 1.948 GB, free: 45.16 MB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001367/4.438, allocations: 0.857 MB / 1.949 GB, free: 45.14 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/4.438, allocations: 9.875 kB / 1.949 GB, free: 45.14 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.256e-05/4.438, allocations: 16.14 kB / 1.949 GB, free: 45.14 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009279/4.439, allocations: 255.4 kB / 1.949 GB, free: 45.14 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.205e-05/4.439, allocations: 15.44 kB / 1.949 GB, free: 45.14 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001402/4.44, allocations: 174.2 kB / 1.949 GB, free: 45.09 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.897e-05/4.441, allocations: 54.67 kB / 1.949 GB, free: 45.09 MB / 0.6355 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.0002215/4.441, allocations: 136.7 kB / 1.949 GB, free: 44.98 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003109/4.441, allocations: 205.9 kB / 1.949 GB, free: 44.87 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001941/4.443, allocations: 0.8624 MB / 1.95 GB, free: 44.8 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-05/4.443, allocations: 8.438 kB / 1.95 GB, free: 44.8 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.184e-06/4.443, allocations: 0 / 1.95 GB, free: 44.8 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009916/4.444, allocations: 0.6643 MB / 1.951 GB, free: 44.64 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004518/4.449, allocations: 2.431 MB / 1.953 GB, free: 44.27 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.221e-06/4.449, allocations: 1.812 kB / 1.953 GB, free: 44.27 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006265/4.449, allocations: 152.3 kB / 1.953 GB, free: 44.27 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.007e-06/4.449, allocations: 3.906 kB / 1.953 GB, free: 44.27 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.534e-05/4.449, allocations: 13.88 kB / 1.954 GB, free: 44.27 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.516e-06/4.449, allocations: 3.469 kB / 1.954 GB, free: 44.27 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.16e-06/4.449, allocations: 6.047 kB / 1.954 GB, free: 44.27 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001877/4.451, allocations: 1.292 MB / 1.955 GB, free: 43.9 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009021/4.452, allocations: 446.8 kB / 1.955 GB, free: 43.68 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002659/4.452, allocations: 3.438 kB / 1.955 GB, free: 43.68 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001315/4.454, allocations: 152.4 kB / 1.955 GB, free: 43.67 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001063/4.454, allocations: 47.78 kB / 1.955 GB, free: 43.67 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.531e-05/4.454, allocations: 34.56 kB / 1.955 GB, free: 43.67 MB / 0.6355 GB Notification: Performance of sort global known variables: time 0.001909/4.456, allocations: 1.265 MB / 1.957 GB, free: 43.52 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.004141/4.46, allocations: 1.221 MB / 1.958 GB, free: 43.32 MB / 0.6355 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.002205/4.462, allocations: 1.188 MB / 1.959 GB, free: 43.07 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.002347/4.465, allocations: 1.332 MB / 1.96 GB, free: 43.05 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/4.465, allocations: 1.125 kB / 1.96 GB, free: 43.05 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0003922/4.465, allocations: 310.6 kB / 1.961 GB, free: 43.04 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006399/4.471, allocations: 1.226 MB / 1.962 GB, free: 43.02 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006319/4.478, allocations: 2.871 MB / 1.965 GB, free: 42.25 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001494/4.479, allocations: 1.842 MB / 1.966 GB, free: 41.51 MB / 0.6355 GB Notification: Performance of SimCode: time 9.92e-07/4.479, allocations: 0 / 1.966 GB, free: 41.51 MB / 0.6355 GB Notification: Performance of Templates: time 0.08595/4.565, allocations: 48.79 MB / 2.014 GB, free: 39.07 MB / 0.6355 GB make -j1 -f IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.makefile (rm -f IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & ./IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)