Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="Buildings_8_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="Buildings_8_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal",fmuType="me",version="2.0",platforms={"static"}) [: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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.687/1.687, allocations: 289.8 MB / 297.1 MB, free: 6.668 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002525/0.002525, allocations: 169.3 kB / 366.3 MB, free: 1.977 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.673/1.673, allocations: 205.1 MB / 0.6256 GB, free: 5.891 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001039/0.001039, allocations: 92.42 kB / 0.7395 GB, free: 39.66 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3122/0.3133, allocations: 122.4 MB / 0.8591 GB, free: 13.3 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7801/1.093, allocations: 116.3 MB / 0.9726 GB, free: 68.62 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.104/2.198, allocations: 420.5 MB / 1.383 GB, free: 63.79 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002287/2.198, allocations: 86.8 kB / 1.383 GB, free: 63.75 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 835 * Number of variables: 835 Notification: Performance of Generate backend data structure: time 6.18/8.378, allocations: 1.454 GB / 2.837 GB, free: 134.7 MB / 0.9792 GB Notification: Performance of prepare preOptimizeDAE: time 5.395e-05/8.378, allocations: 7.812 kB / 2.837 GB, free: 134.7 MB / 0.9792 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00675/8.385, allocations: 0.8302 MB / 2.838 GB, free: 134.4 MB / 0.9792 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02376/8.408, allocations: 6.859 MB / 2.845 GB, free: 133.5 MB / 0.9792 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003661/8.409, allocations: 103.8 kB / 2.845 GB, free: 133.5 MB / 0.9792 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001985/8.411, allocations: 210.8 kB / 2.845 GB, free: 133.5 MB / 0.9792 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01135/8.422, allocations: 4.854 MB / 2.85 GB, free: 133.5 MB / 0.9792 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01499/8.437, allocations: 4.894 MB / 2.854 GB, free: 132.8 MB / 0.9792 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000259/8.438, allocations: 10.28 kB / 2.855 GB, free: 132.7 MB / 0.9792 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001636/8.439, allocations: 13.78 kB / 2.855 GB, free: 132.7 MB / 0.9792 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.338e-05/8.439, allocations: 81.25 kB / 2.855 GB, free: 132.7 MB / 0.9792 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04593/8.485, allocations: 22.3 MB / 2.876 GB, free: 122.7 MB / 0.9792 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004816/8.49, allocations: 2.651 MB / 2.879 GB, free: 122.7 MB / 0.9792 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002629/8.493, allocations: 1.724 MB / 2.881 GB, free: 122.7 MB / 0.9792 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01672/8.51, allocations: 6.813 MB / 2.887 GB, free: 120.4 MB / 0.9792 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004838/8.515, allocations: 1.743 MB / 2.889 GB, free: 119.8 MB / 0.9792 GB Notification: Performance of pre-optimization done (n=157): time 1.327e-05/8.515, allocations: 0.6562 kB / 2.889 GB, free: 119.8 MB / 0.9792 GB Notification: Performance of matching and sorting (n=157): time 0.01711/8.532, allocations: 4.811 MB / 2.894 GB, free: 118.2 MB / 0.9792 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000118/8.532, allocations: 147.9 kB / 2.894 GB, free: 118 MB / 0.9792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01449/8.546, allocations: 4.051 MB / 2.898 GB, free: 116.7 MB / 0.9792 GB Notification: Performance of collectPreVariables (initialization): time 0.0009845/8.547, allocations: 37.52 kB / 2.898 GB, free: 116.6 MB / 0.9792 GB Notification: Performance of collectInitialEqns (initialization): time 0.003053/8.551, allocations: 1.596 MB / 2.899 GB, free: 115.5 MB / 0.9792 GB Notification: Performance of collectInitialBindings (initialization): time 0.001827/8.552, allocations: 0.5432 MB / 2.9 GB, free: 115.1 MB / 0.9792 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006884/8.553, allocations: 0 / 2.9 GB, free: 115.1 MB / 0.9792 GB Notification: Performance of setup shared object (initialization): time 0.0003221/8.553, allocations: 415.9 kB / 2.9 GB, free: 114.8 MB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002907/8.556, allocations: 1.559 MB / 2.902 GB, free: 114.2 MB / 0.9792 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003643/8.56, allocations: 2.834 MB / 2.905 GB, free: 111.9 MB / 0.9792 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005046/8.565, allocations: 2.155 MB / 2.907 GB, free: 111.2 MB / 0.9792 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.07e-05/8.565, allocations: 7.156 kB / 2.907 GB, free: 111.2 MB / 0.9792 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.06689/8.632, allocations: 11.14 MB / 2.918 GB, free: 106.5 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 0.00472/8.637, allocations: 14.98 MB / 2.932 GB, free: 90.52 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000205/8.637, allocations: 33.66 kB / 2.932 GB, free: 90.52 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07303/8.71, allocations: 10.73 MB / 2.943 GB, free: 85.34 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004694/8.715, allocations: 0.6967 MB / 2.943 GB, free: 85.16 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01502/8.73, allocations: 5.852 MB / 2.949 GB, free: 80.34 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007543/8.738, allocations: 448.9 kB / 2.95 GB, free: 79.89 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001252/8.739, allocations: 203.6 kB / 2.95 GB, free: 79.7 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/8.739, allocations: 4 kB / 2.95 GB, free: 79.7 MB / 0.9792 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.06136/8.8, allocations: 10.41 MB / 2.96 GB, free: 69.28 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001912/8.801, allocations: 32 kB / 2.96 GB, free: 69.25 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06887/8.869, allocations: 10.69 MB / 2.97 GB, free: 58.54 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003724/8.873, allocations: 0.6865 MB / 2.971 GB, free: 57.85 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01643/8.89, allocations: 8.334 MB / 2.979 GB, free: 49.27 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00816/8.898, allocations: 377.8 kB / 2.98 GB, free: 48.9 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001459/8.899, allocations: 187.8 kB / 2.98 GB, free: 48.72 MB / 0.9792 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: 147 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,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.002473/8.902, allocations: 200.5 kB / 2.98 GB, free: 48.52 MB / 0.9792 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003081/8.905, allocations: 434.6 kB / 2.98 GB, free: 48.09 MB / 0.9792 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01213/8.917, allocations: 4.454 MB / 2.985 GB, free: 43.64 MB / 0.9792 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.177e-05/8.917, allocations: 19.91 kB / 2.985 GB, free: 43.62 MB / 0.9792 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.167e-05/8.917, allocations: 7.031 kB / 2.985 GB, free: 43.62 MB / 0.9792 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007025/8.924, allocations: 4.81 MB / 2.989 GB, free: 38.58 MB / 0.9792 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02181/8.946, allocations: 8.96 MB / 2.998 GB, free: 29.61 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.486e-05/8.946, allocations: 7.828 kB / 2.998 GB, free: 29.6 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00264/8.949, allocations: 435.3 kB / 2.999 GB, free: 29.18 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005511/8.955, allocations: 1.868 MB / 3 GB, free: 27.33 MB / 0.9792 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004302/8.955, allocations: 27.97 kB / 3 GB, free: 27.3 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00691/8.962, allocations: 3.554 MB / 3.004 GB, free: 23.67 MB / 0.9792 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.434e-06/8.962, allocations: 0 / 3.004 GB, free: 23.67 MB / 0.9792 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01242/8.974, allocations: 6.734 MB / 3.01 GB, free: 16.92 MB / 0.9792 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01503/8.989, allocations: 9.53 MB / 3.02 GB, free: 7.359 MB / 0.9792 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004555/8.994, allocations: 1.007 MB / 3.021 GB, free: 6.328 MB / 0.9792 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002512/8.997, allocations: 7.906 kB / 3.021 GB, free: 6.32 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005702/9.002, allocations: 223.3 kB / 3.021 GB, free: 6.102 MB / 0.9792 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004071/9.003, allocations: 109.7 kB / 3.021 GB, free: 5.996 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004715/9.003, allocations: 83.92 kB / 3.021 GB, free: 5.914 MB / 0.9792 GB Notification: Performance of sort global known variables: time 0.007731/9.011, allocations: 3.064 MB / 3.024 GB, free: 2.859 MB / 0.9792 GB Notification: Performance of remove unused functions: time 0.0192/9.03, allocations: 3.035 MB / 3.027 GB, free: 15.82 MB / 0.9948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (138): * Single equations (assignments): 129 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.004425/9.035, allocations: 1.197 MB / 3.028 GB, free: 14.72 MB / 0.9948 GB Notification: Performance of simCode: created initialization part: time 0.02443/9.059, allocations: 7.098 MB / 3.035 GB, free: 7.598 MB / 0.9948 GB Notification: Performance of simCode: created event and clocks part: time 1.94e-05/9.059, allocations: 8.719 kB / 3.035 GB, free: 7.59 MB / 0.9948 GB Notification: Performance of simCode: created simulation system equations: time 0.006725/9.066, allocations: 2.108 MB / 3.037 GB, free: 5.484 MB / 0.9948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0165/9.083, allocations: 2.311 MB / 3.04 GB, free: 3.23 MB / 0.9948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6577/9.74, allocations: 7.785 MB / 3.047 GB, free: 246.4 MB / 0.9948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004656/9.745, allocations: 3.735 MB / 3.051 GB, free: 245.6 MB / 0.9948 GB Notification: Performance of SimCode: time 1.012e-06/9.745, allocations: 0 / 3.051 GB, free: 245.6 MB / 0.9948 GB (rm -f Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal.fmu > Buildings_8_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)