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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008457/0.0008457, allocations: 80.44 kB / 19.17 MB, free: 0.7344 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008534/0.0008534, allocations: 165.9 kB / 22.45 MB, free: 2.098 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8348/0.8348, allocations: 177.1 MB / 202.8 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.699/1.699, allocations: 389 MB / 0.633 GB, free: 12.68 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sensors_Examples_TraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sensors_Examples_TraceSubstances",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.182e-06/1.182e-06, allocations: 0 / 0.9997 GB, free: 13.47 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.105e-05/1.223e-05, allocations: 2.281 kB / 0.9997 GB, free: 13.46 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.5831/0.5831, allocations: 172.5 MB / 1.168 GB, free: 7.109 MB / 1.026 GB Notification: Performance of NFInst.instExpressions: time 0.01517/0.5982, allocations: 13.09 MB / 1.181 GB, free: 14.33 MB / 1.042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001649/0.5999, allocations: 51.44 kB / 1.181 GB, free: 14.3 MB / 1.042 GB Notification: Performance of NFTyping.typeComponents: time 0.001563/0.6015, allocations: 0.4932 MB / 1.181 GB, free: 14.01 MB / 1.042 GB Notification: Performance of NFTyping.typeBindings: time 0.004917/0.6064, allocations: 1.98 MB / 1.183 GB, free: 12.95 MB / 1.042 GB Notification: Performance of NFTyping.typeClassSections: time 0.002296/0.6087, allocations: 0.9368 MB / 1.184 GB, free: 12.46 MB / 1.042 GB Notification: Performance of NFFlatten.flatten: time 0.003149/0.6118, allocations: 2.6 MB / 1.187 GB, free: 11.25 MB / 1.042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001158/0.613, allocations: 0.7646 MB / 1.188 GB, free: 10.88 MB / 1.042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004167/0.6171, allocations: 2.175 MB / 1.19 GB, free: 9.945 MB / 1.042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001553/0.6187, allocations: 0.8763 MB / 1.191 GB, free: 9.66 MB / 1.042 GB Notification: Performance of NFPackage.collectConstants: time 0.0002509/0.619, allocations: 106.2 kB / 1.191 GB, free: 9.66 MB / 1.042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001762/0.6207, allocations: 0.9319 MB / 1.192 GB, free: 9.336 MB / 1.042 GB Notification: Performance of NFScalarize.scalarize: time 0.0004547/0.6212, allocations: 0.5332 MB / 1.192 GB, free: 9.102 MB / 1.042 GB Notification: Performance of NFVerifyModel.verify: time 0.0005868/0.6218, allocations: 469.4 kB / 1.193 GB, free: 8.91 MB / 1.042 GB Notification: Performance of NFConvertDAE.convert: time 0.002203/0.624, allocations: 1.94 MB / 1.194 GB, free: 8.234 MB / 1.042 GB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.624, allocations: 0 / 1.194 GB, free: 8.234 MB / 1.042 GB Notification: Performance of FrontEnd: time 1.473e-06/0.624, allocations: 0 / 1.194 GB, free: 8.234 MB / 1.042 GB Notification: Performance of Transformations before backend: time 3.134e-05/0.624, allocations: 1.125 kB / 1.194 GB, free: 8.234 MB / 1.042 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.001969/0.626, allocations: 1.396 MB / 1.196 GB, free: 7.32 MB / 1.042 GB Notification: Performance of prepare preOptimizeDAE: time 4.345e-05/0.626, allocations: 9.5 kB / 1.196 GB, free: 7.32 MB / 1.042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000139/0.6261, allocations: 153.3 kB / 1.196 GB, free: 7.219 MB / 1.042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008329/0.627, allocations: 258.5 kB / 1.196 GB, free: 7.137 MB / 1.042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009886/0.628, allocations: 0.7234 MB / 1.197 GB, free: 6.711 MB / 1.042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.785e-05/0.628, allocations: 72.88 kB / 1.197 GB, free: 6.676 MB / 1.042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001158/0.6281, allocations: 91 kB / 1.197 GB, free: 6.648 MB / 1.042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001315/0.6294, allocations: 1.293 MB / 1.198 GB, free: 5.934 MB / 1.042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.03e-05/0.6295, allocations: 6.125 kB / 1.198 GB, free: 5.93 MB / 1.042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.666e-05/0.6295, allocations: 42.11 kB / 1.198 GB, free: 5.898 MB / 1.042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.88e-05/0.6296, allocations: 33 kB / 1.198 GB, free: 5.895 MB / 1.042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00104/0.6306, allocations: 0.9039 MB / 1.199 GB, free: 5.59 MB / 1.042 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.003546/0.6341, allocations: 4.129 MB / 1.203 GB, free: 2.555 MB / 1.042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000628/0.6348, allocations: 0.5114 MB / 1.204 GB, free: 2.289 MB / 1.042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002952/0.6351, allocations: 299.6 kB / 1.204 GB, free: 2.141 MB / 1.042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002553/0.6353, allocations: 83.91 kB / 1.204 GB, free: 2.109 MB / 1.042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.405e-05/0.6354, allocations: 38.66 kB / 1.204 GB, free: 2.066 MB / 1.042 GB Notification: Performance of pre-optimization done (n=49): time 1.914e-06/0.6354, allocations: 0 / 1.204 GB, free: 2.066 MB / 1.042 GB Notification: Performance of matching and sorting (n=49): time 0.0009881/0.6363, allocations: 0.8079 MB / 1.205 GB, free: 1.664 MB / 1.042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.709e-05/0.6364, allocations: 57.41 kB / 1.205 GB, free: 1.602 MB / 1.042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000716/0.6371, allocations: 0.7639 MB / 1.206 GB, free: 1.168 MB / 1.042 GB Notification: Performance of collectPreVariables (initialization): time 4.058e-05/0.6371, allocations: 37.92 kB / 1.206 GB, free: 1.129 MB / 1.042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002887/0.6374, allocations: 0.511 MB / 1.206 GB, free: 0.6719 MB / 1.042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001265/0.6375, allocations: 181 kB / 1.207 GB, free: 0.5156 MB / 1.042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001573/0.6377, allocations: 149.7 kB / 1.207 GB, free: 436 kB / 1.042 GB Notification: Performance of setup shared object (initialization): time 9.55e-05/0.6378, allocations: 334.1 kB / 1.207 GB, free: 104 kB / 1.042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002439/0.638, allocations: 251.3 kB / 1.207 GB, free: 15.97 MB / 1.057 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004793/0.6385, allocations: 0.8299 MB / 1.208 GB, free: 15.12 MB / 1.057 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006576/0.6392, allocations: 0.8045 MB / 1.209 GB, free: 14.51 MB / 1.057 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/0.6392, allocations: 2.562 kB / 1.209 GB, free: 14.51 MB / 1.057 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.0007718/0.64, allocations: 0.8464 MB / 1.21 GB, free: 14.07 MB / 1.057 GB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.64, allocations: 10.62 kB / 1.21 GB, free: 14.07 MB / 1.057 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.64, allocations: 6.625 kB / 1.21 GB, free: 14.07 MB / 1.057 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.805e-05/0.64, allocations: 14.16 kB / 1.21 GB, free: 14.07 MB / 1.057 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002839/0.6403, allocations: 158.2 kB / 1.21 GB, free: 14.04 MB / 1.057 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.261e-05/0.6403, allocations: 14.78 kB / 1.21 GB, free: 14.03 MB / 1.057 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003492/0.6406, allocations: 90.86 kB / 1.21 GB, free: 13.97 MB / 1.057 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.914e-05/0.6407, allocations: 39.42 kB / 1.21 GB, free: 13.96 MB / 1.057 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.0002633/0.6409, allocations: 327.4 kB / 1.21 GB, free: 13.72 MB / 1.057 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.682e-05/0.641, allocations: 88.59 kB / 1.21 GB, free: 13.68 MB / 1.057 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006073/0.6416, allocations: 0.6279 MB / 1.211 GB, free: 13.32 MB / 1.057 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.177e-06/0.6416, allocations: 4.5 kB / 1.211 GB, free: 13.32 MB / 1.057 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.6416, allocations: 0.75 kB / 1.211 GB, free: 13.32 MB / 1.057 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004424/0.6421, allocations: 0.5203 MB / 1.212 GB, free: 13.03 MB / 1.057 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001386/0.6435, allocations: 1.544 MB / 1.213 GB, free: 12.02 MB / 1.057 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.6435, allocations: 2.875 kB / 1.213 GB, free: 12.02 MB / 1.057 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002611/0.6437, allocations: 111.4 kB / 1.213 GB, free: 12 MB / 1.057 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.088e-06/0.6437, allocations: 10.12 kB / 1.213 GB, free: 12 MB / 1.057 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.424e-05/0.6438, allocations: 17.28 kB / 1.213 GB, free: 11.98 MB / 1.057 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.6438, allocations: 4.906 kB / 1.213 GB, free: 11.98 MB / 1.057 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.6438, allocations: 3.484 kB / 1.213 GB, free: 11.98 MB / 1.057 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008009/0.6446, allocations: 1.025 MB / 1.214 GB, free: 11.36 MB / 1.057 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001832/0.6448, allocations: 154 kB / 1.214 GB, free: 11.26 MB / 1.057 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.796e-05/0.6448, allocations: 16.94 kB / 1.214 GB, free: 11.25 MB / 1.057 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002106/0.645, allocations: 13.55 kB / 1.214 GB, free: 11.24 MB / 1.057 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.18e-05/0.6451, allocations: 37.25 kB / 1.214 GB, free: 11.21 MB / 1.057 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.035e-05/0.6451, allocations: 17.41 kB / 1.214 GB, free: 11.21 MB / 1.057 GB Notification: Performance of sorting global known variables: time 0.0003726/0.6455, allocations: 0.5145 MB / 1.215 GB, free: 10.92 MB / 1.057 GB Notification: Performance of sort global known variables: time 1.8e-07/0.6455, allocations: 0 / 1.215 GB, free: 10.92 MB / 1.057 GB Notification: Performance of remove unused functions: time 0.0005051/0.646, allocations: 302.8 kB / 1.215 GB, free: 10.86 MB / 1.057 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.001223/0.6472, allocations: 1.66 MB / 1.217 GB, free: 9.664 MB / 1.057 GB Notification: Performance of simCode: created initialization part: time 0.0005742/0.6478, allocations: 0.5859 MB / 1.217 GB, free: 9.395 MB / 1.057 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.6478, allocations: 2.562 kB / 1.217 GB, free: 9.395 MB / 1.057 GB Notification: Performance of simCode: created simulation system equations: time 0.0002143/0.648, allocations: 258.7 kB / 1.218 GB, free: 9.277 MB / 1.057 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00101/0.649, allocations: 430.3 kB / 1.218 GB, free: 9.062 MB / 1.057 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005753/0.6547, allocations: 7.159 MB / 1.225 GB, free: 4.234 MB / 1.057 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003438/0.6551, allocations: 0.5238 MB / 1.226 GB, free: 3.68 MB / 1.057 GB Notification: Performance of simCode: alias equations: time 0.0004605/0.6555, allocations: 263.1 kB / 1.226 GB, free: 3.418 MB / 1.057 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000324/0.6559, allocations: 364.4 kB / 1.226 GB, free: 3.062 MB / 1.057 GB Notification: Performance of SimCode: time 5.21e-07/0.6559, allocations: 0 / 1.226 GB, free: 3.062 MB / 1.057 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0329/0.6888, allocations: 25.31 MB / 1.251 GB, free: 10.29 MB / 1.089 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.905/7.593, allocations: 8 kB / 1.251 GB, free: 10.28 MB / 1.089 GB " [Timeout remaining time 292] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Sensors_Examples_TraceSubstances_fmu --startTime=0 --stopTime=7200 --stepSize=2.88 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Sensors_Examples_TraceSubstances.fmu > Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1) [Timeout 840.0] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.492250910028815]