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.00143/0.00143, allocations: 107.7 kB / 16.36 MB, free: 6.336 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.001367/0.001367, allocations: 194.8 kB / 17.29 MB, free: 5.883 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.419/1.419, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.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.6655 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001279, allocations: 61.53 kB / 0.814 GB, free: 32.7 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.322/0.3233, allocations: 140.4 MB / 0.9511 GB, free: 8.07 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.9629/1.286, allocations: 195.1 MB / 1.142 GB, free: 5.207 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.02049/1.307, allocations: 14.32 MB / 1.156 GB, free: 3.91 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002496/1.309, allocations: 34.34 kB / 1.156 GB, free: 3.898 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001995/1.311, allocations: 0.4971 MB / 1.156 GB, free: 3.621 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.006851/1.318, allocations: 1.885 MB / 1.158 GB, free: 2.891 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.003297/1.322, allocations: 0.8692 MB / 1.159 GB, free: 2.52 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.004933/1.327, allocations: 2.574 MB / 1.161 GB, free: 1.457 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002049/1.329, allocations: 1.119 MB / 1.162 GB, free: 0.9961 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00605/1.335, allocations: 1.597 MB / 1.164 GB, free: 432 kB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002543/1.337, allocations: 0.9222 MB / 1.165 GB, free: 112 kB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.000323/1.338, allocations: 110.9 kB / 1.165 GB, free: 108 kB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003547/1.341, allocations: 1.098 MB / 1.166 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.00076/1.342, allocations: 0.4929 MB / 1.167 GB, free: 15.64 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.001278/1.343, allocations: 0.6383 MB / 1.167 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.004334/1.348, allocations: 1.904 MB / 1.169 GB, free: 14.66 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 7.665e-06/1.348, allocations: 3.594 kB / 1.169 GB, free: 14.66 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.995e-06/1.348, allocations: 0 / 1.169 GB, free: 14.66 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 3.408e-05/1.348, allocations: 3.938 kB / 1.169 GB, free: 14.66 MB / 0.8731 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.003151/1.351, allocations: 1.445 MB / 1.17 GB, free: 13.7 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.811e-05/1.351, allocations: 9.844 kB / 1.17 GB, free: 13.7 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001573/1.353, allocations: 258.2 kB / 1.171 GB, free: 13.62 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001957/1.355, allocations: 0.7979 MB / 1.171 GB, free: 13.14 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.981e-05/1.355, allocations: 69.97 kB / 1.172 GB, free: 13.11 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001601/1.355, allocations: 89.31 kB / 1.172 GB, free: 13.09 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002107/1.357, allocations: 1.17 MB / 1.173 GB, free: 12.52 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.782e-05/1.357, allocations: 2.156 kB / 1.173 GB, free: 12.52 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.138e-05/1.357, allocations: 37.59 kB / 1.173 GB, free: 12.49 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.975e-05/1.357, allocations: 47.52 kB / 1.173 GB, free: 12.48 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001531/1.359, allocations: 0.8987 MB / 1.174 GB, free: 12.18 MB / 0.8731 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.007155/1.366, allocations: 5.742 MB / 1.179 GB, free: 7.609 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009478/1.367, allocations: 0.5326 MB / 1.18 GB, free: 7.398 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000515/1.367, allocations: 322.6 kB / 1.18 GB, free: 7.277 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006317/1.368, allocations: 310.8 kB / 1.18 GB, free: 6.992 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.502e-05/1.368, allocations: 45.69 kB / 1.181 GB, free: 6.941 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=49): time 2.194e-06/1.368, allocations: 0 / 1.181 GB, free: 6.941 MB / 0.8731 GB Notification: Performance of matching and sorting (n=49): time 0.001693/1.37, allocations: 0.7975 MB / 1.181 GB, free: 6.637 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.135e-05/1.37, allocations: 55.25 kB / 1.181 GB, free: 6.574 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001029/1.371, allocations: 0.7473 MB / 1.182 GB, free: 6.27 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 6.333e-05/1.371, allocations: 36.98 kB / 1.182 GB, free: 6.23 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004362/1.371, allocations: 0.5113 MB / 1.183 GB, free: 5.824 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001877/1.372, allocations: 182.3 kB / 1.183 GB, free: 5.688 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002268/1.372, allocations: 145.8 kB / 1.183 GB, free: 5.613 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001473/1.372, allocations: 338.1 kB / 1.183 GB, free: 5.293 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003697/1.372, allocations: 244.7 kB / 1.183 GB, free: 5.203 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006921/1.373, allocations: 0.5503 MB / 1.184 GB, free: 4.68 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001116/1.374, allocations: 0.8067 MB / 1.185 GB, free: 4.062 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/1.374, allocations: 6.688 kB / 1.185 GB, free: 4.059 MB / 0.8731 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001436/1.376, allocations: 0.843 MB / 1.186 GB, free: 3.633 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.961e-05/1.376, allocations: 8.344 kB / 1.186 GB, free: 3.633 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.647e-05/1.376, allocations: 6.781 kB / 1.186 GB, free: 3.633 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.233e-05/1.376, allocations: 14.97 kB / 1.186 GB, free: 3.633 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005612/1.376, allocations: 149.3 kB / 1.186 GB, free: 3.602 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.285e-05/1.376, allocations: 21.2 kB / 1.186 GB, free: 3.594 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008835/1.377, allocations: 92.39 kB / 1.186 GB, free: 3.531 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.329e-05/1.377, allocations: 36.72 kB / 1.186 GB, free: 3.523 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * 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 (86): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007648/1.378, allocations: 337.5 kB / 1.186 GB, free: 3.273 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002331/1.378, allocations: 85.41 kB / 1.186 GB, free: 3.23 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001527/1.38, allocations: 0.6174 MB / 1.187 GB, free: 2.875 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.176e-05/1.38, allocations: 5.5 kB / 1.187 GB, free: 2.875 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.889e-06/1.38, allocations: 3.938 kB / 1.187 GB, free: 2.871 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001133/1.381, allocations: 0.5227 MB / 1.187 GB, free: 2.586 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003969/1.385, allocations: 1.671 MB / 1.189 GB, free: 1.449 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.074e-06/1.385, allocations: 1.781 kB / 1.189 GB, free: 1.449 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007696/1.386, allocations: 113.6 kB / 1.189 GB, free: 1.422 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.652e-05/1.386, allocations: 5.812 kB / 1.189 GB, free: 1.422 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.026e-05/1.386, allocations: 12.84 kB / 1.189 GB, free: 1.414 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.489e-05/1.386, allocations: 9.219 kB / 1.189 GB, free: 1.41 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.244e-06/1.386, allocations: 3.984 kB / 1.189 GB, free: 1.406 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002271/1.388, allocations: 1.012 MB / 1.19 GB, free: 0.7891 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000754/1.389, allocations: 226.4 kB / 1.19 GB, free: 0.5977 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001573/1.389, allocations: 17.23 kB / 1.19 GB, free: 0.5859 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006596/1.39, allocations: 13.5 kB / 1.19 GB, free: 0.5781 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001089/1.39, allocations: 34.11 kB / 1.191 GB, free: 0.5625 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.813e-05/1.39, allocations: 17.62 kB / 1.191 GB, free: 0.5586 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.00104/1.391, allocations: 0.5074 MB / 1.191 GB, free: 276 kB / 0.8731 GB Notification: Performance of sort global known variables: time 3.91e-07/1.391, allocations: 0 / 1.191 GB, free: 276 kB / 0.8731 GB Notification: Performance of remove unused functions: time 0.001683/1.393, allocations: 310.4 kB / 1.191 GB, free: 204 kB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (49): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007546/1.393, allocations: 215.9 kB / 1.192 GB, free: 60 kB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001548/1.395, allocations: 0.612 MB / 1.192 GB, free: 15.78 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 5.109e-06/1.395, allocations: 3.281 kB / 1.192 GB, free: 15.78 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0005637/1.396, allocations: 269.2 kB / 1.192 GB, free: 15.66 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003093/1.399, allocations: 446.5 kB / 1.193 GB, free: 15.43 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004873/1.404, allocations: 1.914 MB / 1.195 GB, free: 14.23 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001203/1.405, allocations: 1.122 MB / 1.196 GB, free: 13.33 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.001485/1.406, allocations: 261.4 kB / 1.196 GB, free: 13.22 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003043/1.407, allocations: 73.02 kB / 1.196 GB, free: 13.2 MB / 0.8887 GB Notification: Performance of SimCode: time 1.192e-06/1.407, allocations: 0 / 1.196 GB, free: 13.2 MB / 0.8887 GB Notification: Performance of Templates: time 0.04622/1.453, allocations: 15.39 MB / 1.211 GB, free: 5.734 MB / 0.8887 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 -s cvode -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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches