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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.327/2.327, allocations: 390.5 MB / 398 MB, free: 10.94 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.001531/0.001531, allocations: 180.8 kB / 491.2 MB, free: 1.602 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.707/1.707, allocations: 221.5 MB / 0.7868 GB, free: 13.27 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.001065/0.001065, allocations: 95.53 kB / 0.9269 GB, free: 13.78 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.058e-05/2.072e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2928/0.2928, allocations: 143 MB / 1.212 GB, free: 39.53 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.656/5.949, allocations: 1.98 GB / 3.192 GB, free: 348 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002665/5.95, allocations: 91.89 kB / 3.192 GB, free: 347.9 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 8.355/14.3, allocations: 2.049 GB / 5.242 GB, free: 52.88 MB / 1.198 GB Notification: Performance of FrontEnd: time 4.328e-06/14.3, allocations: 0 / 5.242 GB, free: 52.88 MB / 1.198 GB Notification: Performance of Transformations before backend: time 0.0006683/14.31, allocations: 95.97 kB / 5.242 GB, free: 52.79 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.01774/14.32, allocations: 3.487 MB / 5.245 GB, free: 49.25 MB / 1.198 GB Notification: Performance of prepare preOptimizeDAE: time 6.38e-05/14.32, allocations: 8.031 kB / 5.245 GB, free: 49.24 MB / 1.198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008682/14.33, allocations: 0.9205 MB / 5.246 GB, free: 48.31 MB / 1.198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01182/14.34, allocations: 2.895 MB / 5.249 GB, free: 45.36 MB / 1.198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000367/14.34, allocations: 176.8 kB / 5.249 GB, free: 45.17 MB / 1.198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001747/14.35, allocations: 172 kB / 5.249 GB, free: 45 MB / 1.198 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007975/14.35, allocations: 2.447 MB / 5.252 GB, free: 42.55 MB / 1.198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007602/14.36, allocations: 2.742 MB / 5.254 GB, free: 39.73 MB / 1.198 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.268e-05/14.36, allocations: 11.84 kB / 5.254 GB, free: 39.71 MB / 1.198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002583/14.36, allocations: 0 / 5.254 GB, free: 39.71 MB / 1.198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001239/14.36, allocations: 105 kB / 5.254 GB, free: 39.61 MB / 1.198 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.01742/14.38, allocations: 12.72 MB / 5.267 GB, free: 25.78 MB / 1.198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002187/14.38, allocations: 1.578 MB / 5.268 GB, free: 24.2 MB / 1.198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001105/14.38, allocations: 1.007 MB / 5.269 GB, free: 23.2 MB / 1.198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004979/14.38, allocations: 329.2 kB / 5.27 GB, free: 22.82 MB / 1.198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.086e-05/14.38, allocations: 60.5 kB / 5.27 GB, free: 22.75 MB / 1.198 GB Notification: Performance of pre-optimization done (n=182): time 4.058e-06/14.38, allocations: 0 / 5.27 GB, free: 22.75 MB / 1.198 GB Notification: Performance of matching and sorting (n=182): time 0.003771/14.39, allocations: 1.869 MB / 5.272 GB, free: 20.88 MB / 1.198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.304e-05/14.39, allocations: 77.39 kB / 5.272 GB, free: 20.79 MB / 1.198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002066/14.39, allocations: 1.425 MB / 5.273 GB, free: 19.34 MB / 1.198 GB Notification: Performance of collectPreVariables (initialization): time 0.000266/14.39, allocations: 29.7 kB / 5.273 GB, free: 19.3 MB / 1.198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009176/14.39, allocations: 1.41 MB / 5.275 GB, free: 17.87 MB / 1.198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006521/14.39, allocations: 0.6158 MB / 5.275 GB, free: 17.25 MB / 1.198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.041e-05/14.39, allocations: 0 / 5.275 GB, free: 17.25 MB / 1.198 GB Notification: Performance of setup shared object (initialization): time 0.0001525/14.39, allocations: 385.9 kB / 5.275 GB, free: 16.86 MB / 1.198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009331/14.39, allocations: 0.7264 MB / 5.276 GB, free: 16.13 MB / 1.198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001408/14.39, allocations: 1.361 MB / 5.278 GB, free: 14.5 MB / 1.198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001227/14.4, allocations: 0.9799 MB / 5.278 GB, free: 13.52 MB / 1.198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.247e-06/14.4, allocations: 4 kB / 5.278 GB, free: 13.51 MB / 1.198 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.003373/14.4, allocations: 2.232 MB / 5.281 GB, free: 11.27 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 0.002233/14.4, allocations: 5.488 MB / 5.286 GB, free: 5.234 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.692e-05/14.4, allocations: 12 kB / 5.286 GB, free: 5.223 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.135e-05/14.4, allocations: 27.95 kB / 5.286 GB, free: 5.195 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002331/14.4, allocations: 0.5261 MB / 5.287 GB, free: 4.676 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001845/14.41, allocations: 4.176 MB / 5.291 GB, free: 344 kB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004288/14.41, allocations: 350.1 kB / 5.291 GB, free: 15.99 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002006/14.41, allocations: 87.94 kB / 5.291 GB, free: 15.91 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/14.41, allocations: 6.406 kB / 5.291 GB, free: 15.9 MB / 1.214 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003377/14.41, allocations: 1.925 MB / 5.293 GB, free: 13.98 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.903e-05/14.41, allocations: 13 kB / 5.293 GB, free: 13.96 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.891e-05/14.41, allocations: 24 kB / 5.293 GB, free: 13.94 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001764/14.42, allocations: 479.3 kB / 5.293 GB, free: 13.47 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.97e-05/14.42, allocations: 35.84 kB / 5.293 GB, free: 13.44 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003984/14.42, allocations: 330.1 kB / 5.294 GB, free: 13.11 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001694/14.42, allocations: 87.98 kB / 5.294 GB, free: 13.03 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.0005986/14.42, allocations: 152.4 kB / 5.294 GB, free: 12.87 MB / 1.214 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006358/14.42, allocations: 257 kB / 5.294 GB, free: 12.62 MB / 1.214 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003682/14.42, allocations: 1.906 MB / 5.296 GB, free: 10.7 MB / 1.214 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.057e-05/14.42, allocations: 20 kB / 5.296 GB, free: 10.68 MB / 1.214 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.068e-05/14.42, allocations: 3.953 kB / 5.296 GB, free: 10.68 MB / 1.214 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002468/14.43, allocations: 1.73 MB / 5.298 GB, free: 8.895 MB / 1.214 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01047/14.44, allocations: 4.666 MB / 5.302 GB, free: 4.141 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.676e-06/14.44, allocations: 0 / 5.302 GB, free: 4.141 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002411/14.44, allocations: 0.4915 MB / 5.303 GB, free: 3.656 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.448e-05/14.44, allocations: 8 kB / 5.303 GB, free: 3.648 MB / 1.214 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001239/14.44, allocations: 35.92 kB / 5.303 GB, free: 3.613 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002593/14.44, allocations: 4.134 MB / 5.307 GB, free: 15.32 MB / 1.229 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.837e-06/14.44, allocations: 4.281 kB / 5.307 GB, free: 15.31 MB / 1.229 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00528/14.45, allocations: 3.212 MB / 5.31 GB, free: 11.96 MB / 1.229 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002362/14.45, allocations: 0.5562 MB / 5.311 GB, free: 11.39 MB / 1.229 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009095/14.45, allocations: 12 kB / 5.311 GB, free: 11.38 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00344/14.45, allocations: 219.4 kB / 5.311 GB, free: 11.16 MB / 1.229 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002673/14.45, allocations: 121.8 kB / 5.311 GB, free: 11.04 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000236/14.46, allocations: 71.95 kB / 5.311 GB, free: 10.97 MB / 1.229 GB Notification: Performance of sorting global known variables: time 0.003295/14.46, allocations: 1.065 MB / 5.312 GB, free: 9.891 MB / 1.229 GB Notification: Performance of sort global known variables: time 3.51e-07/14.46, allocations: 0 / 5.312 GB, free: 9.891 MB / 1.229 GB Notification: Performance of remove unused functions: time 0.01328/14.47, allocations: 1.928 MB / 5.314 GB, free: 7.957 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.01262/14.48, allocations: 5.198 MB / 5.319 GB, free: 2.316 MB / 1.229 GB Notification: Performance of simCode: created initialization part: time 0.9392/15.42, allocations: 3.054 MB / 5.322 GB, free: 154.2 MB / 1.229 GB Notification: Performance of simCode: created event and clocks part: time 2.388e-05/15.42, allocations: 2.906 kB / 5.322 GB, free: 154.2 MB / 1.229 GB Notification: Performance of simCode: created simulation system equations: time 0.002336/15.43, allocations: 0.9454 MB / 5.323 GB, free: 154.2 MB / 1.229 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009904/15.44, allocations: 1.445 MB / 5.324 GB, free: 154.2 MB / 1.229 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01466/15.45, allocations: 5.451 MB / 5.33 GB, free: 153 MB / 1.229 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00288/15.45, allocations: 2.254 MB / 5.332 GB, free: 152.2 MB / 1.229 GB Notification: Performance of simCode: alias equations: time 0.006586/15.46, allocations: 1.272 MB / 5.333 GB, free: 152.2 MB / 1.229 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007459/15.46, allocations: 173 kB / 5.333 GB, free: 152.2 MB / 1.229 GB Notification: Performance of SimCode: time 1.393e-06/15.46, allocations: 0 / 5.333 GB, free: 152.2 MB / 1.229 GB Notification: Performance of Templates: time 0.1468/15.61, allocations: 73.22 MB / 5.405 GB, free: 150 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