Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: translateModel(BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves") translateModel(BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves") [: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/BuildSysPro 3.5.0/package.mo): time 0.6982/0.6982, allocations: 127.4 MB / 134.6 MB, free: 4.07 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001201/0.001201, allocations: 181.3 kB / 164.4 MB, free: 6.879 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.781/1.781, allocations: 205.1 MB / 399.1 MB, free: 6.074 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001125/0.001125, allocations: 87.28 kB / 476.3 MB, free: 8.832 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 1.042e-05/1.046e-05, allocations: 4 kB / 0.546 GB, free: 42.75 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.169/0.1691, allocations: 76.76 MB / 0.6209 GB, free: 13.91 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.147/1.317, allocations: 360.6 MB / 0.9731 GB, free: 121.3 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002753/1.317, allocations: 97 kB / 0.9732 GB, free: 121.2 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.044/2.361, allocations: 355.1 MB / 1.32 GB, free: 38.57 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 0.0001379/2.361, allocations: 32.17 kB / 1.32 GB, free: 38.54 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: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.002725/2.364, allocations: 1.126 MB / 1.321 GB, free: 37.37 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.452e-05/2.364, allocations: 12.03 kB / 1.321 GB, free: 37.36 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009231/2.365, allocations: 186.7 kB / 1.321 GB, free: 37.18 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001315/2.366, allocations: 0.6919 MB / 1.322 GB, free: 36.45 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.019e-05/2.366, allocations: 12 kB / 1.322 GB, free: 36.43 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001145/2.366, allocations: 56 kB / 1.322 GB, free: 36.38 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005663/2.367, allocations: 329.9 kB / 1.322 GB, free: 36.05 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006041/2.367, allocations: 464.3 kB / 1.323 GB, free: 35.57 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.586e-05/2.367, allocations: 3.984 kB / 1.323 GB, free: 35.57 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.105e-05/2.367, allocations: 4 kB / 1.323 GB, free: 35.56 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.274e-05/2.367, allocations: 12 kB / 1.323 GB, free: 35.55 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003059/2.37, allocations: 2.729 MB / 1.325 GB, free: 32.64 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004703/2.371, allocations: 237.7 kB / 1.326 GB, free: 32.39 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001481/2.371, allocations: 96.84 kB / 1.326 GB, free: 32.3 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000209/2.371, allocations: 97.09 kB / 1.326 GB, free: 32.18 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.066e-05/2.371, allocations: 46.5 kB / 1.326 GB, free: 32.13 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=23): time 2.494e-06/2.371, allocations: 0 / 1.326 GB, free: 32.13 MB / 0.6355 GB Notification: Performance of matching and sorting (n=23): time 0.002972/2.374, allocations: 0.6568 MB / 1.327 GB, free: 31.46 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.264e-05/2.374, allocations: 51.41 kB / 1.327 GB, free: 31.4 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005376/2.375, allocations: 0.5507 MB / 1.327 GB, free: 30.84 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 7.966e-05/2.375, allocations: 37.7 kB / 1.327 GB, free: 30.8 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001945/2.375, allocations: 328.7 kB / 1.328 GB, free: 30.47 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 5.492e-05/2.375, allocations: 70.86 kB / 1.328 GB, free: 30.4 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.434e-05/2.375, allocations: 0 / 1.328 GB, free: 30.4 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001121/2.375, allocations: 382.8 kB / 1.328 GB, free: 30.02 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000277/2.376, allocations: 169.2 kB / 1.328 GB, free: 29.85 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006616/2.376, allocations: 0.8035 MB / 1.329 GB, free: 28.82 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001158/2.377, allocations: 382.6 kB / 1.329 GB, free: 28.45 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/2.377, allocations: 4 kB / 1.329 GB, free: 28.45 MB / 0.6355 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001638/2.379, allocations: 0.6817 MB / 1.33 GB, free: 27.76 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001467/2.379, allocations: 0.7954 MB / 1.331 GB, free: 26.9 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/2.379, allocations: 8 kB / 1.331 GB, free: 26.89 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.908e-05/2.379, allocations: 7.906 kB / 1.331 GB, free: 26.89 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003866/2.383, allocations: 0.5385 MB / 1.331 GB, free: 26.35 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00282/2.386, allocations: 2.656 MB / 1.334 GB, free: 23.6 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002373/2.388, allocations: 383.9 kB / 1.334 GB, free: 23.22 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.242e-05/2.389, allocations: 23.98 kB / 1.334 GB, free: 23.2 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/2.389, allocations: 4 kB / 1.334 GB, free: 23.2 MB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001557/2.39, allocations: 0.5089 MB / 1.335 GB, free: 22.68 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.563e-06/2.39, allocations: 4 kB / 1.335 GB, free: 22.68 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.837e-06/2.39, allocations: 4 kB / 1.335 GB, free: 22.68 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008152/2.391, allocations: 168 kB / 1.335 GB, free: 22.51 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.16e-06/2.391, allocations: 4 kB / 1.335 GB, free: 22.51 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001797/2.393, allocations: 343.9 kB / 1.335 GB, free: 22.17 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.599e-05/2.393, allocations: 31.97 kB / 1.335 GB, free: 22.14 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002287/2.393, allocations: 125.5 kB / 1.335 GB, free: 22.01 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001354/2.393, allocations: 75.05 kB / 1.335 GB, free: 21.93 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001567/2.395, allocations: 0.4958 MB / 1.336 GB, free: 21.43 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/2.395, allocations: 4 kB / 1.336 GB, free: 21.43 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/2.395, allocations: 0 / 1.336 GB, free: 21.43 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/2.395, allocations: 3.984 kB / 1.336 GB, free: 21.42 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002429/2.397, allocations: 1.119 MB / 1.337 GB, free: 20.26 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/2.397, allocations: 0 / 1.337 GB, free: 20.26 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003648/2.401, allocations: 0.5268 MB / 1.338 GB, free: 19.73 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.785e-06/2.401, allocations: 0 / 1.338 GB, free: 19.73 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.848e-05/2.401, allocations: 7.984 kB / 1.338 GB, free: 19.72 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006916/2.408, allocations: 5.593 MB / 1.343 GB, free: 13.68 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.147e-06/2.408, allocations: 0 / 1.343 GB, free: 13.68 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001529/2.409, allocations: 0.5652 MB / 1.344 GB, free: 13.1 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003756/2.41, allocations: 200 kB / 1.344 GB, free: 12.88 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001058/2.41, allocations: 0 / 1.344 GB, free: 12.88 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008756/2.411, allocations: 99.8 kB / 1.344 GB, free: 12.79 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.799e-05/2.411, allocations: 11.97 kB / 1.344 GB, free: 12.77 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.34e-05/2.411, allocations: 15.98 kB / 1.344 GB, free: 12.76 MB / 0.6355 GB Notification: Performance of sort global known variables: time 0.0005283/2.412, allocations: 415.1 kB / 1.344 GB, free: 12.36 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.002042/2.414, allocations: 487.1 kB / 1.345 GB, free: 11.88 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * 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): 4 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009656/2.415, allocations: 454.8 kB / 1.345 GB, free: 11.43 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.00583/2.42, allocations: 1.172 MB / 1.346 GB, free: 10.25 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 6.141e-06/2.42, allocations: 0 / 1.346 GB, free: 10.25 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.004311/2.425, allocations: 0.7148 MB / 1.347 GB, free: 9.535 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002018/2.427, allocations: 326 kB / 1.347 GB, free: 9.223 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002539/2.429, allocations: 0.9523 MB / 1.348 GB, free: 8.242 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006869/2.43, allocations: 1.064 MB / 1.349 GB, free: 7.148 MB / 0.6355 GB Notification: Performance of SimCode: time 8.92e-07/2.43, allocations: 0 / 1.349 GB, free: 7.148 MB / 0.6355 GB Notification: Performance of Templates: time 0.3355/2.766, allocations: 21.51 MB / 1.37 GB, free: 191.5 MB / 0.6355 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)