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.481/1.481, allocations: 249.3 MB / 261.8 MB, free: 5.816 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001193/0.001193, allocations: 177.9 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.696/1.696, allocations: 205.2 MB / 0.572 GB, free: 10.59 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.0008641/0.0008641, allocations: 86.44 kB / 0.6764 GB, free: 15.57 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 4.345e-05/4.347e-05, allocations: 4 kB / 0.7879 GB, free: 97.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2232/0.2233, allocations: 106.3 MB / 0.8918 GB, free: 6.668 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.149/6.372, allocations: 2.253 GB / 3.145 GB, free: 114.5 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002853/6.372, allocations: 87.95 kB / 3.145 GB, free: 114.4 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 8.192/14.56, allocations: 1.982 GB / 5.127 GB, free: 79.89 MB / 0.9323 GB Notification: Performance of FrontEnd: time 3.947e-06/14.56, allocations: 0 / 5.127 GB, free: 79.89 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 0.0005779/14.57, allocations: 98.28 kB / 5.127 GB, free: 79.88 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.01507/14.58, allocations: 3.483 MB / 5.13 GB, free: 78.41 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 6.938e-05/14.58, allocations: 11.06 kB / 5.13 GB, free: 78.41 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008508/14.59, allocations: 0.9214 MB / 5.131 GB, free: 78.21 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01266/14.6, allocations: 2.865 MB / 5.134 GB, free: 77.62 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005718/14.6, allocations: 281.6 kB / 5.134 GB, free: 77.55 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002095/14.6, allocations: 305.1 kB / 5.135 GB, free: 77.55 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01751/14.62, allocations: 3.168 MB / 5.138 GB, free: 77.29 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002344/14.62, allocations: 7.016 kB / 5.138 GB, free: 77.29 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001641/14.62, allocations: 123.1 kB / 5.138 GB, free: 77.29 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001911/14.62, allocations: 100.4 kB / 5.138 GB, free: 77.28 MB / 0.9323 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00818/14.63, allocations: 2.586 MB / 5.14 GB, free: 77.25 MB / 0.9323 GB Warning: The model contains alias variables with conflicting start and/or 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.02005/14.65, allocations: 13.23 MB / 5.153 GB, free: 70.04 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002282/14.65, allocations: 1.729 MB / 5.155 GB, free: 70 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00133/14.66, allocations: 1.053 MB / 5.156 GB, free: 69.97 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004762/14.66, allocations: 330.1 kB / 5.156 GB, free: 69.69 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.834e-05/14.66, allocations: 57.53 kB / 5.156 GB, free: 69.65 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=182): time 4.128e-06/14.66, allocations: 0 / 5.156 GB, free: 69.65 MB / 0.9323 GB Notification: Performance of matching and sorting (n=182): time 0.004176/14.66, allocations: 1.917 MB / 5.158 GB, free: 69.43 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.824e-05/14.66, allocations: 71.91 kB / 5.158 GB, free: 69.37 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002806/14.66, allocations: 1.687 MB / 5.16 GB, free: 69.14 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 0.0003363/14.66, allocations: 72.86 kB / 5.16 GB, free: 69.11 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 0.000813/14.66, allocations: 1.41 MB / 5.162 GB, free: 68.56 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005884/14.67, allocations: 0.6337 MB / 5.162 GB, free: 68.15 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.666e-05/14.67, allocations: 41.53 kB / 5.162 GB, free: 68.15 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 0.0001216/14.67, allocations: 388.2 kB / 5.163 GB, free: 67.85 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001119/14.67, allocations: 0.7477 MB / 5.163 GB, free: 67.84 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00143/14.67, allocations: 1.4 MB / 5.165 GB, free: 67.09 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001425/14.67, allocations: 1.019 MB / 5.166 GB, free: 67.06 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.094e-05/14.67, allocations: 2 kB / 5.166 GB, free: 67.06 MB / 0.9323 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.004548/14.67, allocations: 2.387 MB / 5.168 GB, free: 66.85 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.00179/14.68, allocations: 5.504 MB / 5.173 GB, free: 61.01 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.079e-05/14.68, allocations: 11.12 kB / 5.173 GB, free: 61.01 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.604e-05/14.68, allocations: 25.12 kB / 5.173 GB, free: 61.01 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002629/14.68, allocations: 0.518 MB / 5.174 GB, free: 61.01 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001877/14.68, allocations: 4.163 MB / 5.178 GB, free: 56.91 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005018/14.69, allocations: 377.8 kB / 5.178 GB, free: 56.81 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000283/14.69, allocations: 88.53 kB / 5.178 GB, free: 56.81 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 1.679e-05/14.69, allocations: 3.594 kB / 5.178 GB, free: 56.81 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003245/14.69, allocations: 2.122 MB / 5.18 GB, free: 56.72 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.523e-05/14.69, allocations: 14.06 kB / 5.18 GB, free: 56.72 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.608e-05/14.69, allocations: 26.03 kB / 5.181 GB, free: 56.72 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001614/14.69, allocations: 471.1 kB / 5.181 GB, free: 56.69 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.586e-05/14.69, allocations: 33.52 kB / 5.181 GB, free: 56.68 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003698/14.69, allocations: 353.2 kB / 5.181 GB, free: 56.6 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001752/14.7, allocations: 89.55 kB / 5.181 GB, free: 56.6 MB / 0.9323 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.0007385/14.7, allocations: 238.8 kB / 5.182 GB, free: 56.45 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007852/14.7, allocations: 271 kB / 5.182 GB, free: 56.32 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003542/14.7, allocations: 2.022 MB / 5.184 GB, free: 56.2 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.336e-05/14.7, allocations: 18.16 kB / 5.184 GB, free: 56.2 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-06/14.7, allocations: 0 / 5.184 GB, free: 56.2 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002202/14.7, allocations: 1.794 MB / 5.186 GB, free: 55.89 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008533/14.71, allocations: 5.086 MB / 5.191 GB, free: 55.33 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.925e-06/14.71, allocations: 3.688 kB / 5.191 GB, free: 55.33 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002265/14.71, allocations: 0.5137 MB / 5.191 GB, free: 55.31 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-05/14.71, allocations: 11.55 kB / 5.191 GB, free: 55.3 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001523/14.71, allocations: 55.78 kB / 5.191 GB, free: 55.3 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001367/14.71, allocations: 4.121 MB / 5.195 GB, free: 51.2 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/14.71, allocations: 5.5 kB / 5.195 GB, free: 51.2 MB / 0.9323 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004655/14.72, allocations: 3.463 MB / 5.199 GB, free: 50.45 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002062/14.72, allocations: 0.5805 MB / 5.199 GB, free: 50.2 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004769/14.72, allocations: 45.89 kB / 5.199 GB, free: 50.2 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002509/14.72, allocations: 257.1 kB / 5.199 GB, free: 50.18 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002039/14.72, allocations: 116.5 kB / 5.2 GB, free: 50.16 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001356/14.73, allocations: 76.91 kB / 5.2 GB, free: 50.16 MB / 0.9323 GB Notification: Performance of sorting global known variables: time 0.002003/14.73, allocations: 1.292 MB / 5.201 GB, free: 50 MB / 0.9323 GB Notification: Performance of sort global known variables: time 1.9e-07/14.73, allocations: 0 / 5.201 GB, free: 50 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.006854/14.73, allocations: 2.153 MB / 5.203 GB, free: 49.75 MB / 0.9323 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 () * 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.007046/14.74, allocations: 4.766 MB / 5.208 GB, free: 47.45 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.007109/14.75, allocations: 3.185 MB / 5.211 GB, free: 47.27 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 2.155e-05/14.75, allocations: 2.312 kB / 5.211 GB, free: 47.27 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.001882/14.75, allocations: 0.9804 MB / 5.212 GB, free: 47.22 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008433/14.76, allocations: 1.573 MB / 5.213 GB, free: 47.18 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008633/14.77, allocations: 5.537 MB / 5.219 GB, free: 45.52 MB / 0.9323 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001633/14.77, allocations: 2.27 MB / 5.221 GB, free: 44.72 MB / 0.9323 GB Notification: Performance of simCode: alias equations: time 0.004888/14.77, allocations: 1.333 MB / 5.222 GB, free: 44.58 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004955/14.77, allocations: 176.9 kB / 5.222 GB, free: 44.57 MB / 0.9323 GB Notification: Performance of SimCode: time 1.382e-06/14.77, allocations: 0 / 5.222 GB, free: 44.57 MB / 0.9323 GB Notification: Performance of Templates: time 0.8451/15.62, allocations: 112.8 MB / 5.332 GB, free: 122.8 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