Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal.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.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal") translateModel(BuildSysPro.IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal") [: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.847/0.847, allocations: 127.4 MB / 134.6 MB, free: 4.113 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.001163/0.001163, allocations: 189.3 kB / 164.4 MB, free: 6.895 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.815/1.815, allocations: 205.1 MB / 399.1 MB, free: 6.078 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.0009682/0.0009683, allocations: 92.58 kB / 476.3 MB, free: 8.816 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 9.398e-06/9.428e-06, allocations: 0 / 0.546 GB, free: 42.75 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2094/0.2094, allocations: 76.75 MB / 0.6209 GB, free: 13.93 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.195/1.405, allocations: 388.1 MB / 0.9999 GB, free: 94.31 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002301/1.405, allocations: 92.77 kB / 1 GB, free: 94.27 MB / 0.6198 GB Notification: Performance of FrontEnd: time 6.748/8.153, allocations: 1.461 GB / 2.461 GB, free: 81.12 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.001381/8.154, allocations: 156.2 kB / 2.461 GB, free: 81.09 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 832 * Number of variables: 832 Notification: Performance of Generate backend data structure: time 0.0201/8.174, allocations: 4.603 MB / 2.465 GB, free: 79.23 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 6.191e-05/8.174, allocations: 10.12 kB / 2.465 GB, free: 79.23 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007351/8.182, allocations: 0.8763 MB / 2.466 GB, free: 78.92 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02778/8.21, allocations: 7.951 MB / 2.474 GB, free: 78 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000313/8.21, allocations: 102.6 kB / 2.474 GB, free: 78 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001805/8.212, allocations: 207.8 kB / 2.474 GB, free: 78 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01117/8.223, allocations: 4.734 MB / 2.479 GB, free: 77.99 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01412/8.237, allocations: 4.825 MB / 2.484 GB, free: 77.29 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002299/8.237, allocations: 12.53 kB / 2.484 GB, free: 77.29 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001467/8.239, allocations: 16.03 kB / 2.484 GB, free: 77.29 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.855e-05/8.239, allocations: 82.5 kB / 2.484 GB, free: 77.29 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04215/8.281, allocations: 22.09 MB / 2.505 GB, free: 67.25 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003729/8.285, allocations: 2.493 MB / 2.508 GB, free: 67.21 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002082/8.287, allocations: 1.658 MB / 2.509 GB, free: 67.2 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01201/8.299, allocations: 6.014 MB / 2.515 GB, free: 65.2 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002261/8.301, allocations: 1.684 MB / 2.517 GB, free: 65.13 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=154): time 4.198e-06/8.301, allocations: 0 / 2.517 GB, free: 65.13 MB / 0.6823 GB Notification: Performance of matching and sorting (n=154): time 0.07921/8.381, allocations: 12.21 MB / 2.529 GB, free: 64.78 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001022/8.381, allocations: 145.2 kB / 2.529 GB, free: 64.62 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009992/8.391, allocations: 3.846 MB / 2.533 GB, free: 64.3 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.001059/8.392, allocations: 33.14 kB / 2.533 GB, free: 64.27 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.002121/8.394, allocations: 1.614 MB / 2.534 GB, free: 63.42 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.001687/8.396, allocations: 0.5276 MB / 2.535 GB, free: 63.08 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002373/8.396, allocations: 3.375 kB / 2.535 GB, free: 63.08 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0002008/8.396, allocations: 420.8 kB / 2.535 GB, free: 62.77 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002398/8.399, allocations: 1.572 MB / 2.537 GB, free: 62.77 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003049/8.402, allocations: 2.824 MB / 2.539 GB, free: 61.18 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004514/8.406, allocations: 2.157 MB / 2.542 GB, free: 61.15 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.88e-05/8.406, allocations: 7.156 kB / 2.542 GB, free: 61.15 MB / 0.6823 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.08621/8.492, allocations: 13.21 MB / 2.554 GB, free: 60.64 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.005144/8.498, allocations: 15.22 MB / 2.569 GB, free: 44.57 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001888/8.498, allocations: 36.97 kB / 2.569 GB, free: 44.57 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0798/8.578, allocations: 10.88 MB / 2.58 GB, free: 44.2 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005474/8.583, allocations: 0.6874 MB / 2.581 GB, free: 44.2 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02386/8.607, allocations: 6.284 MB / 2.587 GB, free: 40.58 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008136/8.615, allocations: 417.1 kB / 2.587 GB, free: 40.17 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001384/8.617, allocations: 203.8 kB / 2.587 GB, free: 39.97 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/8.617, allocations: 4 kB / 2.587 GB, free: 39.97 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.06959/8.686, allocations: 11.86 MB / 2.599 GB, free: 28.09 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002035/8.687, allocations: 36 kB / 2.599 GB, free: 28.05 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06883/8.756, allocations: 10.63 MB / 2.609 GB, free: 17.4 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003881/8.76, allocations: 0.6826 MB / 2.61 GB, free: 16.71 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01433/8.774, allocations: 8.049 MB / 2.618 GB, free: 8.434 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00672/8.781, allocations: 326 kB / 2.618 GB, free: 8.113 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001294/8.782, allocations: 187.8 kB / 2.618 GB, free: 7.93 MB / 0.6823 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: val.port_internal.h_outflow:VARIABLE(min = -10000000000.0 max = 10000000000.0 unit = "J/kg" nominal = 1000000.0 protected = true ) "Specific thermodynamic enthalpy close to the connection point if m_flow < 0" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 149 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,nRes.y,allowFlowReversal.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (284): * Single equations (assignments): 277 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {12 15,10 11,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.00173/8.784, allocations: 208.2 kB / 2.619 GB, free: 7.719 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002545/8.786, allocations: 430.7 kB / 2.619 GB, free: 7.293 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01865/8.805, allocations: 5.423 MB / 2.624 GB, free: 1.867 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.876e-05/8.805, allocations: 16 kB / 2.624 GB, free: 1.852 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.426e-06/8.805, allocations: 3.984 kB / 2.624 GB, free: 1.848 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.5316/9.337, allocations: 5.869 MB / 2.63 GB, free: 139.5 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009508/9.346, allocations: 3.997 MB / 2.634 GB, free: 139.1 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.329e-05/9.346, allocations: 0 / 2.634 GB, free: 139.1 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002693/9.349, allocations: 425.2 kB / 2.634 GB, free: 139.1 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005623/9.355, allocations: 2.002 MB / 2.636 GB, free: 139 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004272/9.355, allocations: 33.31 kB / 2.636 GB, free: 139 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02694/9.382, allocations: 8.689 MB / 2.645 GB, free: 136 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.224e-06/9.382, allocations: 0 / 2.645 GB, free: 136 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02224/9.405, allocations: 7.637 MB / 2.652 GB, free: 135.8 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005139/9.41, allocations: 0.9766 MB / 2.653 GB, free: 135.7 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002224/9.412, allocations: 6.719 kB / 2.653 GB, free: 135.7 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005259/9.417, allocations: 224.7 kB / 2.653 GB, free: 135.7 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003948/9.418, allocations: 107.2 kB / 2.654 GB, free: 135.7 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003701/9.418, allocations: 88.28 kB / 2.654 GB, free: 135.7 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.005362/9.423, allocations: 2.908 MB / 2.656 GB, free: 135.5 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.01428/9.438, allocations: 2.639 MB / 2.659 GB, free: 135.3 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (pump.vol.dynBal.U,hea.outCon.T,val.filter.x[1],val.filter.x[2]) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (134): * Single equations (assignments): 126 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {12 5,2 5,10 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.003165/9.441, allocations: 1.202 MB / 2.66 GB, free: 135.2 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.02217/9.463, allocations: 7.36 MB / 2.667 GB, free: 134.7 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.255e-05/9.463, allocations: 4.625 kB / 2.667 GB, free: 134.7 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.009166/9.472, allocations: 2.668 MB / 2.67 GB, free: 134.5 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01313/9.486, allocations: 2.146 MB / 2.672 GB, free: 134.5 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0261/9.512, allocations: 8.287 MB / 2.68 GB, free: 133 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005048/9.517, allocations: 3.695 MB / 2.684 GB, free: 132.2 MB / 0.6823 GB Notification: Performance of SimCode: time 1.483e-06/9.517, allocations: 0 / 2.684 GB, free: 132.2 MB / 0.6823 GB Notification: Performance of Templates: time 0.2529/9.77, allocations: 121.7 MB / 2.803 GB, free: 114.6 MB / 0.6823 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal.makefile (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal.sim & ./BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)