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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.007417/0.007417, allocations: 99.97 kB / 15.73 MB, free: 6.047 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.001591/0.001591, allocations: 185.3 kB / 16.67 MB, free: 5.977 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.401/1.401, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.765/2.765, allocations: 461.9 MB / 0.7348 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001379/0.001379, allocations: 63.91 kB / 1.054 GB, free: 7.141 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3389/0.3403, allocations: 157.4 MB / 1.208 GB, free: 9.633 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.9823/1.323, allocations: 195.1 MB / 1.398 GB, free: 11.44 MB / 1.092 GB Notification: Performance of NFInst.instExpressions: time 0.0175/1.34, allocations: 14.32 MB / 1.412 GB, free: 15.84 MB / 1.107 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001805/1.342, allocations: 43.38 kB / 1.412 GB, free: 15.82 MB / 1.107 GB Notification: Performance of NFTyping.typeComponents: time 0.001582/1.344, allocations: 0.4944 MB / 1.413 GB, free: 15.4 MB / 1.107 GB Notification: Performance of NFTyping.typeBindings: time 0.005041/1.349, allocations: 1.884 MB / 1.415 GB, free: 13.96 MB / 1.107 GB Notification: Performance of NFTyping.typeClassSections: time 0.002403/1.351, allocations: 0.8635 MB / 1.415 GB, free: 13.3 MB / 1.107 GB Notification: Performance of NFFlatten.flatten: time 0.003492/1.355, allocations: 2.582 MB / 1.418 GB, free: 11.82 MB / 1.107 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001388/1.356, allocations: 1.105 MB / 1.419 GB, free: 11.18 MB / 1.107 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004128/1.36, allocations: 1.614 MB / 1.421 GB, free: 10.22 MB / 1.107 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001488/1.362, allocations: 0.9154 MB / 1.422 GB, free: 9.688 MB / 1.107 GB Notification: Performance of NFPackage.collectConstants: time 0.0001395/1.362, allocations: 107.2 kB / 1.422 GB, free: 9.688 MB / 1.107 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002111/1.364, allocations: 1.102 MB / 1.423 GB, free: 9.113 MB / 1.107 GB Notification: Performance of NFScalarize.scalarize: time 0.0004399/1.364, allocations: 0.5013 MB / 1.423 GB, free: 8.777 MB / 1.107 GB Notification: Performance of NFVerifyModel.verify: time 0.0006469/1.365, allocations: 0.6326 MB / 1.424 GB, free: 8.375 MB / 1.107 GB Notification: Performance of NFConvertDAE.convert: time 0.002335/1.367, allocations: 1.899 MB / 1.426 GB, free: 7.148 MB / 1.107 GB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/1.367, allocations: 2.625 kB / 1.426 GB, free: 7.148 MB / 1.107 GB Notification: Performance of FrontEnd: time 4.739e-06/1.367, allocations: 0 / 1.426 GB, free: 7.148 MB / 1.107 GB Notification: Performance of Transformations before backend: time 1.615e-05/1.367, allocations: 7.922 kB / 1.426 GB, free: 7.141 MB / 1.107 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.002186/1.37, allocations: 1.457 MB / 1.427 GB, free: 6.031 MB / 1.107 GB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/1.37, allocations: 8.406 kB / 1.427 GB, free: 6.031 MB / 1.107 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001312/1.371, allocations: 257.8 kB / 1.427 GB, free: 5.879 MB / 1.107 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001335/1.372, allocations: 0.7969 MB / 1.428 GB, free: 5.043 MB / 1.107 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.939e-05/1.372, allocations: 66 kB / 1.428 GB, free: 4.977 MB / 1.107 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001524/1.373, allocations: 95.91 kB / 1.428 GB, free: 4.883 MB / 1.107 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001698/1.374, allocations: 1.173 MB / 1.429 GB, free: 3.641 MB / 1.107 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.661e-05/1.374, allocations: 4 kB / 1.429 GB, free: 3.637 MB / 1.107 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.332e-05/1.374, allocations: 43.94 kB / 1.429 GB, free: 3.594 MB / 1.107 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.767e-05/1.374, allocations: 37.94 kB / 1.43 GB, free: 3.555 MB / 1.107 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001294/1.376, allocations: 0.9015 MB / 1.43 GB, free: 2.656 MB / 1.107 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.005629/1.381, allocations: 5.739 MB / 1.436 GB, free: 12.46 MB / 1.123 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008818/1.382, allocations: 0.5277 MB / 1.437 GB, free: 11.92 MB / 1.123 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000422/1.383, allocations: 318.6 kB / 1.437 GB, free: 11.61 MB / 1.123 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005936/1.383, allocations: 315.6 kB / 1.437 GB, free: 11.24 MB / 1.123 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.138e-05/1.383, allocations: 39 kB / 1.437 GB, free: 11.2 MB / 1.123 GB Notification: Performance of pre-optimization done (n=49): time 3.065e-06/1.383, allocations: 0 / 1.437 GB, free: 11.2 MB / 1.123 GB Notification: Performance of matching and sorting (n=49): time 0.001487/1.385, allocations: 0.8026 MB / 1.438 GB, free: 10.38 MB / 1.123 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.596e-05/1.385, allocations: 55.84 kB / 1.438 GB, free: 10.32 MB / 1.123 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008776/1.386, allocations: 0.7547 MB / 1.439 GB, free: 9.551 MB / 1.123 GB Notification: Performance of collectPreVariables (initialization): time 4.882e-05/1.386, allocations: 37.7 kB / 1.439 GB, free: 9.508 MB / 1.123 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003481/1.386, allocations: 0.5027 MB / 1.439 GB, free: 8.996 MB / 1.123 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001499/1.386, allocations: 181.5 kB / 1.439 GB, free: 8.816 MB / 1.123 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001941/1.387, allocations: 142.5 kB / 1.44 GB, free: 8.672 MB / 1.123 GB Notification: Performance of setup shared object (initialization): time 0.0001282/1.387, allocations: 341.9 kB / 1.44 GB, free: 8.332 MB / 1.123 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003535/1.387, allocations: 253.8 kB / 1.44 GB, free: 8.086 MB / 1.123 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005696/1.388, allocations: 0.5585 MB / 1.441 GB, free: 7.395 MB / 1.123 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009621/1.389, allocations: 0.7996 MB / 1.441 GB, free: 6.484 MB / 1.123 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.169e-06/1.389, allocations: 0 / 1.441 GB, free: 6.484 MB / 1.123 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001194/1.39, allocations: 0.8465 MB / 1.442 GB, free: 5.633 MB / 1.123 GB Notification: Performance of prepare postOptimizeDAE: time 2.169e-05/1.39, allocations: 8 kB / 1.442 GB, free: 5.625 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.249e-05/1.39, allocations: 8 kB / 1.442 GB, free: 5.617 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.641e-05/1.39, allocations: 15.94 kB / 1.442 GB, free: 5.602 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005336/1.39, allocations: 155.8 kB / 1.442 GB, free: 5.449 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.883e-05/1.39, allocations: 15.94 kB / 1.443 GB, free: 5.434 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006895/1.391, allocations: 91.45 kB / 1.443 GB, free: 5.344 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.124e-05/1.391, allocations: 35.98 kB / 1.443 GB, free: 5.309 MB / 1.123 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.000427/1.392, allocations: 333.4 kB / 1.443 GB, free: 4.973 MB / 1.123 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001211/1.392, allocations: 86.97 kB / 1.443 GB, free: 4.887 MB / 1.123 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009646/1.393, allocations: 0.6218 MB / 1.444 GB, free: 4.254 MB / 1.123 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.256e-06/1.393, allocations: 4 kB / 1.444 GB, free: 4.25 MB / 1.123 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/1.393, allocations: 0 / 1.444 GB, free: 4.25 MB / 1.123 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006838/1.394, allocations: 0.5212 MB / 1.444 GB, free: 3.719 MB / 1.123 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00238/1.396, allocations: 1.663 MB / 1.446 GB, free: 1.977 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/1.396, allocations: 4.031 kB / 1.446 GB, free: 1.973 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005113/1.396, allocations: 111.8 kB / 1.446 GB, free: 1.863 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.283e-06/1.396, allocations: 4 kB / 1.446 GB, free: 1.859 MB / 1.123 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.4e-05/1.397, allocations: 19.98 kB / 1.446 GB, free: 1.84 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.152e-06/1.397, allocations: 4 kB / 1.446 GB, free: 1.836 MB / 1.123 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.721e-06/1.397, allocations: 5.422 kB / 1.446 GB, free: 1.832 MB / 1.123 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001265/1.398, allocations: 1.011 MB / 1.447 GB, free: 0.7812 MB / 1.123 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003406/1.398, allocations: 235.9 kB / 1.447 GB, free: 0.5312 MB / 1.123 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.932e-05/1.398, allocations: 11.94 kB / 1.447 GB, free: 0.5195 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004302/1.399, allocations: 26.42 kB / 1.447 GB, free: 0.4961 MB / 1.123 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.112e-05/1.399, allocations: 27.97 kB / 1.447 GB, free: 480 kB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.555e-05/1.399, allocations: 23.98 kB / 1.447 GB, free: 456 kB / 1.123 GB Notification: Performance of sorting global known variables: time 0.0005817/1.399, allocations: 0.5108 MB / 1.448 GB, free: 15.93 MB / 1.139 GB Notification: Performance of sort global known variables: time 1.2e-07/1.399, allocations: 0 / 1.448 GB, free: 15.93 MB / 1.139 GB Notification: Performance of remove unused functions: time 0.0008513/1.4, allocations: 291.3 kB / 1.448 GB, free: 15.65 MB / 1.139 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.0005076/1.401, allocations: 217.4 kB / 1.448 GB, free: 15.45 MB / 1.139 GB Notification: Performance of simCode: created initialization part: time 0.000894/1.402, allocations: 0.6194 MB / 1.449 GB, free: 14.83 MB / 1.139 GB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/1.402, allocations: 7.938 kB / 1.449 GB, free: 14.82 MB / 1.139 GB Notification: Performance of simCode: created simulation system equations: time 0.000351/1.402, allocations: 280.6 kB / 1.449 GB, free: 14.55 MB / 1.139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001872/1.404, allocations: 427.6 kB / 1.449 GB, free: 14.14 MB / 1.139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002782/1.407, allocations: 1.923 MB / 1.451 GB, free: 12.16 MB / 1.139 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007309/1.407, allocations: 1.126 MB / 1.452 GB, free: 11.01 MB / 1.139 GB Notification: Performance of simCode: alias equations: time 0.000798/1.408, allocations: 267.1 kB / 1.453 GB, free: 10.75 MB / 1.139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001967/1.408, allocations: 75.42 kB / 1.453 GB, free: 10.68 MB / 1.139 GB Notification: Performance of SimCode: time 2.113e-05/1.408, allocations: 0 / 1.453 GB, free: 10.68 MB / 1.139 GB Notification: Performance of Templates: time 0.02854/1.437, allocations: 15.8 MB / 1.468 GB, free: 11.1 MB / 1.154 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