Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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.Sensors.Examples.TraceSubstances,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|masFraSou.V|vol.C.1.|senTraSub.C|senTraSubNoFlorRev.C|senPPM.ppm|masFraVol.V",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances") translateModel(Buildings.Fluid.Sensors.Examples.TraceSubstances,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|masFraSou.V|vol.C.1.|senTraSub.C|senTraSubNoFlorRev.C|senPPM.ppm|masFraVol.V",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001097/0.001097, allocations: 99.16 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.001305/0.001305, allocations: 177.3 kB / 15.94 MB, free: 228 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.341/1.341, allocations: 223.2 MB / 239.9 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.543/2.543, allocations: 436.5 MB / 0.7104 GB, free: 7.867 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003312/0.0003312, allocations: 8 kB / 0.8707 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6041/0.6044, allocations: 153.7 MB / 1.021 GB, free: 1.102 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.1653/0.7698, allocations: 161.8 MB / 1.179 GB, free: 14.9 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.01435/0.7841, allocations: 12.18 MB / 1.191 GB, free: 2.699 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00102/0.7852, allocations: 31.81 kB / 1.191 GB, free: 2.668 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.001513/0.7867, allocations: 493.7 kB / 1.191 GB, free: 2.184 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.004225/0.791, allocations: 1.566 MB / 1.193 GB, free: 0.6133 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.002713/0.7937, allocations: 0.9448 MB / 1.194 GB, free: 15.68 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.002312/0.796, allocations: 1.476 MB / 1.195 GB, free: 14.2 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001117/0.7972, allocations: 0.8203 MB / 1.196 GB, free: 13.37 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002432/0.7996, allocations: 1.114 MB / 1.197 GB, free: 12.25 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00108/0.8007, allocations: 0.615 MB / 1.198 GB, free: 11.63 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0001256/0.8008, allocations: 59.88 kB / 1.198 GB, free: 11.57 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001515/0.8024, allocations: 0.5383 MB / 1.198 GB, free: 11.04 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0004/0.8028, allocations: 407 kB / 1.199 GB, free: 10.64 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0002743/0.8031, allocations: 257.1 kB / 1.199 GB, free: 10.38 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.001364/0.8044, allocations: 1.305 MB / 1.2 GB, free: 9.07 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.8044, allocations: 0 / 1.2 GB, free: 9.07 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.165e-06/0.8044, allocations: 0 / 1.2 GB, free: 9.07 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 2.18e-05/0.8045, allocations: 0 / 1.2 GB, free: 9.07 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.002011/0.8065, allocations: 1.242 MB / 1.201 GB, free: 7.773 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.563e-05/0.8065, allocations: 11.98 kB / 1.201 GB, free: 7.762 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001357/0.8079, allocations: 250.4 kB / 1.202 GB, free: 7.516 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001495/0.8094, allocations: 0.7575 MB / 1.202 GB, free: 6.719 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.641e-05/0.8095, allocations: 66 kB / 1.202 GB, free: 6.652 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001423/0.8096, allocations: 103.9 kB / 1.202 GB, free: 6.551 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001603/0.8112, allocations: 1.157 MB / 1.204 GB, free: 5.324 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.518e-05/0.8113, allocations: 7.938 kB / 1.204 GB, free: 5.316 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.338e-05/0.8114, allocations: 36 kB / 1.204 GB, free: 5.281 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.256e-05/0.8114, allocations: 37.95 kB / 1.204 GB, free: 5.242 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001339/0.8128, allocations: 0.9054 MB / 1.205 GB, free: 4.34 MB / 0.9512 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.005424/0.8182, allocations: 5.735 MB / 1.21 GB, free: 14.14 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008436/0.8191, allocations: 0.5813 MB / 1.211 GB, free: 13.55 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003959/0.8195, allocations: 141.5 kB / 1.211 GB, free: 13.39 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.517e-05/0.8195, allocations: 47 kB / 1.211 GB, free: 13.34 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=51): time 2.405e-06/0.8195, allocations: 0 / 1.211 GB, free: 13.34 MB / 0.9669 GB Notification: Performance of matching and sorting (n=51): time 0.001487/0.821, allocations: 0.8182 MB / 1.212 GB, free: 12.51 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.191e-05/0.8211, allocations: 85.48 kB / 1.212 GB, free: 12.41 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008608/0.8219, allocations: 0.7471 MB / 1.212 GB, free: 11.65 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 5.534e-05/0.822, allocations: 41.7 kB / 1.213 GB, free: 11.6 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.000334/0.8223, allocations: 0.5143 MB / 1.213 GB, free: 11.08 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.000149/0.8225, allocations: 181.4 kB / 1.213 GB, free: 10.9 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.371e-05/0.8225, allocations: 16 kB / 1.213 GB, free: 10.88 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.000105/0.8226, allocations: 341.9 kB / 1.214 GB, free: 10.54 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000377/0.823, allocations: 253.8 kB / 1.214 GB, free: 10.3 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005918/0.8236, allocations: 0.5728 MB / 1.214 GB, free: 9.586 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004893/0.8241, allocations: 352.6 kB / 1.215 GB, free: 9.242 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.107e-06/0.8241, allocations: 0 / 1.215 GB, free: 9.242 MB / 0.9669 GB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001255/0.8254, allocations: 0.8662 MB / 1.216 GB, free: 8.371 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/0.8254, allocations: 8 kB / 1.216 GB, free: 8.363 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/0.8254, allocations: 8 kB / 1.216 GB, free: 8.355 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.286e-05/0.8255, allocations: 12 kB / 1.216 GB, free: 8.344 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005799/0.826, allocations: 159.7 kB / 1.216 GB, free: 8.188 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.827e-05/0.8261, allocations: 19.92 kB / 1.216 GB, free: 8.168 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009014/0.827, allocations: 151.1 kB / 1.216 GB, free: 8.02 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.628e-05/0.8271, allocations: 32 kB / 1.216 GB, free: 7.988 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * 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 (89): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004123/0.8275, allocations: 333.4 kB / 1.216 GB, free: 7.652 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001378/0.8276, allocations: 90.97 kB / 1.216 GB, free: 7.562 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009742/0.8286, allocations: 0.6335 MB / 1.217 GB, free: 6.91 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.584e-06/0.8286, allocations: 8 kB / 1.217 GB, free: 6.902 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.8286, allocations: 0 / 1.217 GB, free: 6.902 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007112/0.8293, allocations: 0.5289 MB / 1.217 GB, free: 6.363 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002646/0.832, allocations: 1.773 MB / 1.219 GB, free: 4.508 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/0.832, allocations: 4 kB / 1.219 GB, free: 4.504 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005305/0.8326, allocations: 111.9 kB / 1.219 GB, free: 4.395 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.296e-06/0.8326, allocations: 4 kB / 1.219 GB, free: 4.391 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.174e-05/0.8326, allocations: 19.95 kB / 1.219 GB, free: 4.371 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.214e-06/0.8326, allocations: 12.17 kB / 1.219 GB, free: 4.359 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.8326, allocations: 7.938 kB / 1.219 GB, free: 4.352 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00135/0.834, allocations: 1.14 MB / 1.22 GB, free: 3.121 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003826/0.8344, allocations: 224.2 kB / 1.221 GB, free: 2.883 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001123/0.8345, allocations: 12 kB / 1.221 GB, free: 2.871 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005792/0.8351, allocations: 66.06 kB / 1.221 GB, free: 2.809 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.865e-05/0.8352, allocations: 39.94 kB / 1.221 GB, free: 2.77 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.777e-05/0.8352, allocations: 16 kB / 1.221 GB, free: 2.754 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0006142/0.8358, allocations: 0.5068 MB / 1.221 GB, free: 2.25 MB / 0.9669 GB Notification: Performance of sort global known variables: time 2.01e-07/0.8358, allocations: 0 / 1.221 GB, free: 2.25 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.000986/0.8368, allocations: 311.2 kB / 1.222 GB, free: 1.945 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 4 (vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.m,vol.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 (51): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005476/0.8374, allocations: 212.7 kB / 1.222 GB, free: 1.746 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.00106/0.8385, allocations: 0.6193 MB / 1.222 GB, free: 1.129 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.828e-06/0.8385, allocations: 0 / 1.222 GB, free: 1.129 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0003586/0.8388, allocations: 280 kB / 1.223 GB, free: 0.8555 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001975/0.8408, allocations: 439.3 kB / 1.223 GB, free: 448 kB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003112/0.844, allocations: 2.385 MB / 1.225 GB, free: 13.99 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006409/0.8446, allocations: 1.138 MB / 1.227 GB, free: 12.83 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0008685/0.8455, allocations: 287.2 kB / 1.227 GB, free: 12.54 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001878/0.8457, allocations: 79.42 kB / 1.227 GB, free: 12.46 MB / 0.9825 GB Notification: Performance of SimCode: time 5.71e-07/0.8457, allocations: 0 / 1.227 GB, free: 12.46 MB / 0.9825 GB Notification: Performance of Templates: time 0.02405/0.8698, allocations: 14.8 MB / 1.241 GB, free: 13.88 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.makefile (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.sim & ./Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sensors_Examples_TraceSubstances.csv","../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches