Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.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 Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="Buildings_8_0_0_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.0.0/package.mo): time 2.326/2.326, allocations: 284.8 MB / 292.1 MB, free: 10.79 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.001688/0.001688, allocations: 177.3 kB / 360.3 MB, free: 7.57 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.836/1.836, allocations: 205.1 MB / 0.6187 GB, free: 13.23 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.001296/0.001295, allocations: 96.56 kB / 0.7317 GB, free: 45.16 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2861/0.2875, allocations: 121.4 MB / 0.8502 GB, free: 3.965 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.623/0.9105, allocations: 115.2 MB / 0.9627 GB, free: 78.29 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.069/1.979, allocations: 419.4 MB / 1.372 GB, free: 148.7 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002454/1.98, allocations: 82.66 kB / 1.372 GB, free: 148.7 MB / 0.8542 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.908/8.888, allocations: 1.454 GB / 2.826 GB, free: 137.6 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/8.888, allocations: 8.125 kB / 2.826 GB, free: 137.6 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007421/8.895, allocations: 0.8316 MB / 2.827 GB, free: 137.3 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02889/8.924, allocations: 6.866 MB / 2.834 GB, free: 136.5 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002938/8.925, allocations: 107.9 kB / 2.834 GB, free: 136.5 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001707/8.926, allocations: 212.8 kB / 2.834 GB, free: 136.5 MB / 0.9636 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01461/8.941, allocations: 4.852 MB / 2.839 GB, free: 136.5 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01606/8.957, allocations: 4.89 MB / 2.843 GB, free: 135.8 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001305/8.957, allocations: 7.562 kB / 2.843 GB, free: 135.8 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009159/8.958, allocations: 11.16 kB / 2.844 GB, free: 135.8 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.974e-05/8.958, allocations: 84.28 kB / 2.844 GB, free: 135.8 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05669/9.015, allocations: 22.28 MB / 2.865 GB, free: 126 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0071/9.022, allocations: 2.65 MB / 2.868 GB, free: 125.9 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004119/9.026, allocations: 1.725 MB / 2.87 GB, free: 125.9 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02156/9.048, allocations: 6.808 MB / 2.876 GB, free: 123.7 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00535/9.053, allocations: 1.748 MB / 2.878 GB, free: 123.6 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=157): time 6.642e-06/9.054, allocations: 0 / 2.878 GB, free: 123.6 MB / 0.9636 GB Notification: Performance of matching and sorting (n=157): time 0.02068/9.074, allocations: 4.801 MB / 2.883 GB, free: 123.3 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.217e-05/9.074, allocations: 150.7 kB / 2.883 GB, free: 123.1 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01273/9.087, allocations: 4.054 MB / 2.887 GB, free: 122.8 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 0.0009139/9.088, allocations: 35.14 kB / 2.887 GB, free: 122.8 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.003056/9.091, allocations: 1.606 MB / 2.888 GB, free: 121.9 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 0.002042/9.093, allocations: 0.5346 MB / 2.889 GB, free: 121.6 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004361/9.094, allocations: 0 / 2.889 GB, free: 121.6 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0002484/9.094, allocations: 417.8 kB / 2.889 GB, free: 121.3 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004285/9.098, allocations: 1.559 MB / 2.891 GB, free: 121.3 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00541/9.104, allocations: 2.837 MB / 2.894 GB, free: 119.7 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007058/9.111, allocations: 2.162 MB / 2.896 GB, free: 119.7 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.484e-05/9.111, allocations: 11.59 kB / 2.896 GB, free: 119.7 MB / 0.9636 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.1329/9.244, allocations: 11.12 MB / 2.907 GB, free: 118.7 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 0.003512/9.247, allocations: 14.98 MB / 2.921 GB, free: 102.7 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001491/9.248, allocations: 34.53 kB / 2.921 GB, free: 102.7 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1542/9.402, allocations: 10.74 MB / 2.932 GB, free: 101.7 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006059/9.408, allocations: 0.6945 MB / 2.932 GB, free: 101.7 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0237/9.432, allocations: 5.859 MB / 2.938 GB, free: 99.02 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00949/9.441, allocations: 451 kB / 2.939 GB, free: 98.86 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001292/9.443, allocations: 194.9 kB / 2.939 GB, free: 98.84 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/9.443, allocations: 2.469 kB / 2.939 GB, free: 98.84 MB / 0.9636 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.1298/9.572, allocations: 10.42 MB / 2.949 GB, free: 97 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001243/9.573, allocations: 32.42 kB / 2.949 GB, free: 97 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1542/9.727, allocations: 10.69 MB / 2.959 GB, free: 93.66 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005875/9.733, allocations: 0.6779 MB / 2.96 GB, free: 93.5 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02709/9.76, allocations: 8.348 MB / 2.968 GB, free: 85.18 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008962/9.769, allocations: 366 kB / 2.969 GB, free: 84.82 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001201/9.77, allocations: 194.2 kB / 2.969 GB, free: 84.64 MB / 0.9636 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.001457/9.772, allocations: 206.2 kB / 2.969 GB, free: 84.43 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001893/9.774, allocations: 434.6 kB / 2.969 GB, free: 84 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01718/9.791, allocations: 4.457 MB / 2.974 GB, free: 79.62 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.477e-05/9.791, allocations: 16 kB / 2.974 GB, free: 79.61 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/9.791, allocations: 0 / 2.974 GB, free: 79.61 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01278/9.804, allocations: 4.817 MB / 2.978 GB, free: 74.57 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02916/9.833, allocations: 8.975 MB / 2.987 GB, free: 65.59 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.877e-05/9.833, allocations: 3.938 kB / 2.987 GB, free: 65.58 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004832/9.838, allocations: 427.5 kB / 2.988 GB, free: 65.16 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0105/9.848, allocations: 1.863 MB / 2.989 GB, free: 63.32 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006143/9.849, allocations: 23.97 kB / 2.989 GB, free: 63.29 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01276/9.862, allocations: 3.552 MB / 2.993 GB, free: 59.67 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.865e-06/9.862, allocations: 3.938 kB / 2.993 GB, free: 59.67 MB / 0.9636 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0191/9.881, allocations: 6.737 MB / 2.999 GB, free: 52.91 MB / 0.9636 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02479/9.906, allocations: 9.524 MB / 3.009 GB, free: 43.36 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004874/9.911, allocations: 1.007 MB / 3.01 GB, free: 42.33 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002269/9.913, allocations: 11.42 kB / 3.01 GB, free: 42.32 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007874/9.921, allocations: 231.1 kB / 3.01 GB, free: 42.1 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007814/9.922, allocations: 105.8 kB / 3.01 GB, free: 42 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005241/9.922, allocations: 83.92 kB / 3.01 GB, free: 41.91 MB / 0.9636 GB Notification: Performance of sort global known variables: time 0.008104/9.931, allocations: 3.06 MB / 3.013 GB, free: 38.86 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.01945/9.95, allocations: 3.029 MB / 3.016 GB, free: 35.83 MB / 0.9636 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.003748/9.954, allocations: 1.209 MB / 3.017 GB, free: 34.75 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.03519/9.989, allocations: 7.103 MB / 3.024 GB, free: 27.61 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.82e-05/9.989, allocations: 8.594 kB / 3.024 GB, free: 27.61 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.01024/9.999, allocations: 2.104 MB / 3.026 GB, free: 25.51 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02297/10.02, allocations: 2.322 MB / 3.029 GB, free: 23.27 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02768/10.05, allocations: 7.781 MB / 3.036 GB, free: 15.43 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007444/10.06, allocations: 3.723 MB / 3.04 GB, free: 11.67 MB / 0.9636 GB Notification: Performance of SimCode: time 1.774e-06/10.06, allocations: 0 / 3.04 GB, free: 11.67 MB / 0.9636 GB (rm -f Buildings_8.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal.fmu > Buildings_8.0.0_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)