Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="Buildings_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.257/1.257, allocations: 249.4 MB / 256.7 MB, free: 7.023 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001014/0.001014, allocations: 173.2 kB / 316 MB, free: 3.594 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.179/1.179, allocations: 205.2 MB / 0.5667 GB, free: 15.63 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008451/0.0008451, allocations: 84.22 kB / 0.671 GB, free: 4.77 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.373/0.3739, allocations: 112.4 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.171/0.5449, allocations: 106.3 MB / 0.8846 GB, free: 12.58 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.052/1.597, allocations: 414.3 MB / 1.289 GB, free: 318.2 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000198/1.597, allocations: 89.02 kB / 1.289 GB, free: 318.2 MB / 0.8698 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 4.104/5.701, allocations: 1.454 GB / 2.743 GB, free: 114.8 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/5.701, allocations: 11.09 kB / 2.743 GB, free: 114.8 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004736/5.706, allocations: 0.8226 MB / 2.744 GB, free: 114.5 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01629/5.722, allocations: 6.865 MB / 2.751 GB, free: 113.6 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000127/5.722, allocations: 105.9 kB / 2.751 GB, free: 113.6 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007474/5.723, allocations: 210.9 kB / 2.751 GB, free: 113.6 MB / 0.9011 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006912/5.73, allocations: 4.855 MB / 2.756 GB, free: 113.6 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006435/5.736, allocations: 4.889 MB / 2.76 GB, free: 112.9 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.086e-05/5.736, allocations: 11.75 kB / 2.76 GB, free: 112.9 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004056/5.737, allocations: 19.34 kB / 2.76 GB, free: 112.9 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.116e-05/5.737, allocations: 83.97 kB / 2.76 GB, free: 112.9 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02733/5.764, allocations: 22.27 MB / 2.782 GB, free: 103.1 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003147/5.767, allocations: 2.654 MB / 2.785 GB, free: 103 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001725/5.769, allocations: 1.722 MB / 2.786 GB, free: 103 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01042/5.779, allocations: 6.815 MB / 2.793 GB, free: 100.8 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002212/5.782, allocations: 1.746 MB / 2.795 GB, free: 100.8 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=157): time 4.679e-06/5.782, allocations: 0 / 2.795 GB, free: 100.8 MB / 0.9011 GB Notification: Performance of matching and sorting (n=157): time 0.01015/5.792, allocations: 4.794 MB / 2.8 GB, free: 100.4 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.315e-05/5.792, allocations: 152.4 kB / 2.8 GB, free: 100.3 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007236/5.799, allocations: 4.052 MB / 2.804 GB, free: 99.96 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 0.0006044/5.8, allocations: 31.36 kB / 2.804 GB, free: 99.93 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.001843/5.802, allocations: 1.612 MB / 2.805 GB, free: 99.09 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.001291/5.803, allocations: 0.5353 MB / 2.806 GB, free: 98.74 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003577/5.803, allocations: 0 / 2.806 GB, free: 98.74 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001662/5.804, allocations: 420.1 kB / 2.806 GB, free: 98.43 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001996/5.806, allocations: 1.555 MB / 2.808 GB, free: 98.43 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002546/5.808, allocations: 2.841 MB / 2.81 GB, free: 96.86 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003781/5.812, allocations: 2.151 MB / 2.813 GB, free: 96.83 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.758e-05/5.812, allocations: 10.91 kB / 2.813 GB, free: 96.83 MB / 0.9011 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.05882/5.871, allocations: 11.13 MB / 2.823 GB, free: 96.47 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.002744/5.874, allocations: 14.98 MB / 2.838 GB, free: 80.73 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000115/5.874, allocations: 32.16 kB / 2.838 GB, free: 80.73 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06724/5.941, allocations: 10.74 MB / 2.849 GB, free: 80.7 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003146/5.944, allocations: 0.6917 MB / 2.849 GB, free: 80.7 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0114/5.956, allocations: 5.853 MB / 2.855 GB, free: 79.11 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005981/5.962, allocations: 445.5 kB / 2.855 GB, free: 78.95 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008463/5.962, allocations: 200.6 kB / 2.856 GB, free: 78.95 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.249e-05/5.962, allocations: 3.406 kB / 2.856 GB, free: 78.95 MB / 0.9011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.06028/6.023, allocations: 10.41 MB / 2.866 GB, free: 78.84 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001471/6.023, allocations: 33.41 kB / 2.866 GB, free: 78.84 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0708/6.094, allocations: 10.68 MB / 2.876 GB, free: 77.37 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003342/6.097, allocations: 0.6863 MB / 2.877 GB, free: 77.26 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01508/6.112, allocations: 8.336 MB / 2.885 GB, free: 72.2 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006799/6.119, allocations: 372.6 kB / 2.885 GB, free: 72 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001045/6.12, allocations: 197.1 kB / 2.886 GB, free: 71.94 MB / 0.9011 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.001556/6.122, allocations: 207 kB / 2.886 GB, free: 71.8 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001908/6.124, allocations: 437.2 kB / 2.886 GB, free: 71.57 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01057/6.134, allocations: 4.456 MB / 2.891 GB, free: 68.8 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.235e-05/6.134, allocations: 16 kB / 2.891 GB, free: 68.78 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/6.134, allocations: 0 / 2.891 GB, free: 68.78 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006009/6.14, allocations: 4.809 MB / 2.895 GB, free: 63.77 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01657/6.157, allocations: 8.97 MB / 2.904 GB, free: 54.8 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.444e-06/6.157, allocations: 0 / 2.904 GB, free: 54.8 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002326/6.159, allocations: 429 kB / 2.904 GB, free: 54.39 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005056/6.164, allocations: 1.859 MB / 2.906 GB, free: 52.55 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002167/6.165, allocations: 31.97 kB / 2.906 GB, free: 52.52 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006071/6.171, allocations: 3.559 MB / 2.91 GB, free: 48.89 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.212e-06/6.171, allocations: 1.125 kB / 2.91 GB, free: 48.89 MB / 0.9011 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01005/6.181, allocations: 6.73 MB / 2.916 GB, free: 42.15 MB / 0.9011 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0124/6.193, allocations: 9.528 MB / 2.926 GB, free: 32.6 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003326/6.197, allocations: 1.01 MB / 2.927 GB, free: 31.56 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001667/6.198, allocations: 11.98 kB / 2.927 GB, free: 31.55 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004559/6.203, allocations: 223.2 kB / 2.927 GB, free: 31.33 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003345/6.203, allocations: 105.3 kB / 2.927 GB, free: 31.23 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003662/6.204, allocations: 87.92 kB / 2.927 GB, free: 31.15 MB / 0.9011 GB Notification: Performance of sort global known variables: time 0.00648/6.21, allocations: 3.06 MB / 2.93 GB, free: 28.1 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.01417/6.224, allocations: 3.032 MB / 2.933 GB, free: 25.07 MB / 0.9011 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.002922/6.227, allocations: 1.193 MB / 2.934 GB, free: 24 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.01763/6.245, allocations: 7.108 MB / 2.941 GB, free: 16.87 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 1.105e-05/6.245, allocations: 2.406 kB / 2.941 GB, free: 16.87 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.004681/6.25, allocations: 2.104 MB / 2.943 GB, free: 14.77 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01152/6.261, allocations: 2.312 MB / 2.945 GB, free: 12.51 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01796/6.279, allocations: 7.78 MB / 2.953 GB, free: 4.68 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004398/6.284, allocations: 3.727 MB / 2.957 GB, free: 0.918 MB / 0.9011 GB Notification: Performance of SimCode: time 2.074e-06/6.284, allocations: 0 / 2.957 GB, free: 0.918 MB / 0.9011 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)