Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.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.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|C.C|C1.C|vol4.C.1.|C2.C|C3.C",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource") translateModel(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|C.C|C1.C|vol4.C.1.|C2.C|C3.C",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource") [: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.052/2.052, allocations: 390.4 MB / 397.7 MB, free: 11.27 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.001423/0.001423, allocations: 181.2 kB / 490.8 MB, free: 1.957 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.354/1.354, allocations: 221.3 MB / 0.7863 GB, free: 13.64 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.001066/0.001066, allocations: 98.08 kB / 0.9264 GB, free: 14.16 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 7.313e-06/7.664e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2929/0.293, allocations: 143 MB / 1.212 GB, free: 40.12 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.365/4.658, allocations: 1.98 GB / 3.191 GB, free: 355.1 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002628/4.659, allocations: 91.94 kB / 3.192 GB, free: 355 MB / 1.151 GB Notification: Performance of FrontEnd: time 6.767/11.43, allocations: 2.073 GB / 5.264 GB, free: 37.1 MB / 1.198 GB Notification: Performance of Transformations before backend: time 0.0004171/11.43, allocations: 99.91 kB / 5.264 GB, free: 37 MB / 1.198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 693 * Number of variables: 693 Notification: Performance of Generate backend data structure: time 0.01062/11.44, allocations: 3.485 MB / 5.268 GB, free: 33.46 MB / 1.198 GB Notification: Performance of prepare preOptimizeDAE: time 4.369e-05/11.44, allocations: 12.03 kB / 5.268 GB, free: 33.45 MB / 1.198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007182/11.44, allocations: 0.9788 MB / 5.269 GB, free: 32.46 MB / 1.198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008749/11.45, allocations: 2.945 MB / 5.272 GB, free: 29.45 MB / 1.198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000254/11.45, allocations: 172.8 kB / 5.272 GB, free: 29.27 MB / 1.198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001117/11.45, allocations: 175.9 kB / 5.272 GB, free: 29.09 MB / 1.198 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005912/11.46, allocations: 2.514 MB / 5.274 GB, free: 26.57 MB / 1.198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005977/11.47, allocations: 2.81 MB / 5.277 GB, free: 23.68 MB / 1.198 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.14e-05/11.47, allocations: 7.688 kB / 5.277 GB, free: 23.68 MB / 1.198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002517/11.47, allocations: 7.906 kB / 5.277 GB, free: 23.67 MB / 1.198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.974e-05/11.47, allocations: 101.3 kB / 5.277 GB, free: 23.57 MB / 1.198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01533/11.48, allocations: 13.57 MB / 5.291 GB, free: 8.902 MB / 1.198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001323/11.48, allocations: 1.03 MB / 5.292 GB, free: 7.863 MB / 1.198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001165/11.48, allocations: 1.04 MB / 5.293 GB, free: 6.828 MB / 1.198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004571/11.49, allocations: 329.2 kB / 5.293 GB, free: 6.453 MB / 1.198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.985e-05/11.49, allocations: 72.39 kB / 5.293 GB, free: 6.371 MB / 1.198 GB Notification: Performance of pre-optimization done (n=182): time 3.667e-06/11.49, allocations: 0 / 5.293 GB, free: 6.371 MB / 1.198 GB Notification: Performance of matching and sorting (n=182): time 0.004134/11.49, allocations: 1.952 MB / 5.295 GB, free: 4.406 MB / 1.198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.069e-05/11.49, allocations: 73.41 kB / 5.295 GB, free: 4.324 MB / 1.198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002078/11.49, allocations: 1.448 MB / 5.296 GB, free: 2.855 MB / 1.198 GB Notification: Performance of collectPreVariables (initialization): time 0.0002797/11.49, allocations: 32.77 kB / 5.296 GB, free: 2.82 MB / 1.198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004842/11.49, allocations: 0.994 MB / 5.297 GB, free: 1.809 MB / 1.198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007167/11.49, allocations: 0.6197 MB / 5.298 GB, free: 1.18 MB / 1.198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.561e-05/11.49, allocations: 0 / 5.298 GB, free: 1.18 MB / 1.198 GB Notification: Performance of setup shared object (initialization): time 0.0001099/11.49, allocations: 393.8 kB / 5.298 GB, free: 0.7891 MB / 1.198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001003/11.49, allocations: 0.742 MB / 5.299 GB, free: 44 kB / 1.198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001717/11.5, allocations: 1.384 MB / 5.3 GB, free: 14.37 MB / 1.214 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001569/11.5, allocations: 1.023 MB / 5.301 GB, free: 13.35 MB / 1.214 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.447e-06/11.5, allocations: 4 kB / 5.301 GB, free: 13.34 MB / 1.214 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.004458/11.5, allocations: 2.279 MB / 5.304 GB, free: 11.05 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 0.002374/11.5, allocations: 5.475 MB / 5.309 GB, free: 5.035 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.668e-05/11.5, allocations: 19.97 kB / 5.309 GB, free: 5.016 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.938e-05/11.5, allocations: 28 kB / 5.309 GB, free: 4.988 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002876/11.51, allocations: 0.5083 MB / 5.31 GB, free: 4.488 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002576/11.51, allocations: 4.2 MB / 5.314 GB, free: 128 kB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003997/11.51, allocations: 346.1 kB / 5.314 GB, free: 15.79 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003306/11.51, allocations: 95.98 kB / 5.314 GB, free: 15.69 MB / 1.229 GB Notification: Performance of prepare postOptimizeDAE: time 1.282e-05/11.51, allocations: 4 kB / 5.314 GB, free: 15.69 MB / 1.229 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003669/11.52, allocations: 1.976 MB / 5.316 GB, free: 13.71 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.327e-05/11.52, allocations: 12 kB / 5.316 GB, free: 13.7 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.524e-05/11.52, allocations: 27.98 kB / 5.316 GB, free: 13.67 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001942/11.52, allocations: 475.1 kB / 5.316 GB, free: 13.21 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.129e-05/11.52, allocations: 39.77 kB / 5.317 GB, free: 13.17 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00367/11.52, allocations: 322.3 kB / 5.317 GB, free: 12.86 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002574/11.52, allocations: 88 kB / 5.317 GB, free: 12.77 MB / 1.229 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (257): * Single equations (assignments): 250 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 7 {1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006038/11.52, allocations: 160.4 kB / 5.317 GB, free: 12.61 MB / 1.229 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009508/11.53, allocations: 258.7 kB / 5.317 GB, free: 12.35 MB / 1.229 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003966/11.53, allocations: 1.961 MB / 5.319 GB, free: 10.38 MB / 1.229 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.822e-05/11.53, allocations: 20 kB / 5.319 GB, free: 10.36 MB / 1.229 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.365e-06/11.53, allocations: 0 / 5.319 GB, free: 10.36 MB / 1.229 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00299/11.53, allocations: 1.78 MB / 5.321 GB, free: 8.535 MB / 1.229 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01162/11.54, allocations: 4.728 MB / 5.326 GB, free: 3.719 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.215e-05/11.54, allocations: 4 kB / 5.326 GB, free: 3.715 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002631/11.55, allocations: 0.4916 MB / 5.326 GB, free: 3.227 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.621e-05/11.55, allocations: 8 kB / 5.326 GB, free: 3.219 MB / 1.229 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001759/11.55, allocations: 35.97 kB / 5.326 GB, free: 3.184 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4977/12.04, allocations: 4.154 MB / 5.33 GB, free: 251.2 MB / 1.229 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.043e-06/12.04, allocations: 7.562 kB / 5.33 GB, free: 251.2 MB / 1.229 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00399/12.05, allocations: 3.298 MB / 5.333 GB, free: 250.6 MB / 1.229 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001428/12.05, allocations: 0.5532 MB / 5.334 GB, free: 250.5 MB / 1.229 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003795/12.05, allocations: 15.05 kB / 5.334 GB, free: 250.5 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002131/12.05, allocations: 220 kB / 5.334 GB, free: 250.5 MB / 1.229 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001797/12.05, allocations: 104.2 kB / 5.334 GB, free: 250.5 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000128/12.05, allocations: 70.83 kB / 5.334 GB, free: 250.5 MB / 1.229 GB Notification: Performance of sort global known variables: time 0.001387/12.05, allocations: 1.075 MB / 5.335 GB, free: 250.3 MB / 1.229 GB Notification: Performance of remove unused functions: time 0.004141/12.06, allocations: 1.939 MB / 5.337 GB, free: 250.3 MB / 1.229 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 20 (vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.m,vol.dynBal.mC[1],vol1.dynBal.medium.Xi[1],vol1.dynBal.U,vol1.dynBal.m,vol1.dynBal.mC[1],vol2.dynBal.medium.Xi[1],vol2.dynBal.U,vol2.dynBal.m,vol2.dynBal.mC[1],vol3.dynBal.medium.Xi[1],vol3.dynBal.U,vol3.dynBal.m,vol3.dynBal.mC[1],vol4.dynBal.medium.Xi[1],vol4.dynBal.U,vol4.dynBal.m,vol4.dynBal.mC[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (182): * Single equations (assignments): 175 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 7 {1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00565/12.06, allocations: 5.209 MB / 5.342 GB, free: 248.1 MB / 1.229 GB Notification: Performance of simCode: created initialization part: time 0.004936/12.07, allocations: 3.186 MB / 5.345 GB, free: 248 MB / 1.229 GB Notification: Performance of simCode: created event and clocks part: time 7.694e-06/12.07, allocations: 3.844 kB / 5.345 GB, free: 248 MB / 1.229 GB Notification: Performance of simCode: created simulation system equations: time 0.001363/12.07, allocations: 0.9864 MB / 5.346 GB, free: 248 MB / 1.229 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006818/12.08, allocations: 1.399 MB / 5.348 GB, free: 248 MB / 1.229 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008681/12.09, allocations: 5.519 MB / 5.353 GB, free: 246.8 MB / 1.229 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002037/12.09, allocations: 2.491 MB / 5.356 GB, free: 246.1 MB / 1.229 GB Notification: Performance of SimCode: time 7.41e-07/12.09, allocations: 0 / 5.356 GB, free: 246.1 MB / 1.229 GB Notification: Performance of Templates: time 0.1155/12.2, allocations: 81.45 MB / 5.435 GB, free: 244.8 MB / 1.229 GB make -j1 -f Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.makefile (rm -f Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.sim & ./Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource.csv","../files/Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches