Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.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.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_maint.7.0.x_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_maint.7.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.47/1.47, allocations: 251.9 MB / 266.9 MB, free: 10.99 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001224/0.001224, allocations: 181.5 kB / 326.5 MB, free: 2.223 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.975/1.975, allocations: 205.4 MB / 0.5775 GB, free: 20.23 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.0009566/0.0009566, allocations: 84.16 kB / 0.6821 GB, free: 12.87 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003455/0.0003455, allocations: 9.031 kB / 0.7962 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2462/0.2466, allocations: 106.3 MB / 0.9001 GB, free: 63.91 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.439/5.686, allocations: 2.253 GB / 3.153 GB, free: 328.5 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002149/5.686, allocations: 98.2 kB / 3.153 GB, free: 328.5 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 7.045/12.73, allocations: 1.984 GB / 5.137 GB, free: 46.84 MB / 0.9323 GB Notification: Performance of FrontEnd: time 2.876e-06/12.73, allocations: 3.984 kB / 5.137 GB, free: 46.83 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 0.0004805/12.73, allocations: 91.92 kB / 5.137 GB, free: 46.74 MB / 0.9323 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 703 * Number of variables: 703 Notification: Performance of Generate backend data structure: time 0.01468/12.75, allocations: 3.971 MB / 5.141 GB, free: 42.71 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 4.555e-05/12.75, allocations: 8.031 kB / 5.141 GB, free: 42.7 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00786/12.75, allocations: 0.9282 MB / 5.142 GB, free: 41.77 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01133/12.77, allocations: 2.886 MB / 5.145 GB, free: 38.81 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004358/12.77, allocations: 281.5 kB / 5.145 GB, free: 38.52 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001484/12.77, allocations: 296 kB / 5.145 GB, free: 38.23 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0116/12.78, allocations: 3.232 MB / 5.149 GB, free: 34.92 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000191/12.78, allocations: 11.84 kB / 5.149 GB, free: 34.91 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001238/12.78, allocations: 112 kB / 5.149 GB, free: 34.8 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001535/12.78, allocations: 109.4 kB / 5.149 GB, free: 34.69 MB / 0.9323 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007068/12.79, allocations: 2.66 MB / 5.151 GB, free: 32.02 MB / 0.9323 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02056/12.81, allocations: 13.22 MB / 5.164 GB, free: 17.66 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002192/12.81, allocations: 1.772 MB / 5.166 GB, free: 15.89 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004535/12.81, allocations: 333.2 kB / 5.166 GB, free: 15.51 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.55e-05/12.81, allocations: 56.56 kB / 5.166 GB, free: 15.45 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=182): time 6.111e-06/12.81, allocations: 4 kB / 5.166 GB, free: 15.44 MB / 0.9323 GB Notification: Performance of matching and sorting (n=182): time 0.004578/12.82, allocations: 2.656 MB / 5.169 GB, free: 12.78 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.977e-05/12.82, allocations: 73.41 kB / 5.169 GB, free: 12.7 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002237/12.82, allocations: 1.708 MB / 5.171 GB, free: 10.98 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 0.0002676/12.82, allocations: 69.7 kB / 5.171 GB, free: 10.9 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007678/12.82, allocations: 1.403 MB / 5.172 GB, free: 9.48 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005584/12.82, allocations: 0.647 MB / 5.173 GB, free: 8.824 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.535e-05/12.82, allocations: 40 kB / 5.173 GB, free: 8.785 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 0.0001077/12.82, allocations: 389.8 kB / 5.173 GB, free: 8.398 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009701/12.82, allocations: 0.7614 MB / 5.174 GB, free: 7.633 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00132/12.82, allocations: 1.429 MB / 5.175 GB, free: 5.918 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001212/12.82, allocations: 1.032 MB / 5.176 GB, free: 4.891 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.874e-06/12.82, allocations: 4 kB / 5.176 GB, free: 4.887 MB / 0.9323 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.003575/12.83, allocations: 2.427 MB / 5.179 GB, free: 2.453 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.001747/12.83, allocations: 5.506 MB / 5.184 GB, free: 12.42 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.243e-05/12.83, allocations: 19.98 kB / 5.184 GB, free: 12.4 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.382e-05/12.83, allocations: 24 kB / 5.184 GB, free: 12.38 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002279/12.83, allocations: 0.5068 MB / 5.185 GB, free: 11.88 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002166/12.83, allocations: 4.153 MB / 5.189 GB, free: 7.559 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004159/12.84, allocations: 378 kB / 5.189 GB, free: 7.188 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000228/12.84, allocations: 91.98 kB / 5.189 GB, free: 7.098 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/12.84, allocations: 4 kB / 5.189 GB, free: 7.094 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003607/12.84, allocations: 2.167 MB / 5.191 GB, free: 4.926 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.854e-05/12.84, allocations: 12 kB / 5.191 GB, free: 4.914 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.822e-05/12.84, allocations: 24 kB / 5.191 GB, free: 4.891 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001789/12.84, allocations: 475.8 kB / 5.192 GB, free: 4.426 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.356e-05/12.84, allocations: 35.88 kB / 5.192 GB, free: 4.391 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004011/12.85, allocations: 358 kB / 5.192 GB, free: 4.039 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001817/12.85, allocations: 95.73 kB / 5.192 GB, free: 3.949 MB / 0.948 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 () * Number of clocked 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.002505/12.85, allocations: 0.8765 MB / 5.193 GB, free: 3.062 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001164/12.85, allocations: 268.8 kB / 5.193 GB, free: 2.797 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004044/12.86, allocations: 2.06 MB / 5.195 GB, free: 0.7227 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.017e-05/12.86, allocations: 16 kB / 5.195 GB, free: 0.707 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.302e-05/12.86, allocations: 7.953 kB / 5.195 GB, free: 0.6992 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002718/12.86, allocations: 1.832 MB / 5.197 GB, free: 14.82 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01059/12.87, allocations: 5.127 MB / 5.202 GB, free: 9.586 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.088e-05/12.87, allocations: 4 kB / 5.202 GB, free: 9.582 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002358/12.87, allocations: 0.5025 MB / 5.203 GB, free: 9.086 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.827e-05/12.87, allocations: 12 kB / 5.203 GB, free: 9.074 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001345/12.87, allocations: 55.97 kB / 5.203 GB, free: 9.02 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002072/12.87, allocations: 4.126 MB / 5.207 GB, free: 4.73 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/12.87, allocations: 4 kB / 5.207 GB, free: 4.727 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005408/12.88, allocations: 3.513 MB / 5.21 GB, free: 1.082 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002504/12.88, allocations: 0.5871 MB / 5.211 GB, free: 484 kB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004953/12.88, allocations: 40 kB / 5.211 GB, free: 444 kB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002577/12.88, allocations: 259.3 kB / 5.211 GB, free: 184 kB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002244/12.88, allocations: 121.8 kB / 5.211 GB, free: 64 kB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.7791/13.66, allocations: 68.55 kB / 5.211 GB, free: 107 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.003372/13.67, allocations: 1.309 MB / 5.212 GB, free: 106.9 MB / 0.9636 GB Notification: Performance of sort global known variables: time 3.61e-07/13.67, allocations: 0 / 5.212 GB, free: 106.9 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.009526/13.68, allocations: 2.158 MB / 5.215 GB, free: 106.9 MB / 0.9636 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 20 (vol.dynBal.U,vol.dynBal.m,vol.dynBal.mXi[1],vol.dynBal.mC[1],vol1.dynBal.U,vol1.dynBal.m,vol1.dynBal.mXi[1],vol1.dynBal.mC[1],vol2.dynBal.U,vol2.dynBal.m,vol2.dynBal.mXi[1],vol2.dynBal.mC[1],vol3.dynBal.U,vol3.dynBal.m,vol3.dynBal.mXi[1],vol3.dynBal.mC[1],vol4.dynBal.U,vol4.dynBal.m,vol4.dynBal.mXi[1],vol4.dynBal.mC[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked 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.01023/13.69, allocations: 4.755 MB / 5.219 GB, free: 104.6 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.01054/13.7, allocations: 3.169 MB / 5.222 GB, free: 104.6 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 2.172e-05/13.7, allocations: 4.922 kB / 5.222 GB, free: 104.6 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.002896/13.7, allocations: 0.9934 MB / 5.223 GB, free: 104.6 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01157/13.71, allocations: 1.572 MB / 5.225 GB, free: 104.6 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01442/13.73, allocations: 7.847 MB / 5.232 GB, free: 101.5 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00235/13.73, allocations: 2.263 MB / 5.235 GB, free: 100.7 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 0.004894/13.73, allocations: 1.086 MB / 5.236 GB, free: 100.7 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006274/13.73, allocations: 216.6 kB / 5.236 GB, free: 100.7 MB / 0.9636 GB Notification: Performance of SimCode: time 1.162e-06/13.73, allocations: 2.125 kB / 5.236 GB, free: 100.7 MB / 0.9636 GB Notification: Performance of Templates: time 0.178/13.91, allocations: 98.19 MB / 5.332 GB, free: 96.34 MB / 0.9636 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches