Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.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.ThreeWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves") translateModel(BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.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/BuildSysPro 3.5.0/package.mo): time 0.694/0.694, 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.001083/0.001083, allocations: 189.3 kB / 164.4 MB, free: 6.867 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.661/1.661, allocations: 205.1 MB / 399.1 MB, free: 6.086 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.001021/0.001021, allocations: 85.86 kB / 476.3 MB, free: 8.832 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 8.005e-06/8.025e-06, allocations: 0 / 0.546 GB, free: 42.73 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1891/0.1891, allocations: 76.75 MB / 0.6209 GB, free: 13.91 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.172/1.361, allocations: 387.1 MB / 0.9989 GB, free: 95.64 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000312/1.361, allocations: 105.8 kB / 0.999 GB, free: 95.59 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.563/3.925, allocations: 0.647 GB / 1.646 GB, free: 78.75 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 0.0004061/3.925, allocations: 55.73 kB / 1.646 GB, free: 78.75 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.006066/3.931, allocations: 1.755 MB / 1.648 GB, free: 78.11 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.312e-05/3.931, allocations: 8.594 kB / 1.648 GB, free: 78.11 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001336/3.933, allocations: 201.6 kB / 1.648 GB, free: 78.02 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005757/3.939, allocations: 1.872 MB / 1.65 GB, free: 77.68 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.289e-05/3.939, allocations: 37.75 kB / 1.65 GB, free: 77.68 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003987/3.939, allocations: 68.88 kB / 1.65 GB, free: 77.68 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00176/3.941, allocations: 0.6381 MB / 1.651 GB, free: 77.68 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002018/3.943, allocations: 0.8608 MB / 1.651 GB, free: 77.55 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.93e-05/3.943, allocations: 3.062 kB / 1.651 GB, free: 77.55 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.768e-05/3.943, allocations: 0 / 1.651 GB, free: 77.55 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.828e-05/3.943, allocations: 33.11 kB / 1.651 GB, free: 77.54 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008457/3.952, allocations: 5.777 MB / 1.657 GB, free: 74.24 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003952/3.952, allocations: 237.7 kB / 1.657 GB, free: 74.22 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002656/3.952, allocations: 174.7 kB / 1.657 GB, free: 74.21 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001746/3.953, allocations: 186.5 kB / 1.658 GB, free: 74.02 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.426e-05/3.953, allocations: 34.34 kB / 1.658 GB, free: 73.98 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=35): time 3.747e-06/3.953, allocations: 0 / 1.658 GB, free: 73.98 MB / 0.6511 GB Notification: Performance of matching and sorting (n=35): time 0.002312/3.955, allocations: 0.6067 MB / 1.658 GB, free: 73.87 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.494e-05/3.955, allocations: 55.22 kB / 1.658 GB, free: 73.81 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00183/3.957, allocations: 0.993 MB / 1.659 GB, free: 73.65 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0001455/3.957, allocations: 32.3 kB / 1.659 GB, free: 73.62 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004741/3.957, allocations: 0.5284 MB / 1.66 GB, free: 73.39 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001501/3.958, allocations: 119.8 kB / 1.66 GB, free: 73.32 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.228e-05/3.958, allocations: 0 / 1.66 GB, free: 73.32 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 8.644e-05/3.958, allocations: 339 kB / 1.66 GB, free: 73.01 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003865/3.958, allocations: 233.1 kB / 1.66 GB, free: 73.01 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005352/3.959, allocations: 0.4956 MB / 1.661 GB, free: 72.68 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007539/3.959, allocations: 321 kB / 1.661 GB, free: 72.67 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.961e-06/3.959, allocations: 3.938 kB / 1.661 GB, free: 72.67 MB / 0.6511 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001718/3.961, allocations: 0.7998 MB / 1.662 GB, free: 72.56 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006398/3.962, allocations: 2.222 MB / 1.664 GB, free: 70.29 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.331e-05/3.962, allocations: 7.75 kB / 1.664 GB, free: 70.29 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.369e-05/3.962, allocations: 10.2 kB / 1.664 GB, free: 70.29 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00106/3.963, allocations: 219.4 kB / 1.664 GB, free: 70.29 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.086e-05/3.963, allocations: 10.09 kB / 1.664 GB, free: 70.29 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001649/3.965, allocations: 169.4 kB / 1.665 GB, free: 70.24 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000121/3.965, allocations: 41.27 kB / 1.665 GB, free: 70.24 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.151e-05/3.965, allocations: 3.812 kB / 1.665 GB, free: 70.24 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001123/3.966, allocations: 0.5611 MB / 1.665 GB, free: 70.23 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/3.966, allocations: 3.875 kB / 1.665 GB, free: 70.23 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.496e-05/3.966, allocations: 17.78 kB / 1.665 GB, free: 70.23 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000686/3.967, allocations: 177.9 kB / 1.665 GB, free: 70.23 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.441e-05/3.967, allocations: 12.09 kB / 1.665 GB, free: 70.23 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001241/3.968, allocations: 111.2 kB / 1.666 GB, free: 70.2 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.985e-05/3.968, allocations: 36.77 kB / 1.666 GB, free: 70.2 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (93): * Single equations (assignments): 93 * 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.0002442/3.968, allocations: 119.5 kB / 1.666 GB, free: 70.09 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003522/3.969, allocations: 130.5 kB / 1.666 GB, free: 70.02 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001182/3.97, allocations: 0.4991 MB / 1.666 GB, free: 69.95 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.844e-06/3.97, allocations: 3.781 kB / 1.666 GB, free: 69.95 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/3.97, allocations: 0 / 1.666 GB, free: 69.95 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006637/3.971, allocations: 0.6696 MB / 1.667 GB, free: 69.51 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002012/3.973, allocations: 0.9044 MB / 1.668 GB, free: 69.34 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/3.973, allocations: 0 / 1.668 GB, free: 69.34 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007136/3.973, allocations: 129.6 kB / 1.668 GB, free: 69.34 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.047e-06/3.973, allocations: 0 / 1.668 GB, free: 69.34 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.974e-05/3.973, allocations: 7.625 kB / 1.668 GB, free: 69.34 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/3.973, allocations: 0 / 1.668 GB, free: 69.34 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/3.973, allocations: 0 / 1.668 GB, free: 69.34 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00124/3.975, allocations: 0.816 MB / 1.669 GB, free: 69.12 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007061/3.975, allocations: 280.2 kB / 1.669 GB, free: 68.95 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003237/3.976, allocations: 2.625 kB / 1.669 GB, free: 68.95 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001136/3.977, allocations: 95.98 kB / 1.669 GB, free: 68.95 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.02e-05/3.977, allocations: 20.59 kB / 1.669 GB, free: 68.95 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.693e-05/3.977, allocations: 17.27 kB / 1.669 GB, free: 68.95 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.001251/3.978, allocations: 0.7379 MB / 1.67 GB, free: 68.84 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.003518/3.982, allocations: 0.7882 MB / 1.671 GB, free: 68.7 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (valLin.vol.dynBal.U,valEquPerLin.vol.dynBal.U) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 35 * 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.001743/3.984, allocations: 0.7318 MB / 1.671 GB, free: 68.52 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001754/3.985, allocations: 0.8799 MB / 1.672 GB, free: 68.5 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/3.985, allocations: 3.281 kB / 1.672 GB, free: 68.5 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0003333/3.986, allocations: 186.2 kB / 1.672 GB, free: 68.5 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003375/3.989, allocations: 0.6294 MB / 1.673 GB, free: 68.49 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01488/4.004, allocations: 2.69 MB / 1.676 GB, free: 68.01 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001931/4.006, allocations: 1.391 MB / 1.677 GB, free: 67.29 MB / 0.6511 GB Notification: Performance of SimCode: time 1.913e-06/4.006, allocations: 0 / 1.677 GB, free: 67.29 MB / 0.6511 GB Notification: Performance of Templates: time 0.06034/4.066, allocations: 30.69 MB / 1.707 GB, free: 66.11 MB / 0.6511 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.makefile (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & ./BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)