Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.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.Sensors.Examples.TraceSubstances,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|masFraSou.V|vol.C.1.|senTraSub.C|senTraSubNoFlorRev.C|senPPM.ppm|masFraVol.V",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances") translateModel(Buildings.Fluid.Sensors.Examples.TraceSubstances,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|masFraSou.V|vol.C.1.|senTraSub.C|senTraSubNoFlorRev.C|senPPM.ppm|masFraVol.V",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances") [: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 1.963/1.963, allocations: 390.4 MB / 397.7 MB, free: 11.3 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.001061/0.001061, allocations: 186 kB / 490.8 MB, free: 1.996 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.293/1.293, allocations: 221.4 MB / 0.7863 GB, free: 13.73 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.001082/0.001082, allocations: 89.92 kB / 0.9264 GB, free: 14.27 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 7.123e-06/7.143e-06, allocations: 4 kB / 1.072 GB, free: 182.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2226/0.2226, allocations: 143 MB / 1.212 GB, free: 40.22 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.728/3.951, allocations: 1.973 GB / 3.184 GB, free: 342.3 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00024/3.951, allocations: 91.89 kB / 3.184 GB, free: 342.2 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.805/5.756, allocations: 0.6663 GB / 3.851 GB, free: 98.89 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001238/5.756, allocations: 31.98 kB / 3.851 GB, free: 98.86 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: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.003772/5.76, allocations: 1.328 MB / 3.852 GB, free: 97.48 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.215e-05/5.76, allocations: 8.031 kB / 3.852 GB, free: 97.47 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001995/5.762, allocations: 262.3 kB / 3.852 GB, free: 97.21 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003518/5.765, allocations: 1.109 MB / 3.853 GB, free: 96.06 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.915e-05/5.765, allocations: 32 kB / 3.853 GB, free: 96.03 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003317/5.766, allocations: 56 kB / 3.853 GB, free: 95.98 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001691/5.768, allocations: 0.7771 MB / 3.854 GB, free: 95.2 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001796/5.769, allocations: 0.9989 MB / 3.855 GB, free: 94.13 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.524e-05/5.769, allocations: 7.938 kB / 3.855 GB, free: 94.12 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.148e-05/5.769, allocations: 0 / 3.855 GB, free: 94.12 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.697e-05/5.77, allocations: 34 kB / 3.855 GB, free: 94.09 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006069/5.776, allocations: 5.864 MB / 3.861 GB, free: 87.8 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00077/5.776, allocations: 0.5122 MB / 3.861 GB, free: 87.28 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003819/5.777, allocations: 306.5 kB / 3.862 GB, free: 86.98 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005379/5.777, allocations: 315.8 kB / 3.862 GB, free: 86.61 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.666e-05/5.777, allocations: 39 kB / 3.862 GB, free: 86.56 MB / 1.151 GB Notification: Performance of pre-optimization done (n=49): time 2.615e-06/5.777, allocations: 0 / 3.862 GB, free: 86.56 MB / 1.151 GB Notification: Performance of matching and sorting (n=49): time 0.001515/5.779, allocations: 0.6036 MB / 3.863 GB, free: 85.96 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.107e-05/5.779, allocations: 55.84 kB / 3.863 GB, free: 85.89 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007147/5.78, allocations: 0.5231 MB / 3.863 GB, free: 85.36 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 7.285e-05/5.78, allocations: 33.7 kB / 3.863 GB, free: 85.32 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002195/5.78, allocations: 422.5 kB / 3.864 GB, free: 84.9 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.000168/5.78, allocations: 169.5 kB / 3.864 GB, free: 84.73 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.73e-05/5.78, allocations: 0 / 3.864 GB, free: 84.73 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001296/5.78, allocations: 382.8 kB / 3.864 GB, free: 84.35 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003496/5.781, allocations: 237.5 kB / 3.864 GB, free: 84.12 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005314/5.781, allocations: 0.553 MB / 3.865 GB, free: 83.41 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000568/5.782, allocations: 370.6 kB / 3.865 GB, free: 83.05 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.593e-06/5.782, allocations: 11.94 kB / 3.865 GB, free: 83.04 MB / 1.151 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001242/5.783, allocations: 0.7868 MB / 3.866 GB, free: 82.24 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/5.783, allocations: 4 kB / 3.866 GB, free: 82.24 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.678e-05/5.783, allocations: 11.98 kB / 3.866 GB, free: 82.23 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.851e-05/5.783, allocations: 16.81 kB / 3.866 GB, free: 82.21 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005488/5.784, allocations: 155.8 kB / 3.866 GB, free: 82.06 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.906e-05/5.784, allocations: 12 kB / 3.866 GB, free: 82.05 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001061/5.785, allocations: 115.2 kB / 3.866 GB, free: 81.93 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.872e-05/5.785, allocations: 43.98 kB / 3.866 GB, free: 81.89 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 86 * 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.00015/5.785, allocations: 132.7 kB / 3.867 GB, free: 81.75 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001554/5.785, allocations: 75.06 kB / 3.867 GB, free: 81.68 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009533/5.786, allocations: 0.6081 MB / 3.867 GB, free: 81.07 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/5.786, allocations: 8 kB / 3.867 GB, free: 81.06 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.696e-06/5.786, allocations: 4 kB / 3.867 GB, free: 81.05 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006662/5.787, allocations: 0.5164 MB / 3.868 GB, free: 80.52 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002538/5.789, allocations: 1.544 MB / 3.869 GB, free: 78.91 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/5.789, allocations: 0 / 3.869 GB, free: 78.91 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005457/5.79, allocations: 119.7 kB / 3.869 GB, free: 78.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.022e-05/5.79, allocations: 4 kB / 3.869 GB, free: 78.79 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.21e-05/5.79, allocations: 11.98 kB / 3.869 GB, free: 78.78 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.639e-06/5.79, allocations: 4 kB / 3.869 GB, free: 78.78 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/5.79, allocations: 8.219 kB / 3.869 GB, free: 78.77 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001221/5.791, allocations: 1.089 MB / 3.87 GB, free: 77.59 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004131/5.792, allocations: 216 kB / 3.871 GB, free: 77.36 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001616/5.792, allocations: 8 kB / 3.871 GB, free: 77.36 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006917/5.793, allocations: 55.81 kB / 3.871 GB, free: 77.3 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.383e-05/5.793, allocations: 39.64 kB / 3.871 GB, free: 77.26 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.695e-05/5.793, allocations: 16 kB / 3.871 GB, free: 77.25 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0004429/5.793, allocations: 403.1 kB / 3.871 GB, free: 76.86 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001522/5.795, allocations: 435.1 kB / 3.872 GB, free: 76.43 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.m,vol.dynBal.mC[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 49 * 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.003276/5.798, allocations: 2.142 MB / 3.874 GB, free: 74.21 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0008448/5.799, allocations: 0.5667 MB / 3.874 GB, free: 73.64 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/5.799, allocations: 10.06 kB / 3.874 GB, free: 73.64 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0003007/5.799, allocations: 259.9 kB / 3.874 GB, free: 73.38 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001754/5.801, allocations: 352.9 kB / 3.875 GB, free: 73.04 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00299/5.804, allocations: 1.5 MB / 3.876 GB, free: 71.49 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009263/5.805, allocations: 1.222 MB / 3.877 GB, free: 70.25 MB / 1.151 GB Notification: Performance of SimCode: time 9.32e-07/5.805, allocations: 0 / 3.877 GB, free: 70.25 MB / 1.151 GB Notification: Performance of Templates: time 0.03837/5.843, allocations: 23.97 MB / 3.901 GB, free: 46.45 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.makefile (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.sim & ./Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sensors_Examples_TraceSubstances.csv","../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches