Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Validation.LosslessPipe.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: translateModel(Buildings.Fluid.FixedResistances.Validation.LosslessPipe,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|res.dp|res.sta_a.T|res.sta_b.T",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Validation.LosslessPipe") translateModel(Buildings.Fluid.FixedResistances.Validation.LosslessPipe,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|res.dp|res.sta_a.T|res.sta_b.T",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Validation.LosslessPipe") [: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.183/1.183, allocations: 249.4 MB / 256.7 MB, free: 7.078 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.0009949/0.0009953, allocations: 185.2 kB / 316 MB, free: 3.605 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.089/1.089, allocations: 205.2 MB / 0.5667 GB, free: 15.65 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.0008376/0.0008378, allocations: 99.84 kB / 0.671 GB, free: 4.773 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.511e-06/5.531e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.145/0.145, allocations: 106.3 MB / 0.8846 GB, free: 12.69 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.54/3.685, allocations: 2.178 GB / 3.063 GB, free: 227.7 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001986/3.686, allocations: 83.95 kB / 3.063 GB, free: 227.6 MB / 0.8698 GB Notification: Performance of FrontEnd: time 0.3378/4.023, allocations: 207.8 MB / 3.266 GB, free: 15.12 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.894e-05/4.023, allocations: 12 kB / 3.266 GB, free: 15.11 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: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.001361/4.025, allocations: 0.5953 MB / 3.266 GB, free: 14.46 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.505e-05/4.025, allocations: 12.03 kB / 3.266 GB, free: 14.45 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002414/4.025, allocations: 51.67 kB / 3.266 GB, free: 14.4 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003193/4.025, allocations: 279.2 kB / 3.267 GB, free: 14.09 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.244e-05/4.025, allocations: 4 kB / 3.267 GB, free: 14.08 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.049e-05/4.025, allocations: 12 kB / 3.267 GB, free: 14.07 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002536/4.026, allocations: 172.3 kB / 3.267 GB, free: 13.9 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00026/4.026, allocations: 202.5 kB / 3.267 GB, free: 13.7 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/4.026, allocations: 0 / 3.267 GB, free: 13.7 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.093e-05/4.026, allocations: 0 / 3.267 GB, free: 13.7 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.027e-05/4.026, allocations: 11.98 kB / 3.267 GB, free: 13.69 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001075/4.027, allocations: 0.8339 MB / 3.268 GB, free: 12.79 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001405/4.027, allocations: 122.5 kB / 3.268 GB, free: 12.66 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001042/4.027, allocations: 96.8 kB / 3.268 GB, free: 12.57 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002219/4.028, allocations: 194.2 kB / 3.268 GB, free: 12.34 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.542e-05/4.028, allocations: 46.48 kB / 3.268 GB, free: 12.29 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=14): time 1.173e-06/4.028, allocations: 0 / 3.268 GB, free: 12.29 MB / 0.8698 GB Notification: Performance of matching and sorting (n=14): time 0.0005077/4.028, allocations: 221.2 kB / 3.268 GB, free: 12.06 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.744e-05/4.028, allocations: 51.41 kB / 3.269 GB, free: 12 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000107/4.028, allocations: 165.7 kB / 3.269 GB, free: 11.83 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.924e-05/4.028, allocations: 25.7 kB / 3.269 GB, free: 11.8 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 4.206e-05/4.028, allocations: 124.2 kB / 3.269 GB, free: 11.67 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.815e-05/4.028, allocations: 47.3 kB / 3.269 GB, free: 11.62 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.206e-05/4.028, allocations: 0 / 3.269 GB, free: 11.62 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 4.359e-05/4.029, allocations: 330.7 kB / 3.269 GB, free: 11.29 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.283e-05/4.029, allocations: 67.95 kB / 3.269 GB, free: 11.23 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001084/4.029, allocations: 112.2 kB / 3.269 GB, free: 11.1 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.983e-05/4.029, allocations: 79.19 kB / 3.269 GB, free: 11.03 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.512e-06/4.029, allocations: 0 / 3.269 GB, free: 11.03 MB / 0.8698 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002455/4.029, allocations: 205.3 kB / 3.27 GB, free: 10.82 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.15e-05/4.029, allocations: 4 kB / 3.27 GB, free: 10.82 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/4.029, allocations: 0 / 3.27 GB, free: 10.82 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.232e-05/4.029, allocations: 4 kB / 3.27 GB, free: 10.81 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002423/4.029, allocations: 43.95 kB / 3.27 GB, free: 10.77 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/4.029, allocations: 4 kB / 3.27 GB, free: 10.77 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001898/4.03, allocations: 23.83 kB / 3.27 GB, free: 10.74 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.055e-05/4.03, allocations: 8 kB / 3.27 GB, free: 10.73 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.288e-05/4.03, allocations: 116.1 kB / 3.27 GB, free: 10.62 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.054e-05/4.03, allocations: 15.81 kB / 3.27 GB, free: 10.6 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.425e-05/4.03, allocations: 21.47 kB / 3.27 GB, free: 10.59 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/4.03, allocations: 3.906 kB / 3.27 GB, free: 10.58 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/4.03, allocations: 4 kB / 3.27 GB, free: 10.58 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/4.03, allocations: 3.938 kB / 3.27 GB, free: 10.57 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006846/4.031, allocations: 0.6529 MB / 3.271 GB, free: 9.855 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/4.031, allocations: 0 / 3.271 GB, free: 9.855 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001985/4.031, allocations: 48.06 kB / 3.271 GB, free: 9.809 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/4.031, allocations: 4 kB / 3.271 GB, free: 9.805 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.795e-05/4.031, allocations: 3.984 kB / 3.271 GB, free: 9.801 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.786e-06/4.031, allocations: 4 kB / 3.271 GB, free: 9.797 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/4.031, allocations: 7.938 kB / 3.271 GB, free: 9.789 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002778/4.031, allocations: 433 kB / 3.271 GB, free: 9.285 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 7.296e-05/4.031, allocations: 108.9 kB / 3.271 GB, free: 9.16 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.802e-05/4.031, allocations: 4 kB / 3.271 GB, free: 9.156 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002053/4.031, allocations: 19.89 kB / 3.271 GB, free: 9.137 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.369e-05/4.031, allocations: 15.98 kB / 3.271 GB, free: 9.121 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.401e-05/4.031, allocations: 4 kB / 3.271 GB, free: 9.117 MB / 0.8698 GB Notification: Performance of sort global known variables: time 5.733e-05/4.032, allocations: 132.2 kB / 3.271 GB, free: 8.988 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0004403/4.032, allocations: 111.8 kB / 3.271 GB, free: 8.879 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009542/4.033, allocations: 1.027 MB / 3.272 GB, free: 7.855 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0002451/4.033, allocations: 175.8 kB / 3.273 GB, free: 7.684 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/4.033, allocations: 0 / 3.273 GB, free: 7.684 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001168/4.033, allocations: 91.83 kB / 3.273 GB, free: 7.594 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004494/4.034, allocations: 78.73 kB / 3.273 GB, free: 7.52 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004713/4.034, allocations: 313.3 kB / 3.273 GB, free: 7.172 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000244/4.035, allocations: 0.7897 MB / 3.274 GB, free: 6.355 MB / 0.8698 GB Notification: Performance of SimCode: time 2.51e-07/4.035, allocations: 0 / 3.274 GB, free: 6.355 MB / 0.8698 GB Notification: Performance of Templates: time 0.2545/4.289, allocations: 8.667 MB / 3.282 GB, free: 356.9 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Validation.LosslessPipe.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Validation.LosslessPipe.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Validation.LosslessPipe.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Validation.LosslessPipe.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Validation.LosslessPipe.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Validation.LosslessPipe -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Validation.LosslessPipe.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Validation.LosslessPipe_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_FixedResistances_Validation_LosslessPipe.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Validation.LosslessPipe.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,res.dp,res.sta_a.T,res.sta_b.T Variables in the result:m_flow.duration,m_flow.height,m_flow.offset,m_flow.startTime,res._dp_start,res._m_flow_start,res.allowFlowReversal,res.dp,res.from_dp,res.m_flow_nominal,res.m_flow_small,res.show_T,res.sta_a.T,res.sta_b.T,sin.T,sin.X[1],sin.X[2],sin.flowDirection,sin.nPorts,sin.p,sin.verifyInputs,sou.T,sou.X[1],sou.X[2],sou.flowDirection,sou.m_flow,sou.nPorts,sou.verifyInputs,time