Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 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.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_9_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_9_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.00119/0.00119, allocations: 100 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.001238/0.001238, 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.377/1.377, allocations: 223.2 MB / 239.9 MB, free: 5.441 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.363/2.363, allocations: 390.3 MB / 0.6653 GB, free: 2.902 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003397/0.0003397, allocations: 8 kB / 0.8145 GB, free: 14.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.737/0.7374, allocations: 142.3 MB / 0.9535 GB, free: 8.137 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.1953/0.9327, allocations: 161.8 MB / 1.112 GB, free: 13.93 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01666/0.9494, allocations: 12.17 MB / 1.123 GB, free: 1.73 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00164/0.9511, allocations: 31.75 kB / 1.123 GB, free: 1.699 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.001917/0.9531, allocations: 0.4899 MB / 1.124 GB, free: 1.207 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.00564/0.9587, allocations: 1.554 MB / 1.125 GB, free: 15.65 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.003203/0.9619, allocations: 0.9437 MB / 1.126 GB, free: 14.71 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.00288/0.9648, allocations: 1.48 MB / 1.128 GB, free: 13.23 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001258/0.9661, allocations: 0.8204 MB / 1.129 GB, free: 12.4 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002751/0.9689, allocations: 1.11 MB / 1.13 GB, free: 11.29 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001275/0.9702, allocations: 0.6189 MB / 1.13 GB, free: 10.66 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0001241/0.9703, allocations: 48 kB / 1.13 GB, free: 10.62 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001651/0.972, allocations: 0.5421 MB / 1.131 GB, free: 10.07 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0004279/0.9724, allocations: 407 kB / 1.131 GB, free: 9.676 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.000341/0.9727, allocations: 249.1 kB / 1.131 GB, free: 9.426 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.001453/0.9742, allocations: 1.313 MB / 1.133 GB, free: 8.109 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.9742, allocations: 0 / 1.133 GB, free: 8.109 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.315e-06/0.9742, allocations: 4 kB / 1.133 GB, free: 8.105 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.249e-05/0.9742, allocations: 0 / 1.133 GB, free: 8.105 MB / 0.8887 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.002026/0.9763, allocations: 1.235 MB / 1.134 GB, free: 6.816 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.9763, allocations: 8.031 kB / 1.134 GB, free: 6.809 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001308/0.9776, allocations: 254.4 kB / 1.134 GB, free: 6.559 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001551/0.9792, allocations: 0.7613 MB / 1.135 GB, free: 5.758 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.34e-05/0.9793, allocations: 70 kB / 1.135 GB, free: 5.688 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001351/0.9794, allocations: 92 kB / 1.135 GB, free: 5.598 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001696/0.9811, allocations: 1.165 MB / 1.136 GB, free: 4.363 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.646e-05/0.9812, allocations: 4 kB / 1.136 GB, free: 4.359 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.257e-05/0.9813, allocations: 36 kB / 1.136 GB, free: 4.324 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.192e-05/0.9813, allocations: 41.94 kB / 1.136 GB, free: 4.281 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001345/0.9827, allocations: 0.9015 MB / 1.137 GB, free: 3.383 MB / 0.8887 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.005571/0.9882, allocations: 5.74 MB / 1.143 GB, free: 13.18 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008291/0.9891, allocations: 0.5944 MB / 1.143 GB, free: 12.57 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003799/0.9895, allocations: 149.5 kB / 1.144 GB, free: 12.41 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.02e-05/0.9895, allocations: 43 kB / 1.144 GB, free: 12.36 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=51): time 2.715e-06/0.9895, allocations: 0 / 1.144 GB, free: 12.36 MB / 0.9044 GB Notification: Performance of matching and sorting (n=51): time 0.001491/0.991, allocations: 0.8221 MB / 1.144 GB, free: 11.54 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.03e-05/0.9911, allocations: 81.55 kB / 1.144 GB, free: 11.44 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008646/0.992, allocations: 0.7508 MB / 1.145 GB, free: 10.68 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 5.587e-05/0.992, allocations: 37.7 kB / 1.145 GB, free: 10.63 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004128/0.9924, allocations: 0.5066 MB / 1.146 GB, free: 10.12 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001759/0.9926, allocations: 185.4 kB / 1.146 GB, free: 9.934 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.953e-05/0.9927, allocations: 12 kB / 1.146 GB, free: 9.922 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001344/0.9928, allocations: 334 kB / 1.146 GB, free: 9.59 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003635/0.9932, allocations: 253.8 kB / 1.146 GB, free: 9.34 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006248/0.9938, allocations: 0.5805 MB / 1.147 GB, free: 8.617 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005075/0.9943, allocations: 356.6 kB / 1.147 GB, free: 8.27 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.9943, allocations: 0 / 1.147 GB, free: 8.27 MB / 0.9044 GB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001221/0.9956, allocations: 0.8622 MB / 1.148 GB, free: 7.398 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.335e-05/0.9956, allocations: 8.156 kB / 1.148 GB, free: 7.391 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.364e-05/0.9956, allocations: 12 kB / 1.148 GB, free: 7.379 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.457e-05/0.9956, allocations: 15.94 kB / 1.148 GB, free: 7.363 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005514/0.9962, allocations: 159.8 kB / 1.148 GB, free: 7.207 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.817e-05/0.9962, allocations: 15.94 kB / 1.148 GB, free: 7.191 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009138/0.9971, allocations: 151 kB / 1.149 GB, free: 7.043 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.182e-05/0.9972, allocations: 32 kB / 1.149 GB, free: 7.012 MB / 0.9044 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.0004617/0.9977, allocations: 333.5 kB / 1.149 GB, free: 6.676 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001338/0.9978, allocations: 90.92 kB / 1.149 GB, free: 6.586 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009505/0.9988, allocations: 0.6335 MB / 1.15 GB, free: 5.949 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.137e-06/0.9988, allocations: 12 kB / 1.15 GB, free: 5.938 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.164e-06/0.9988, allocations: 0 / 1.15 GB, free: 5.938 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007053/0.9995, allocations: 0.5251 MB / 1.15 GB, free: 5.398 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002605/1.002, allocations: 1.773 MB / 1.152 GB, free: 3.543 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.051e-06/1.002, allocations: 4 kB / 1.152 GB, free: 3.539 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004938/1.003, allocations: 111.8 kB / 1.152 GB, free: 3.43 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.784e-06/1.003, allocations: 4 kB / 1.152 GB, free: 3.426 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.799e-05/1.003, allocations: 16 kB / 1.152 GB, free: 3.41 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.91e-06/1.003, allocations: 4 kB / 1.152 GB, free: 3.406 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/1.003, allocations: 0 / 1.152 GB, free: 3.406 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001323/1.004, allocations: 1.152 MB / 1.153 GB, free: 2.168 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003788/1.004, allocations: 227.9 kB / 1.153 GB, free: 1.926 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001027/1.005, allocations: 16 kB / 1.153 GB, free: 1.91 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005456/1.005, allocations: 67.83 kB / 1.153 GB, free: 1.844 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.257e-05/1.005, allocations: 43.89 kB / 1.153 GB, free: 1.801 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.083e-05/1.005, allocations: 19.94 kB / 1.154 GB, free: 1.781 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0005971/1.006, allocations: 0.5068 MB / 1.154 GB, free: 1.277 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.31e-07/1.006, allocations: 0 / 1.154 GB, free: 1.277 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0009193/1.007, allocations: 307.3 kB / 1.154 GB, free: 0.9766 MB / 0.9044 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.0004984/1.007, allocations: 208.1 kB / 1.154 GB, free: 0.7773 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0008742/1.008, allocations: 0.616 MB / 1.155 GB, free: 164 kB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/1.008, allocations: 4 kB / 1.155 GB, free: 160 kB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0003419/1.009, allocations: 279.6 kB / 1.155 GB, free: 15.88 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001831/1.01, allocations: 436.5 kB / 1.156 GB, free: 15.47 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003035/1.013, allocations: 2.389 MB / 1.158 GB, free: 13.02 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007331/1.014, allocations: 1.142 MB / 1.159 GB, free: 11.86 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0008164/1.015, allocations: 283.3 kB / 1.159 GB, free: 11.57 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000174/1.015, allocations: 75.42 kB / 1.16 GB, free: 11.5 MB / 0.92 GB Notification: Performance of SimCode: time 1.223e-06/1.015, allocations: 4 kB / 1.16 GB, free: 11.5 MB / 0.92 GB Notification: Performance of Templates: time 0.02599/1.041, allocations: 14.81 MB / 1.174 GB, free: 12.93 MB / 0.9356 GB make -j1 -f Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.makefile (rm -f Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe >> ../files/Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.sim & ./Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Sensors_Examples_TraceSubstances.csv","../files/Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches