Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="Buildings_maint_8_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 8.0.1-maint.8.0.x/package.mo): time 1.407/1.407, allocations: 285.5 MB / 292.8 MB, free: 10.45 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.001034/0.001034, allocations: 179.2 kB / 361.1 MB, free: 7.121 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.154/1.154, allocations: 205.1 MB / 0.6195 GB, free: 10.34 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.0007853/0.0007853, allocations: 85.5 kB / 0.7325 GB, free: 44.29 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.221/0.2218, allocations: 121.4 MB / 0.8511 GB, free: 2.949 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5478/0.7696, allocations: 115.3 MB / 0.9637 GB, free: 77.97 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7934/1.563, allocations: 419.5 MB / 1.373 GB, free: 146.9 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002304/1.563, allocations: 85.62 kB / 1.374 GB, free: 146.9 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 4.506/6.069, allocations: 1.454 GB / 2.827 GB, free: 135.7 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.83e-05/6.069, allocations: 11.44 kB / 2.827 GB, free: 135.7 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004812/6.074, allocations: 0.8264 MB / 2.828 GB, free: 135.3 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01674/6.091, allocations: 6.869 MB / 2.835 GB, free: 134.5 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001731/6.091, allocations: 102 kB / 2.835 GB, free: 134.5 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001051/6.092, allocations: 211.4 kB / 2.835 GB, free: 134.5 MB / 0.9636 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007353/6.1, allocations: 4.857 MB / 2.84 GB, free: 134.5 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007061/6.107, allocations: 4.892 MB / 2.845 GB, free: 133.8 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.066e-05/6.107, allocations: 13.59 kB / 2.845 GB, free: 133.8 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004379/6.107, allocations: 14.33 kB / 2.845 GB, free: 133.8 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.407e-05/6.107, allocations: 79.31 kB / 2.845 GB, free: 133.8 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02964/6.137, allocations: 22.28 MB / 2.867 GB, free: 123.9 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003296/6.14, allocations: 2.643 MB / 2.869 GB, free: 123.9 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001801/6.142, allocations: 1.717 MB / 2.871 GB, free: 123.9 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0113/6.153, allocations: 6.819 MB / 2.877 GB, free: 121.7 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002234/6.156, allocations: 1.749 MB / 2.879 GB, free: 121.6 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=157): time 4.218e-06/6.156, allocations: 0 / 2.879 GB, free: 121.6 MB / 0.9636 GB Notification: Performance of matching and sorting (n=157): time 0.01056/6.166, allocations: 4.788 MB / 2.884 GB, free: 121.3 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.974e-05/6.166, allocations: 152.7 kB / 2.884 GB, free: 121.1 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006717/6.173, allocations: 4.055 MB / 2.888 GB, free: 120.8 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 0.0006702/6.174, allocations: 35.14 kB / 2.888 GB, free: 120.8 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.001556/6.175, allocations: 1.608 MB / 2.89 GB, free: 120 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 0.001232/6.177, allocations: 0.5358 MB / 2.89 GB, free: 119.6 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001782/6.177, allocations: 0 / 2.89 GB, free: 119.6 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0001276/6.177, allocations: 422.2 kB / 2.89 GB, free: 119.3 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00184/6.179, allocations: 1.558 MB / 2.892 GB, free: 119.3 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002309/6.181, allocations: 2.837 MB / 2.895 GB, free: 117.7 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003513/6.185, allocations: 2.16 MB / 2.897 GB, free: 117.6 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.525e-05/6.185, allocations: 11.03 kB / 2.897 GB, free: 117.6 MB / 0.9636 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.05815/6.243, allocations: 11.13 MB / 2.908 GB, free: 115.5 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 0.002627/6.245, allocations: 14.99 MB / 2.922 GB, free: 99.51 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.445e-05/6.246, allocations: 31.56 kB / 2.922 GB, free: 99.51 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0685/6.314, allocations: 10.73 MB / 2.933 GB, free: 98.59 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003188/6.317, allocations: 0.6918 MB / 2.934 GB, free: 98.52 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01054/6.328, allocations: 5.868 MB / 2.939 GB, free: 95.86 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005884/6.334, allocations: 443.1 kB / 2.94 GB, free: 95.7 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007968/6.335, allocations: 198.7 kB / 2.94 GB, free: 95.68 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.148e-05/6.335, allocations: 2.812 kB / 2.94 GB, free: 95.68 MB / 0.9636 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.05755/6.392, allocations: 10.41 MB / 2.95 GB, free: 93.85 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001068/6.392, allocations: 34.69 kB / 2.95 GB, free: 93.85 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06867/6.461, allocations: 10.69 MB / 2.961 GB, free: 88.68 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002968/6.464, allocations: 0.6851 MB / 2.961 GB, free: 88 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01251/6.477, allocations: 8.323 MB / 2.969 GB, free: 79.43 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005363/6.482, allocations: 370 kB / 2.97 GB, free: 79.07 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005027/6.482, allocations: 195.8 kB / 2.97 GB, free: 78.88 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.0009028/6.483, allocations: 214.3 kB / 2.97 GB, free: 78.66 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001081/6.484, allocations: 435.5 kB / 2.971 GB, free: 78.23 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008295/6.493, allocations: 4.46 MB / 2.975 GB, free: 73.84 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.116e-05/6.493, allocations: 24 kB / 2.975 GB, free: 73.82 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/6.493, allocations: 0 / 2.975 GB, free: 73.82 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00565/6.499, allocations: 4.808 MB / 2.98 GB, free: 68.78 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01462/6.513, allocations: 8.962 MB / 2.988 GB, free: 59.8 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.235e-06/6.513, allocations: 8.062 kB / 2.988 GB, free: 59.8 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00227/6.515, allocations: 431.4 kB / 2.989 GB, free: 59.38 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005078/6.521, allocations: 1.861 MB / 2.991 GB, free: 57.54 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002292/6.521, allocations: 31.95 kB / 2.991 GB, free: 57.5 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005967/6.527, allocations: 3.54 MB / 2.994 GB, free: 53.89 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/6.527, allocations: 0 / 2.994 GB, free: 53.89 MB / 0.9636 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009612/6.536, allocations: 6.745 MB / 3.001 GB, free: 47.13 MB / 0.9636 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01186/6.548, allocations: 9.532 MB / 3.01 GB, free: 37.57 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003084/6.551, allocations: 1.022 MB / 3.011 GB, free: 36.53 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001041/6.553, allocations: 4 kB / 3.011 GB, free: 36.52 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003281/6.556, allocations: 223.2 kB / 3.011 GB, free: 36.3 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002845/6.556, allocations: 105.8 kB / 3.011 GB, free: 36.2 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002402/6.556, allocations: 83.94 kB / 3.011 GB, free: 36.12 MB / 0.9636 GB Notification: Performance of sort global known variables: time 0.003836/6.56, allocations: 3.06 MB / 3.014 GB, free: 33.07 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.01016/6.57, allocations: 3.025 MB / 3.017 GB, free: 30.04 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.002031/6.572, allocations: 1.222 MB / 3.018 GB, free: 28.95 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0151/6.588, allocations: 7.1 MB / 3.025 GB, free: 21.81 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 9.407e-06/6.588, allocations: 4.656 kB / 3.025 GB, free: 21.81 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.004411/6.592, allocations: 2.112 MB / 3.027 GB, free: 19.7 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01114/6.603, allocations: 2.307 MB / 3.03 GB, free: 17.46 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01513/6.618, allocations: 7.794 MB / 3.037 GB, free: 9.617 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003459/6.622, allocations: 3.727 MB / 3.041 GB, free: 5.855 MB / 0.9636 GB Notification: Performance of SimCode: time 1.403e-06/6.622, allocations: 0 / 3.041 GB, free: 5.855 MB / 0.9636 GB (rm -f Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal.fmu > Buildings_maint.8.0.x_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)