Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 2.006/2.006, allocations: 387.2 MB / 394.5 MB, free: 13.66 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.001391/0.001391, allocations: 185.2 kB / 487 MB, free: 5.363 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.406/1.406, allocations: 221.3 MB / 0.7819 GB, free: 1.426 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00101/0.00101, allocations: 103.4 kB / 0.9213 GB, free: 2.684 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 8.306e-06/8.326e-06, allocations: 4 kB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2863/0.2863, allocations: 142.3 MB / 1.205 GB, free: 26.21 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.421/4.707, allocations: 1.979 GB / 3.184 GB, free: 292.5 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002257/4.707, allocations: 92.91 kB / 3.184 GB, free: 292.5 MB / 1.151 GB Notification: Performance of FrontEnd: time 6.507/11.21, allocations: 2.073 GB / 5.257 GB, free: 7.969 MB / 1.214 GB Notification: Performance of Transformations before backend: time 0.0002821/11.21, allocations: 99.25 kB / 5.257 GB, free: 7.875 MB / 1.214 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.01021/11.23, allocations: 3.482 MB / 5.261 GB, free: 4.336 MB / 1.214 GB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/11.23, allocations: 9.031 kB / 5.261 GB, free: 4.328 MB / 1.214 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007402/11.23, allocations: 0.9827 MB / 5.262 GB, free: 3.34 MB / 1.214 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009161/11.24, allocations: 2.944 MB / 5.265 GB, free: 332 kB / 1.214 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002386/11.24, allocations: 172.8 kB / 5.265 GB, free: 144 kB / 1.214 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.5485/11.79, allocations: 178.5 kB / 5.265 GB, free: 241.8 MB / 1.214 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006449/11.8, allocations: 2.508 MB / 5.267 GB, free: 241.7 MB / 1.214 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005843/11.8, allocations: 2.816 MB / 5.27 GB, free: 241.5 MB / 1.214 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.021e-05/11.8, allocations: 7.844 kB / 5.27 GB, free: 241.5 MB / 1.214 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002648/11.8, allocations: 3.906 kB / 5.27 GB, free: 241.5 MB / 1.214 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001022/11.8, allocations: 109 kB / 5.27 GB, free: 241.5 MB / 1.214 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01832/11.82, allocations: 13.56 MB / 5.283 GB, free: 234.1 MB / 1.214 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001541/11.82, allocations: 1.03 MB / 5.284 GB, free: 234.1 MB / 1.214 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001257/11.82, allocations: 1.043 MB / 5.285 GB, free: 234.1 MB / 1.214 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004836/11.83, allocations: 325.8 kB / 5.286 GB, free: 233.8 MB / 1.214 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.212e-05/11.83, allocations: 65.86 kB / 5.286 GB, free: 233.8 MB / 1.214 GB Notification: Performance of pre-optimization done (n=182): time 4.228e-06/11.83, allocations: 0 / 5.286 GB, free: 233.8 MB / 1.214 GB Notification: Performance of matching and sorting (n=182): time 0.00428/11.83, allocations: 1.956 MB / 5.288 GB, free: 233.6 MB / 1.214 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.08e-05/11.83, allocations: 71.75 kB / 5.288 GB, free: 233.5 MB / 1.214 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002174/11.83, allocations: 1.441 MB / 5.289 GB, free: 233.3 MB / 1.214 GB Notification: Performance of collectPreVariables (initialization): time 0.0002663/11.83, allocations: 34.92 kB / 5.289 GB, free: 233.3 MB / 1.214 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005595/11.83, allocations: 0.9953 MB / 5.29 GB, free: 232.8 MB / 1.214 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007978/11.83, allocations: 0.6133 MB / 5.291 GB, free: 232.5 MB / 1.214 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.75e-05/11.83, allocations: 0 / 5.291 GB, free: 232.5 MB / 1.214 GB Notification: Performance of setup shared object (initialization): time 0.0001482/11.83, allocations: 389.2 kB / 5.291 GB, free: 232.2 MB / 1.214 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001035/11.83, allocations: 0.7487 MB / 5.292 GB, free: 232.2 MB / 1.214 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001297/11.84, allocations: 1.378 MB / 5.293 GB, free: 231.5 MB / 1.214 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00131/11.84, allocations: 1.026 MB / 5.294 GB, free: 231.5 MB / 1.214 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.245e-06/11.84, allocations: 6.406 kB / 5.294 GB, free: 231.5 MB / 1.214 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.00353/11.84, allocations: 2.282 MB / 5.297 GB, free: 231.3 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009306/11.84, allocations: 5.474 MB / 5.302 GB, free: 225.4 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.89e-05/11.84, allocations: 9.781 kB / 5.302 GB, free: 225.4 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.242e-05/11.84, allocations: 29.5 kB / 5.302 GB, free: 225.4 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002446/11.84, allocations: 0.5201 MB / 5.302 GB, free: 225.4 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001607/11.85, allocations: 4.198 MB / 5.306 GB, free: 221.3 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003826/11.85, allocations: 345.9 kB / 5.307 GB, free: 221.3 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002566/11.85, allocations: 87.61 kB / 5.307 GB, free: 221.3 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 9.377e-06/11.85, allocations: 3.844 kB / 5.307 GB, free: 221.3 MB / 1.214 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002844/11.85, allocations: 1.983 MB / 5.309 GB, free: 221.2 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.527e-05/11.85, allocations: 11.94 kB / 5.309 GB, free: 221.2 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.479e-05/11.85, allocations: 27.81 kB / 5.309 GB, free: 221.2 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00177/11.85, allocations: 469.1 kB / 5.309 GB, free: 221.2 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.211e-05/11.85, allocations: 31.14 kB / 5.309 GB, free: 221.2 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003449/11.86, allocations: 330.5 kB / 5.31 GB, free: 221.2 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001907/11.86, allocations: 85.55 kB / 5.31 GB, free: 221.2 MB / 1.214 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.0005299/11.86, allocations: 163.5 kB / 5.31 GB, free: 221.1 MB / 1.214 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006063/11.86, allocations: 258.2 kB / 5.31 GB, free: 221 MB / 1.214 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003067/11.86, allocations: 1.959 MB / 5.312 GB, free: 220.8 MB / 1.214 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.33e-05/11.86, allocations: 18.69 kB / 5.312 GB, free: 220.8 MB / 1.214 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-06/11.86, allocations: 9.812 kB / 5.312 GB, free: 220.8 MB / 1.214 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002003/11.86, allocations: 1.777 MB / 5.314 GB, free: 220.5 MB / 1.214 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008907/11.87, allocations: 4.728 MB / 5.318 GB, free: 220.1 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.869e-06/11.87, allocations: 6.938 kB / 5.318 GB, free: 220.1 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002447/11.88, allocations: 0.4885 MB / 5.319 GB, free: 220.1 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.491e-05/11.88, allocations: 15.03 kB / 5.319 GB, free: 220.1 MB / 1.214 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001438/11.88, allocations: 29.52 kB / 5.319 GB, free: 220.1 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001605/11.88, allocations: 4.145 MB / 5.323 GB, free: 216 MB / 1.214 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.588e-06/11.88, allocations: 10.5 kB / 5.323 GB, free: 216 MB / 1.214 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004724/11.88, allocations: 3.295 MB / 5.326 GB, free: 215.2 MB / 1.214 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001883/11.88, allocations: 0.5524 MB / 5.327 GB, free: 215 MB / 1.214 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000634/11.89, allocations: 17.34 kB / 5.327 GB, free: 215 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002699/11.89, allocations: 224.9 kB / 5.327 GB, free: 215 MB / 1.214 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001988/11.89, allocations: 109.8 kB / 5.327 GB, free: 215 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001407/11.89, allocations: 70.86 kB / 5.327 GB, free: 215 MB / 1.214 GB Notification: Performance of sort global known variables: time 0.001631/11.89, allocations: 1.073 MB / 5.328 GB, free: 214.9 MB / 1.214 GB Notification: Performance of remove unused functions: time 0.005854/11.9, allocations: 1.94 MB / 5.33 GB, free: 214.7 MB / 1.214 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.007644/11.9, allocations: 5.233 MB / 5.335 GB, free: 212.5 MB / 1.214 GB Notification: Performance of simCode: created initialization part: time 0.006573/11.91, allocations: 3.178 MB / 5.338 GB, free: 212.4 MB / 1.214 GB Notification: Performance of simCode: created event and clocks part: time 1.174e-05/11.91, allocations: 5.844 kB / 5.338 GB, free: 212.4 MB / 1.214 GB Notification: Performance of simCode: created simulation system equations: time 0.001716/11.91, allocations: 0.9924 MB / 5.339 GB, free: 212.4 MB / 1.214 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007993/11.92, allocations: 1.395 MB / 5.341 GB, free: 212.4 MB / 1.214 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01224/11.93, allocations: 5.515 MB / 5.346 GB, free: 211.3 MB / 1.214 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002659/11.93, allocations: 2.489 MB / 5.349 GB, free: 210.5 MB / 1.214 GB Notification: Performance of SimCode: time 9.72e-07/11.93, allocations: 3.281 kB / 5.349 GB, free: 210.5 MB / 1.214 GB Notification: Performance of Templates: time 0.1225/12.06, allocations: 81.46 MB / 5.428 GB, free: 209 MB / 1.214 GB make -j1 -f Buildings_9_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.makefile (rm -f Buildings_9_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe >> ../files/Buildings_9_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.sim & ./Buildings_9_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource.csv","../files/Buildings_9_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches