Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Fluid.FixedResistances.Examples.FlowJunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|spl.port_1.m_flow|spl.port_2.m_flow|spl.port_3.m_flow|spl.port_1.p|spl.port_2.p|spl.port_3.p|spl.res1.dp|spl.res2.dp|spl.res3.dp|senTem1.T|senTem2.T|senTem3.T",fileNamePrefix="Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction") translateModel(Buildings.Fluid.FixedResistances.Examples.FlowJunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|spl.port_1.m_flow|spl.port_2.m_flow|spl.port_3.m_flow|spl.port_1.p|spl.port_2.p|spl.port_3.p|spl.res1.dp|spl.res2.dp|spl.res3.dp|senTem1.T|senTem2.T|senTem3.T",fileNamePrefix="Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction") [: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 10.0.0-master/package.mo): time 2.067/2.067, allocations: 390.4 MB / 397.7 MB, free: 11.26 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001245/0.001245, allocations: 177.3 kB / 490.8 MB, free: 1.934 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.287/1.287, allocations: 221.4 MB / 0.7863 GB, free: 13.67 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000958/0.000958, allocations: 83.05 kB / 0.9264 GB, free: 14.21 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 7.634e-06/7.914e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2708/0.2708, allocations: 143 MB / 1.212 GB, free: 40.14 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.735/4.006, allocations: 1.928 GB / 3.14 GB, free: 384.4 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002236/4.006, allocations: 87.89 kB / 3.14 GB, free: 384.3 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.994/7, allocations: 0.9311 GB / 4.071 GB, free: 217.7 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.000308/7, allocations: 36.17 kB / 4.071 GB, free: 217.7 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 197 * Number of variables: 197 Notification: Performance of Generate backend data structure: time 0.006442/7.007, allocations: 1.532 MB / 4.072 GB, free: 217 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.372e-05/7.007, allocations: 7.438 kB / 4.072 GB, free: 217 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003801/7.011, allocations: 424.6 kB / 4.073 GB, free: 216.9 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004565/7.015, allocations: 1.107 MB / 4.074 GB, free: 216.7 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.835e-05/7.015, allocations: 25.44 kB / 4.074 GB, free: 216.7 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005306/7.016, allocations: 51.38 kB / 4.074 GB, free: 216.7 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002351/7.018, allocations: 0.7445 MB / 4.075 GB, free: 216.7 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001818/7.02, allocations: 0.7283 MB / 4.075 GB, free: 216.6 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.31e-05/7.02, allocations: 0 / 4.075 GB, free: 216.6 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.562e-05/7.02, allocations: 2.516 kB / 4.075 GB, free: 216.6 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-05/7.02, allocations: 33.56 kB / 4.075 GB, free: 216.6 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00632/7.027, allocations: 3.973 MB / 4.079 GB, free: 214.8 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001016/7.028, allocations: 0.5852 MB / 4.08 GB, free: 214.7 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000469/7.028, allocations: 377.9 kB / 4.08 GB, free: 214.7 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007739/7.029, allocations: 0.6446 MB / 4.081 GB, free: 214.1 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.156e-05/7.029, allocations: 42.92 kB / 4.081 GB, free: 214 MB / 1.151 GB Notification: Performance of pre-optimization done (n=60): time 2.595e-06/7.029, allocations: 6.062 kB / 4.081 GB, free: 214 MB / 1.151 GB Notification: Performance of matching and sorting (n=60): time 0.002717/7.032, allocations: 0.9078 MB / 4.082 GB, free: 213.9 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.636e-05/7.032, allocations: 59.5 kB / 4.082 GB, free: 213.9 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00125/7.033, allocations: 0.6018 MB / 4.082 GB, free: 213.8 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 9.933e-05/7.033, allocations: 25.7 kB / 4.082 GB, free: 213.7 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003209/7.034, allocations: 343.1 kB / 4.083 GB, free: 213.6 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002718/7.034, allocations: 203.5 kB / 4.083 GB, free: 213.5 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.193e-05/7.034, allocations: 0 / 4.083 GB, free: 213.5 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001059/7.034, allocations: 327.6 kB / 4.083 GB, free: 213.2 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003844/7.034, allocations: 240.8 kB / 4.083 GB, free: 213.2 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005172/7.035, allocations: 376.1 kB / 4.084 GB, free: 213 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007403/7.036, allocations: 384.8 kB / 4.084 GB, free: 213 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.76e-06/7.036, allocations: 0 / 4.084 GB, free: 213 MB / 1.151 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001604/7.037, allocations: 0.7801 MB / 4.085 GB, free: 212.9 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.00018/7.038, allocations: 454.1 kB / 4.085 GB, free: 212.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.938e-06/7.038, allocations: 6.141 kB / 4.085 GB, free: 212.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.362e-05/7.038, allocations: 7.812 kB / 4.085 GB, free: 212.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007374/7.038, allocations: 134.3 kB / 4.085 GB, free: 212.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.809e-05/7.038, allocations: 11.66 kB / 4.085 GB, free: 212.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001409/7.04, allocations: 121.9 kB / 4.086 GB, free: 212.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.382e-05/7.04, allocations: 30.3 kB / 4.086 GB, free: 212.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.029e-05/7.04, allocations: 3.781 kB / 4.086 GB, free: 212.4 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001125/7.041, allocations: 0.6418 MB / 4.086 GB, free: 212.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/7.041, allocations: 7.562 kB / 4.086 GB, free: 212.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.798e-06/7.041, allocations: 8.953 kB / 4.086 GB, free: 212.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006198/7.042, allocations: 131.8 kB / 4.086 GB, free: 212.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.457e-06/7.042, allocations: 9.281 kB / 4.086 GB, free: 212.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001185/7.043, allocations: 120.4 kB / 4.087 GB, free: 212.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.967e-05/7.043, allocations: 27.39 kB / 4.087 GB, free: 212.4 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 69 * 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 0.0001852/7.043, allocations: 114.1 kB / 4.087 GB, free: 212.3 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002439/7.043, allocations: 99.5 kB / 4.087 GB, free: 212.3 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001553/7.045, allocations: 0.8076 MB / 4.088 GB, free: 212.2 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.394e-06/7.045, allocations: 7.156 kB / 4.088 GB, free: 212.2 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/7.045, allocations: 0 / 4.088 GB, free: 212.2 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001132/7.046, allocations: 0.9799 MB / 4.088 GB, free: 211.8 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003692/7.05, allocations: 2.006 MB / 4.09 GB, free: 211.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.532e-06/7.05, allocations: 3.844 kB / 4.09 GB, free: 211.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007411/7.051, allocations: 157.3 kB / 4.091 GB, free: 211.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.064e-05/7.051, allocations: 3.844 kB / 4.091 GB, free: 211.3 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.239e-05/7.051, allocations: 7.438 kB / 4.091 GB, free: 211.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.184e-05/7.051, allocations: 15.38 kB / 4.091 GB, free: 211.3 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.532e-06/7.051, allocations: 8.984 kB / 4.091 GB, free: 211.3 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001724/7.052, allocations: 1.381 MB / 4.092 GB, free: 210.8 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005504/7.053, allocations: 257.5 kB / 4.092 GB, free: 210.7 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002432/7.053, allocations: 11.62 kB / 4.092 GB, free: 210.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001121/7.054, allocations: 117 kB / 4.092 GB, free: 210.7 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001316/7.055, allocations: 51.03 kB / 4.092 GB, free: 210.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.612e-05/7.055, allocations: 21.44 kB / 4.092 GB, free: 210.7 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0006341/7.055, allocations: 478.3 kB / 4.093 GB, free: 210.6 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002246/7.058, allocations: 0.689 MB / 4.094 GB, free: 210.5 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 6 (spl.vol.dynBal.medium.Xi[1],spl.vol.dynBal.U,spl.vol.dynBal.m,senTem1.T,senTem2.T,senTem3.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 63 * 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.004686/7.062, allocations: 2.593 MB / 4.096 GB, free: 209.7 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001696/7.064, allocations: 0.9361 MB / 4.097 GB, free: 209.7 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/7.064, allocations: 0 / 4.097 GB, free: 209.7 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0004843/7.064, allocations: 330.9 kB / 4.097 GB, free: 209.7 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003036/7.067, allocations: 0.5876 MB / 4.098 GB, free: 209.6 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003674/7.071, allocations: 1.738 MB / 4.1 GB, free: 209.2 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001061/7.072, allocations: 1.246 MB / 4.101 GB, free: 208.4 MB / 1.151 GB Notification: Performance of SimCode: time 4.91e-07/7.072, allocations: 0 / 4.101 GB, free: 208.4 MB / 1.151 GB Notification: Performance of Templates: time 0.07088/7.143, allocations: 35.22 MB / 4.135 GB, free: 207 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction.makefile (rm -f Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe ; mkfifo Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe >> ../files/Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction.sim & ./Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_FixedResistances_Examples_FlowJunction.csv","../files/Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches