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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001181/0.001181, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001189/0.001189, allocations: 195.6 kB / 16.53 MB, free: 6.664 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.432/1.432, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.91/2.91, allocations: 472.6 MB / 0.7451 GB, free: 4.645 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 65.44 kB / 0.9121 GB, free: 33.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3723/0.3736, allocations: 159.9 MB / 1.068 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.9668/1.34, allocations: 195.1 MB / 1.259 GB, free: 5.734 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.01624/1.357, allocations: 14.32 MB / 1.273 GB, free: 5.648 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001525/1.358, allocations: 37.31 kB / 1.273 GB, free: 5.648 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001522/1.36, allocations: 0.4969 MB / 1.273 GB, free: 5.645 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.00507/1.365, allocations: 1.885 MB / 1.275 GB, free: 5.57 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002518/1.367, allocations: 0.8581 MB / 1.276 GB, free: 5.555 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.003292/1.371, allocations: 2.583 MB / 1.278 GB, free: 5.543 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00162/1.372, allocations: 1.113 MB / 1.28 GB, free: 5.457 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004723/1.377, allocations: 1.606 MB / 1.281 GB, free: 5.422 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002072/1.379, allocations: 0.922 MB / 1.282 GB, free: 5.422 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0002333/1.379, allocations: 105.8 kB / 1.282 GB, free: 5.422 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002895/1.382, allocations: 1.091 MB / 1.283 GB, free: 5.414 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0007413/1.383, allocations: 0.4945 MB / 1.284 GB, free: 5.41 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.001265/1.384, allocations: 0.6357 MB / 1.284 GB, free: 5.406 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.00418/1.389, allocations: 1.882 MB / 1.286 GB, free: 5.301 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 7.755e-06/1.389, allocations: 0.5625 kB / 1.286 GB, free: 5.301 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.064e-06/1.389, allocations: 2.297 kB / 1.286 GB, free: 5.301 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 2.926e-05/1.389, allocations: 1 kB / 1.286 GB, free: 5.301 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: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.002981/1.392, allocations: 1.455 MB / 1.288 GB, free: 20.52 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/1.392, allocations: 11.34 kB / 1.288 GB, free: 20.52 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001518/1.393, allocations: 245 kB / 1.288 GB, free: 20.46 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001308/1.395, allocations: 0.7617 MB / 1.289 GB, free: 20.14 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.188e-05/1.395, allocations: 73.03 kB / 1.289 GB, free: 20.13 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001352/1.395, allocations: 91.77 kB / 1.289 GB, free: 20.13 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001815/1.397, allocations: 1.176 MB / 1.29 GB, free: 19.91 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.517e-05/1.397, allocations: 6.031 kB / 1.29 GB, free: 19.91 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.682e-05/1.397, allocations: 36.53 kB / 1.29 GB, free: 19.91 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.622e-05/1.397, allocations: 36.84 kB / 1.29 GB, free: 19.9 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001392/1.398, allocations: 0.9002 MB / 1.291 GB, free: 19.9 MB / 1.014 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.006042/1.404, allocations: 5.775 MB / 1.296 GB, free: 16.12 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008094/1.405, allocations: 0.5394 MB / 1.297 GB, free: 16.09 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004256/1.405, allocations: 326.1 kB / 1.297 GB, free: 16.08 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005865/1.406, allocations: 315.4 kB / 1.298 GB, free: 15.8 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.267e-05/1.406, allocations: 37.78 kB / 1.298 GB, free: 15.76 MB / 1.014 GB Notification: Performance of pre-optimization done (n=49): time 2.134e-06/1.406, allocations: 0 / 1.298 GB, free: 15.76 MB / 1.014 GB Notification: Performance of matching and sorting (n=49): time 0.001536/1.408, allocations: 0.7963 MB / 1.298 GB, free: 15.67 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.104e-05/1.408, allocations: 65.69 kB / 1.298 GB, free: 15.61 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009019/1.409, allocations: 0.7508 MB / 1.299 GB, free: 15.46 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 6.784e-05/1.409, allocations: 38.17 kB / 1.299 GB, free: 15.43 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003267/1.409, allocations: 0.5087 MB / 1.3 GB, free: 15.19 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001674/1.409, allocations: 172.5 kB / 1.3 GB, free: 15.08 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002147/1.409, allocations: 146.1 kB / 1.3 GB, free: 15.06 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001264/1.41, allocations: 333.7 kB / 1.3 GB, free: 14.75 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003691/1.41, allocations: 247.1 kB / 1.301 GB, free: 14.75 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005654/1.411, allocations: 0.5515 MB / 1.301 GB, free: 14.4 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009354/1.411, allocations: 0.8005 MB / 1.302 GB, free: 14.11 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.963e-06/1.411, allocations: 3.469 kB / 1.302 GB, free: 14.11 MB / 1.014 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001411/1.413, allocations: 0.8439 MB / 1.303 GB, free: 14.03 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.376e-05/1.413, allocations: 8.188 kB / 1.303 GB, free: 14.03 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.373e-05/1.413, allocations: 7.938 kB / 1.303 GB, free: 14.03 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.486e-05/1.413, allocations: 16.11 kB / 1.303 GB, free: 14.03 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005771/1.414, allocations: 160.1 kB / 1.303 GB, free: 14.02 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.289e-05/1.414, allocations: 19.09 kB / 1.303 GB, free: 14.02 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008254/1.414, allocations: 88.64 kB / 1.303 GB, free: 13.98 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.108e-05/1.414, allocations: 38.92 kB / 1.303 GB, free: 13.98 MB / 1.014 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.0005222/1.415, allocations: 327.2 kB / 1.303 GB, free: 13.86 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001534/1.415, allocations: 92.25 kB / 1.303 GB, free: 13.81 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001016/1.416, allocations: 0.616 MB / 1.304 GB, free: 13.75 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-06/1.416, allocations: 13.16 kB / 1.304 GB, free: 13.75 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/1.416, allocations: 1.156 kB / 1.304 GB, free: 13.75 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007143/1.417, allocations: 0.5178 MB / 1.305 GB, free: 13.68 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002487/1.419, allocations: 1.666 MB / 1.306 GB, free: 13.3 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/1.419, allocations: 2.125 kB / 1.306 GB, free: 13.3 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005222/1.42, allocations: 113.8 kB / 1.306 GB, free: 13.29 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.687e-06/1.42, allocations: 5.531 kB / 1.306 GB, free: 13.29 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.906e-05/1.42, allocations: 15.78 kB / 1.306 GB, free: 13.29 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.602e-06/1.42, allocations: 4.219 kB / 1.306 GB, free: 13.29 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/1.42, allocations: 6.281 kB / 1.306 GB, free: 13.29 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001321/1.421, allocations: 1.025 MB / 1.307 GB, free: 13.04 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003875/1.422, allocations: 221.1 kB / 1.308 GB, free: 12.9 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001154/1.422, allocations: 13.81 kB / 1.308 GB, free: 12.9 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004757/1.422, allocations: 17.02 kB / 1.308 GB, free: 12.9 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.311e-05/1.422, allocations: 35.88 kB / 1.308 GB, free: 12.89 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.788e-05/1.423, allocations: 17.47 kB / 1.308 GB, free: 12.89 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.000699/1.423, allocations: 0.5174 MB / 1.308 GB, free: 12.8 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.2e-07/1.423, allocations: 0 / 1.308 GB, free: 12.8 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.00106/1.424, allocations: 299.2 kB / 1.308 GB, free: 12.76 MB / 1.014 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.0005039/1.425, allocations: 212.8 kB / 1.309 GB, free: 12.65 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.001172/1.426, allocations: 0.7121 MB / 1.309 GB, free: 12.64 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 4.578e-06/1.426, allocations: 2.156 kB / 1.309 GB, free: 12.64 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0003321/1.426, allocations: 272.4 kB / 1.31 GB, free: 12.64 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001979/1.428, allocations: 439 kB / 1.31 GB, free: 12.59 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003036/1.431, allocations: 1.954 MB / 1.312 GB, free: 11.73 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007052/1.432, allocations: 1.119 MB / 1.313 GB, free: 11.02 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0009301/1.433, allocations: 278.1 kB / 1.313 GB, free: 10.97 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001936/1.433, allocations: 69.25 kB / 1.313 GB, free: 10.96 MB / 1.014 GB Notification: Performance of SimCode: time 1.403e-06/1.433, allocations: 0 / 1.313 GB, free: 10.96 MB / 1.014 GB Notification: Performance of Templates: time 0.0256/1.459, allocations: 15.4 MB / 1.328 GB, free: 10.03 MB / 1.014 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches