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/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001312/0.001312, allocations: 100.2 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001475/0.001475, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.342/1.342, allocations: 223.2 MB / 239.9 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.325/2.325, allocations: 390.3 MB / 0.6653 GB, free: 2.984 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003302/0.0003303, allocations: 8 kB / 0.8145 GB, free: 14.31 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7338/0.7341, allocations: 142.3 MB / 0.9535 GB, free: 8.051 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource): time 0.2751/1.009, allocations: 247.3 MB / 1.195 GB, free: 8.324 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.03701/1.046, allocations: 23.91 MB / 1.218 GB, free: 384 kB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004686/1.051, allocations: 103.2 kB / 1.218 GB, free: 280 kB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.006801/1.058, allocations: 1.711 MB / 1.22 GB, free: 14.55 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.02051/1.078, allocations: 5.87 MB / 1.226 GB, free: 8.672 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.01124/1.09, allocations: 2.722 MB / 1.228 GB, free: 5.98 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.01426/1.104, allocations: 5.134 MB / 1.233 GB, free: 0.8359 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.007064/1.111, allocations: 2.576 MB / 1.236 GB, free: 14.22 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008078/1.119, allocations: 2.617 MB / 1.239 GB, free: 11.59 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004814/1.124, allocations: 1.911 MB / 1.24 GB, free: 9.676 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.001712/1.126, allocations: 152 kB / 1.241 GB, free: 9.527 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009026/1.135, allocations: 2.087 MB / 1.243 GB, free: 7.438 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.002943/1.138, allocations: 1.317 MB / 1.244 GB, free: 6.117 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.002411/1.14, allocations: 0.7616 MB / 1.245 GB, free: 5.348 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.009416/1.15, allocations: 4.504 MB / 1.249 GB, free: 0.832 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/1.15, allocations: 0 / 1.249 GB, free: 0.832 MB / 0.9981 GB Notification: Performance of FrontEnd: time 3.687e-06/1.15, allocations: 0 / 1.249 GB, free: 0.832 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.0002505/1.15, allocations: 0 / 1.249 GB, free: 0.832 MB / 0.9981 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.5458/1.696, allocations: 3.409 MB / 1.252 GB, free: 284.4 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/1.696, allocations: 10.66 kB / 1.252 GB, free: 284.4 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006911/1.703, allocations: 0.9489 MB / 1.253 GB, free: 284.2 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007137/1.71, allocations: 2.225 MB / 1.255 GB, free: 283.1 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005985/1.711, allocations: 281 kB / 1.256 GB, free: 283 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001156/1.712, allocations: 298.1 kB / 1.256 GB, free: 282.9 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007281/1.719, allocations: 3.326 MB / 1.259 GB, free: 281.4 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.676e-05/1.719, allocations: 6.172 kB / 1.259 GB, free: 281.4 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000277/1.719, allocations: 120.4 kB / 1.259 GB, free: 281.3 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000173/1.72, allocations: 104.5 kB / 1.26 GB, free: 281.3 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005961/1.726, allocations: 2.802 MB / 1.262 GB, free: 279.9 MB / 0.9981 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.01505/1.741, allocations: 13.28 MB / 1.275 GB, free: 268.5 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002473/1.743, allocations: 1.709 MB / 1.277 GB, free: 267.6 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001537/1.743, allocations: 68.7 kB / 1.277 GB, free: 267.6 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.179e-05/1.743, allocations: 63.3 kB / 1.277 GB, free: 267.5 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=186): time 3.777e-06/1.743, allocations: 3.812 kB / 1.277 GB, free: 267.5 MB / 0.9981 GB Notification: Performance of matching and sorting (n=186): time 0.004987/1.748, allocations: 2.779 MB / 1.28 GB, free: 266.2 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.858e-05/1.748, allocations: 79.77 kB / 1.28 GB, free: 266.1 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002564/1.751, allocations: 1.978 MB / 1.282 GB, free: 265.1 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002607/1.751, allocations: 68.08 kB / 1.282 GB, free: 265 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007428/1.752, allocations: 1.407 MB / 1.283 GB, free: 263.8 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005544/1.753, allocations: 0.6527 MB / 1.284 GB, free: 263.2 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.372e-05/1.753, allocations: 40.81 kB / 1.284 GB, free: 263.2 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001009/1.753, allocations: 387.9 kB / 1.284 GB, free: 262.8 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001219/1.754, allocations: 0.8076 MB / 1.285 GB, free: 262.4 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001506/1.756, allocations: 1.431 MB / 1.286 GB, free: 261.2 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001421/1.757, allocations: 1.063 MB / 1.287 GB, free: 260.7 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.448e-06/1.757, allocations: 3.969 kB / 1.287 GB, free: 260.7 MB / 0.9981 GB Notification: Performance of matching and sorting (n=261) (initialization): time 0.003507/1.761, allocations: 2.5 MB / 1.29 GB, free: 259.5 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007682/1.761, allocations: 5.238 MB / 1.295 GB, free: 253.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.861e-05/1.761, allocations: 11.81 kB / 1.295 GB, free: 253.8 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.626e-05/1.761, allocations: 32.45 kB / 1.295 GB, free: 253.8 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002482/1.764, allocations: 0.5651 MB / 1.296 GB, free: 253.7 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001261/1.765, allocations: 4.164 MB / 1.3 GB, free: 249.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003569/1.769, allocations: 404.1 kB / 1.3 GB, free: 249.3 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001862/1.769, allocations: 89.64 kB / 1.3 GB, free: 249.3 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.161e-05/1.769, allocations: 8.844 kB / 1.3 GB, free: 249.3 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002897/1.772, allocations: 2.239 MB / 1.302 GB, free: 248.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.863e-05/1.772, allocations: 11.78 kB / 1.302 GB, free: 248.2 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.057e-05/1.772, allocations: 27.73 kB / 1.302 GB, free: 248.2 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001711/1.774, allocations: 477.4 kB / 1.303 GB, free: 248.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.728e-05/1.774, allocations: 36.94 kB / 1.303 GB, free: 248.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003369/1.777, allocations: 388 kB / 1.303 GB, free: 247.9 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001462/1.777, allocations: 83.98 kB / 1.303 GB, free: 247.8 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (261): * Single equations (assignments): 254 * 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.001441/1.779, allocations: 0.8598 MB / 1.304 GB, free: 246.9 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005509/1.779, allocations: 272.7 kB / 1.304 GB, free: 246.7 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002783/1.782, allocations: 2.153 MB / 1.307 GB, free: 244.5 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-05/1.782, allocations: 25.86 kB / 1.307 GB, free: 244.5 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.176e-06/1.782, allocations: 3.953 kB / 1.307 GB, free: 244.5 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00211/1.784, allocations: 1.927 MB / 1.308 GB, free: 242.5 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008359/1.793, allocations: 5.231 MB / 1.314 GB, free: 237.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.967e-06/1.793, allocations: 4 kB / 1.314 GB, free: 237.2 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002196/1.795, allocations: 0.5 MB / 1.314 GB, free: 236.7 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.264e-05/1.795, allocations: 12 kB / 1.314 GB, free: 236.7 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001403/1.795, allocations: 58.42 kB / 1.314 GB, free: 236.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001287/1.796, allocations: 4.127 MB / 1.318 GB, free: 232.4 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/1.796, allocations: 4 kB / 1.318 GB, free: 232.4 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00464/1.801, allocations: 3.51 MB / 1.322 GB, free: 228.7 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001803/1.803, allocations: 0.5785 MB / 1.322 GB, free: 228.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007076/1.803, allocations: 43.98 kB / 1.322 GB, free: 228.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002704/1.806, allocations: 251 kB / 1.322 GB, free: 227.9 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001975/1.806, allocations: 125.7 kB / 1.323 GB, free: 227.7 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001474/1.807, allocations: 67.95 kB / 1.323 GB, free: 227.7 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001803/1.808, allocations: 1.314 MB / 1.324 GB, free: 226.3 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.41e-07/1.808, allocations: 0 / 1.324 GB, free: 226.3 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.004439/1.813, allocations: 1.719 MB / 1.326 GB, free: 224.6 MB / 0.9981 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (186): * Single equations (assignments): 179 * 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.0007702/1.814, allocations: 385.2 kB / 1.326 GB, free: 224.3 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.005481/1.819, allocations: 3.346 MB / 1.329 GB, free: 220.9 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 7.394e-06/1.819, allocations: 4 kB / 1.329 GB, free: 220.9 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001531/1.821, allocations: 1.047 MB / 1.33 GB, free: 219.9 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00804/1.829, allocations: 1.58 MB / 1.332 GB, free: 218.3 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009745/1.839, allocations: 7.913 MB / 1.339 GB, free: 210.4 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001601/1.84, allocations: 2.256 MB / 1.342 GB, free: 208.1 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.003836/1.844, allocations: 1.115 MB / 1.343 GB, free: 207 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007043/1.845, allocations: 227.3 kB / 1.343 GB, free: 206.7 MB / 0.9981 GB Notification: Performance of SimCode: time 7.61e-07/1.845, allocations: 0 / 1.343 GB, free: 206.7 MB / 0.9981 GB Notification: Performance of Templates: time 0.07362/1.918, allocations: 52.06 MB / 1.394 GB, free: 155.4 MB / 0.9981 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