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: translateModel(BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves") translateModel(BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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/BuildingSystems 2.0.0-master/package.mo): time 0.7768/0.7768, allocations: 141.8 MB / 149.1 MB, free: 2.348 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.001119/0.001119, allocations: 178.5 kB / 181.9 MB, free: 14.29 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.312/1.312, allocations: 221.4 MB / 436 MB, free: 7.309 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.001047/0.001047, allocations: 102.2 kB / 0.507 GB, free: 24.52 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001869/0.001869, allocations: 277.6 kB / 0.5884 GB, free: 10.49 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 1.082e-05/1.085e-05, allocations: 7.938 kB / 0.6759 GB, free: 0.8438 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3925/0.3925, allocations: 82.76 MB / 0.7567 GB, free: 111.1 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6748/1.067, allocations: 389.5 MB / 1.137 GB, free: 6.258 MB / 0.6669 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002881/1.068, allocations: 103.3 kB / 1.137 GB, free: 6.207 MB / 0.6669 GB Notification: Performance of FrontEnd: time 3.379/4.447, allocations: 0.9902 GB / 2.127 GB, free: 80.54 MB / 0.7138 GB Notification: Performance of Transformations before backend: time 0.0005656/4.447, allocations: 77.61 kB / 2.128 GB, free: 80.52 MB / 0.7138 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.007823/4.455, allocations: 2.56 MB / 2.13 GB, free: 79.24 MB / 0.7138 GB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/4.455, allocations: 10.69 kB / 2.13 GB, free: 79.24 MB / 0.7138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001736/4.457, allocations: 327.3 kB / 2.13 GB, free: 79.09 MB / 0.7138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007099/4.464, allocations: 2.435 MB / 2.133 GB, free: 78.58 MB / 0.7138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001117/4.464, allocations: 47.09 kB / 2.133 GB, free: 78.58 MB / 0.7138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008564/4.465, allocations: 108.6 kB / 2.133 GB, free: 78.57 MB / 0.7138 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00286/4.468, allocations: 0.9896 MB / 2.134 GB, free: 78.57 MB / 0.7138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003328/4.471, allocations: 1.314 MB / 2.135 GB, free: 78.38 MB / 0.7138 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.218e-05/4.471, allocations: 3.938 kB / 2.135 GB, free: 78.38 MB / 0.7138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001987/4.471, allocations: 5.484 kB / 2.135 GB, free: 78.38 MB / 0.7138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.632e-05/4.471, allocations: 41.31 kB / 2.135 GB, free: 78.38 MB / 0.7138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01274/4.484, allocations: 8.026 MB / 2.143 GB, free: 74.43 MB / 0.7138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000687/4.485, allocations: 416.6 kB / 2.143 GB, free: 74.41 MB / 0.7138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004487/4.485, allocations: 314.4 kB / 2.144 GB, free: 74.39 MB / 0.7138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005772/4.486, allocations: 0.7516 MB / 2.144 GB, free: 73.55 MB / 0.7138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.087e-05/4.486, allocations: 45.06 kB / 2.144 GB, free: 73.51 MB / 0.7138 GB Notification: Performance of pre-optimization done (n=60): time 2.555e-06/4.486, allocations: 4.531 kB / 2.144 GB, free: 73.51 MB / 0.7138 GB Notification: Performance of matching and sorting (n=60): time 0.002113/4.488, allocations: 0.727 MB / 2.145 GB, free: 73.36 MB / 0.7138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.551e-05/4.488, allocations: 59.84 kB / 2.145 GB, free: 73.3 MB / 0.7138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003765/4.492, allocations: 1.701 MB / 2.147 GB, free: 73.06 MB / 0.7138 GB Notification: Performance of collectPreVariables (initialization): time 0.0002411/4.492, allocations: 29.58 kB / 2.147 GB, free: 73.03 MB / 0.7138 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007887/4.493, allocations: 0.7517 MB / 2.148 GB, free: 72.62 MB / 0.7138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002483/4.493, allocations: 205.8 kB / 2.148 GB, free: 72.49 MB / 0.7138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.325e-05/4.493, allocations: 2.688 kB / 2.148 GB, free: 72.49 MB / 0.7138 GB Notification: Performance of setup shared object (initialization): time 9.191e-05/4.494, allocations: 344.7 kB / 2.148 GB, free: 72.18 MB / 0.7138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005393/4.494, allocations: 306 kB / 2.148 GB, free: 72.18 MB / 0.7138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007955/4.495, allocations: 0.7647 MB / 2.149 GB, free: 71.67 MB / 0.7138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009827/4.496, allocations: 463.9 kB / 2.15 GB, free: 71.64 MB / 0.7138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.107e-05/4.496, allocations: 3.938 kB / 2.15 GB, free: 71.64 MB / 0.7138 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.0024/4.498, allocations: 1.125 MB / 2.151 GB, free: 71.45 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006456/4.499, allocations: 3.146 MB / 2.154 GB, free: 68.09 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.141e-05/4.499, allocations: 13.56 kB / 2.154 GB, free: 68.09 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.019e-05/4.499, allocations: 18.08 kB / 2.154 GB, free: 68.09 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00106/4.5, allocations: 264 kB / 2.154 GB, free: 68.07 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.518e-05/4.5, allocations: 17.89 kB / 2.154 GB, free: 68.07 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002299/4.502, allocations: 207.3 kB / 2.154 GB, free: 68 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001317/4.503, allocations: 49.97 kB / 2.154 GB, free: 68 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 9.197e-06/4.503, allocations: 3.781 kB / 2.154 GB, free: 68 MB / 0.7138 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00154/4.504, allocations: 0.8546 MB / 2.155 GB, free: 67.95 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.582e-05/4.504, allocations: 14.25 kB / 2.155 GB, free: 67.95 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.862e-05/4.504, allocations: 14.44 kB / 2.155 GB, free: 67.95 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009762/4.505, allocations: 257.2 kB / 2.155 GB, free: 67.93 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.014e-05/4.505, allocations: 15.34 kB / 2.156 GB, free: 67.93 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002114/4.507, allocations: 178.2 kB / 2.156 GB, free: 67.88 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001266/4.507, allocations: 53.53 kB / 2.156 GB, free: 67.88 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.0002924/4.508, allocations: 135.8 kB / 2.156 GB, free: 67.75 MB / 0.7138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006206/4.508, allocations: 204.6 kB / 2.156 GB, free: 67.64 MB / 0.7138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002161/4.511, allocations: 0.8582 MB / 2.157 GB, free: 67.55 MB / 0.7138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.27e-05/4.511, allocations: 9.969 kB / 2.157 GB, free: 67.55 MB / 0.7138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.772e-06/4.511, allocations: 0 / 2.157 GB, free: 67.55 MB / 0.7138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009391/4.512, allocations: 0.6602 MB / 2.158 GB, free: 67.39 MB / 0.7138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005583/4.517, allocations: 2.431 MB / 2.16 GB, free: 67.02 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/4.517, allocations: 3.938 kB / 2.16 GB, free: 67.02 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006156/4.518, allocations: 145.9 kB / 2.16 GB, free: 67.01 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.282e-05/4.518, allocations: 3.875 kB / 2.16 GB, free: 67.01 MB / 0.7138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.183e-05/4.518, allocations: 16.41 kB / 2.16 GB, free: 67.01 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.242e-06/4.518, allocations: 3.625 kB / 2.16 GB, free: 67.01 MB / 0.7138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/4.518, allocations: 3.938 kB / 2.16 GB, free: 67 MB / 0.7138 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002056/4.52, allocations: 1.291 MB / 2.161 GB, free: 66.63 MB / 0.7138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001271/4.521, allocations: 440 kB / 2.162 GB, free: 66.41 MB / 0.7138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006491/4.522, allocations: 3.5 kB / 2.162 GB, free: 66.41 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001823/4.524, allocations: 152.3 kB / 2.162 GB, free: 66.41 MB / 0.7138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001036/4.524, allocations: 48.97 kB / 2.162 GB, free: 66.4 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.156e-05/4.524, allocations: 36.23 kB / 2.162 GB, free: 66.4 MB / 0.7138 GB Notification: Performance of sort global known variables: time 0.002401/4.526, allocations: 1.245 MB / 2.163 GB, free: 66.26 MB / 0.7138 GB Notification: Performance of remove unused functions: time 0.005002/4.531, allocations: 1.226 MB / 2.164 GB, free: 66.06 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.002515/4.534, allocations: 1.198 MB / 2.166 GB, free: 65.77 MB / 0.7138 GB Notification: Performance of simCode: created initialization part: time 0.002415/4.536, allocations: 1.322 MB / 2.167 GB, free: 65.7 MB / 0.7138 GB Notification: Performance of simCode: created event and clocks part: time 4.98e-06/4.536, allocations: 2.688 kB / 2.167 GB, free: 65.7 MB / 0.7138 GB Notification: Performance of simCode: created simulation system equations: time 0.0004303/4.537, allocations: 309.8 kB / 2.167 GB, free: 65.68 MB / 0.7138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007025/4.544, allocations: 1.231 MB / 2.168 GB, free: 65.65 MB / 0.7138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007951/4.552, allocations: 2.857 MB / 2.171 GB, free: 64.87 MB / 0.7138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002198/4.554, allocations: 1.823 MB / 2.173 GB, free: 64.13 MB / 0.7138 GB Notification: Performance of SimCode: time 1.804e-06/4.554, allocations: 3.938 kB / 2.173 GB, free: 64.13 MB / 0.7138 GB Notification: Performance of Templates: time 0.08062/4.635, allocations: 48.68 MB / 2.22 GB, free: 36.05 MB / 0.7138 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.makefile (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 & ./BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)