Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.0008527/0.0008527, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.0008288/0.0008288, allocations: 169.9 kB / 22.46 MB, free: 2.105 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.8677/0.8677, allocations: 177.1 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.69/1.69, allocations: 377.8 MB / 0.6221 GB, free: 8.676 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/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_12_Buildings_Fluid_Sensors_Examples_TraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="Buildings_12_Buildings_Fluid_Sensors_Examples_TraceSubstances",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.763e-06/1.763e-06, allocations: 0 / 0.981 GB, free: 1.414 MB / 0.8855 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.06e-05/3.236e-05, allocations: 2.281 kB / 0.981 GB, free: 1.41 MB / 0.8855 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.6127/0.6127, allocations: 172.5 MB / 1.149 GB, free: 12.85 MB / 0.9948 GB Notification: Performance of NFInst.instExpressions: time 0.01108/0.6238, allocations: 13.12 MB / 1.162 GB, free: 2.637 MB / 0.9948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001139/0.6249, allocations: 51.38 kB / 1.162 GB, free: 2.609 MB / 0.9948 GB Notification: Performance of NFTyping.typeComponents: time 0.00115/0.6261, allocations: 0.4931 MB / 1.163 GB, free: 2.199 MB / 0.9948 GB Notification: Performance of NFTyping.typeBindings: time 0.003185/0.6292, allocations: 1.987 MB / 1.165 GB, free: 0.6836 MB / 0.9948 GB Notification: Performance of NFTyping.typeClassSections: time 0.001552/0.6308, allocations: 0.9495 MB / 1.166 GB, free: 15.95 MB / 1.01 GB Notification: Performance of NFFlatten.flatten: time 0.001983/0.6328, allocations: 2.619 MB / 1.168 GB, free: 14.42 MB / 1.01 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007498/0.6335, allocations: 0.7917 MB / 1.169 GB, free: 13.86 MB / 1.01 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003052/0.6366, allocations: 2.203 MB / 1.171 GB, free: 12.48 MB / 1.01 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009384/0.6375, allocations: 0.868 MB / 1.172 GB, free: 12.02 MB / 1.01 GB Notification: Performance of NFPackage.collectConstants: time 9.647e-05/0.6376, allocations: 106.5 kB / 1.172 GB, free: 12.02 MB / 1.01 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001239/0.6389, allocations: 0.925 MB / 1.173 GB, free: 11.54 MB / 1.01 GB Notification: Performance of NFScalarize.scalarize: time 0.000318/0.6392, allocations: 0.5328 MB / 1.174 GB, free: 11.18 MB / 1.01 GB Notification: Performance of NFVerifyModel.verify: time 0.0003406/0.6395, allocations: 468.1 kB / 1.174 GB, free: 10.82 MB / 1.01 GB Notification: Performance of NFConvertDAE.convert: time 0.001825/0.6413, allocations: 1.948 MB / 1.176 GB, free: 8.863 MB / 1.01 GB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.6413, allocations: 5.781 kB / 1.176 GB, free: 8.859 MB / 1.01 GB Notification: Performance of FrontEnd: time 1.423e-06/0.6413, allocations: 0 / 1.176 GB, free: 8.859 MB / 1.01 GB Notification: Performance of Transformations before backend: time 1.202e-05/0.6414, allocations: 0 / 1.176 GB, free: 8.859 MB / 1.01 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.001389/0.6427, allocations: 1.399 MB / 1.177 GB, free: 7.422 MB / 1.01 GB Notification: Performance of prepare preOptimizeDAE: time 4.466e-05/0.6428, allocations: 8.031 kB / 1.177 GB, free: 7.414 MB / 1.01 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001163/0.6429, allocations: 147.6 kB / 1.177 GB, free: 7.262 MB / 1.01 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007192/0.6436, allocations: 259 kB / 1.178 GB, free: 7.008 MB / 1.01 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008339/0.6445, allocations: 0.7409 MB / 1.178 GB, free: 6.238 MB / 1.01 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.648e-05/0.6445, allocations: 66 kB / 1.178 GB, free: 6.176 MB / 1.01 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.79e-05/0.6446, allocations: 95.95 kB / 1.179 GB, free: 6.082 MB / 1.01 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001086/0.6457, allocations: 1.294 MB / 1.18 GB, free: 4.684 MB / 1.01 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.039e-05/0.6457, allocations: 4.812 kB / 1.18 GB, free: 4.68 MB / 1.01 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.089e-05/0.6457, allocations: 44 kB / 1.18 GB, free: 4.637 MB / 1.01 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.031e-05/0.6458, allocations: 33.98 kB / 1.18 GB, free: 4.605 MB / 1.01 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008623/0.6466, allocations: 0.8976 MB / 1.181 GB, free: 3.707 MB / 1.01 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.003047/0.6497, allocations: 4.13 MB / 1.185 GB, free: 15.45 MB / 1.026 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005598/0.6503, allocations: 0.5191 MB / 1.185 GB, free: 14.92 MB / 1.026 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002575/0.6505, allocations: 299.5 kB / 1.186 GB, free: 14.63 MB / 1.026 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002586/0.6508, allocations: 80.42 kB / 1.186 GB, free: 14.55 MB / 1.026 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.572e-05/0.6508, allocations: 46.98 kB / 1.186 GB, free: 14.49 MB / 1.026 GB Notification: Performance of pre-optimization done (n=49): time 2.625e-06/0.6508, allocations: 0 / 1.186 GB, free: 14.49 MB / 1.026 GB Notification: Performance of matching and sorting (n=49): time 0.0009109/0.6517, allocations: 0.8049 MB / 1.186 GB, free: 13.69 MB / 1.026 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.461e-05/0.6517, allocations: 55.91 kB / 1.187 GB, free: 13.62 MB / 1.026 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005757/0.6523, allocations: 0.7704 MB / 1.187 GB, free: 12.84 MB / 1.026 GB Notification: Performance of collectPreVariables (initialization): time 3.321e-05/0.6524, allocations: 37.7 kB / 1.187 GB, free: 12.8 MB / 1.026 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002532/0.6526, allocations: 0.5233 MB / 1.188 GB, free: 12.27 MB / 1.026 GB Notification: Performance of collectInitialBindings (initialization): time 0.000196/0.6528, allocations: 182.5 kB / 1.188 GB, free: 12.09 MB / 1.026 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001311/0.6529, allocations: 142.6 kB / 1.188 GB, free: 11.94 MB / 1.026 GB Notification: Performance of setup shared object (initialization): time 8.479e-05/0.653, allocations: 337.9 kB / 1.188 GB, free: 11.61 MB / 1.026 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002405/0.6533, allocations: 245.9 kB / 1.189 GB, free: 11.36 MB / 1.026 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004636/0.6537, allocations: 0.8308 MB / 1.19 GB, free: 10.33 MB / 1.026 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000612/0.6543, allocations: 0.8044 MB / 1.19 GB, free: 9.422 MB / 1.026 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.6543, allocations: 0 / 1.19 GB, free: 9.422 MB / 1.026 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.0007646/0.6551, allocations: 0.8487 MB / 1.191 GB, free: 8.562 MB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 2.043e-05/0.6551, allocations: 8 kB / 1.191 GB, free: 8.555 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/0.6551, allocations: 8 kB / 1.191 GB, free: 8.547 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.009e-05/0.6552, allocations: 16.03 kB / 1.191 GB, free: 8.531 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000298/0.6554, allocations: 155.7 kB / 1.191 GB, free: 8.379 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.153e-05/0.6555, allocations: 15.94 kB / 1.191 GB, free: 8.363 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003606/0.6558, allocations: 91.33 kB / 1.191 GB, free: 8.273 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.139e-05/0.6559, allocations: 43.92 kB / 1.191 GB, free: 8.23 MB / 1.026 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.0002814/0.6561, allocations: 329.4 kB / 1.192 GB, free: 7.898 MB / 1.026 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.098e-05/0.6562, allocations: 87.44 kB / 1.192 GB, free: 7.812 MB / 1.026 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006198/0.6568, allocations: 0.6273 MB / 1.192 GB, free: 7.176 MB / 1.026 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.6568, allocations: 4 kB / 1.192 GB, free: 7.172 MB / 1.026 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.69e-06/0.6568, allocations: 0 / 1.192 GB, free: 7.172 MB / 1.026 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004357/0.6573, allocations: 0.5187 MB / 1.193 GB, free: 6.645 MB / 1.026 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001411/0.6587, allocations: 1.541 MB / 1.194 GB, free: 5.031 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.6587, allocations: 8.219 kB / 1.194 GB, free: 5.023 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000267/0.659, allocations: 111.8 kB / 1.195 GB, free: 4.914 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.156e-05/0.659, allocations: 4.047 kB / 1.195 GB, free: 4.91 MB / 1.026 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.611e-05/0.6591, allocations: 19.92 kB / 1.195 GB, free: 4.891 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.17e-06/0.6591, allocations: 8.891 kB / 1.195 GB, free: 4.887 MB / 1.026 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.6591, allocations: 0 / 1.195 GB, free: 4.887 MB / 1.026 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000834/0.6599, allocations: 1.021 MB / 1.196 GB, free: 3.828 MB / 1.026 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001875/0.6601, allocations: 155.3 kB / 1.196 GB, free: 3.676 MB / 1.026 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.684e-05/0.6602, allocations: 15.94 kB / 1.196 GB, free: 3.66 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002153/0.6604, allocations: 27.92 kB / 1.196 GB, free: 3.633 MB / 1.026 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.143e-05/0.6604, allocations: 31.94 kB / 1.196 GB, free: 3.602 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.073e-05/0.6604, allocations: 16 kB / 1.196 GB, free: 3.586 MB / 1.026 GB Notification: Performance of sorting global known variables: time 0.0003973/0.6608, allocations: 0.5146 MB / 1.196 GB, free: 3.078 MB / 1.026 GB Notification: Performance of sort global known variables: time 6e-08/0.6608, allocations: 3.938 kB / 1.196 GB, free: 3.074 MB / 1.026 GB Notification: Performance of remove unused functions: time 0.000557/0.6614, allocations: 307.4 kB / 1.197 GB, free: 2.773 MB / 1.026 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.001297/0.6627, allocations: 1.653 MB / 1.198 GB, free: 1.074 MB / 1.026 GB Notification: Performance of simCode: created initialization part: time 0.0006061/0.6633, allocations: 0.5922 MB / 1.199 GB, free: 492 kB / 1.026 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.6633, allocations: 0 / 1.199 GB, free: 492 kB / 1.026 GB Notification: Performance of simCode: created simulation system equations: time 0.0002174/0.6635, allocations: 257.4 kB / 1.199 GB, free: 236 kB / 1.026 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001068/0.6646, allocations: 455 kB / 1.2 GB, free: 15.8 MB / 1.042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006051/0.6706, allocations: 7.167 MB / 1.207 GB, free: 8.246 MB / 1.042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000345/0.671, allocations: 0.5317 MB / 1.207 GB, free: 7.68 MB / 1.042 GB Notification: Performance of simCode: alias equations: time 0.0005522/0.6715, allocations: 263.1 kB / 1.207 GB, free: 7.418 MB / 1.042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003183/0.6718, allocations: 360.4 kB / 1.208 GB, free: 7.066 MB / 1.042 GB Notification: Performance of SimCode: time 1.162e-06/0.6718, allocations: 8 kB / 1.208 GB, free: 7.059 MB / 1.042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0367/0.7085, allocations: 25.53 MB / 1.233 GB, free: 14.12 MB / 1.073 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.076/7.784, allocations: 8.062 kB / 1.233 GB, free: 14.11 MB / 1.073 GB " [Timeout remaining time 292] (rm -f Buildings_12_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; mkfifo Buildings_12_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe >> ../files/Buildings_12_Buildings.Fluid.Sensors.Examples.TraceSubstances.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.mat --tempDir=temp_Buildings_12_Buildings_Fluid_Sensors_Examples_TraceSubstances_fmu --startTime=0 --stopTime=7200 --stepSize=2.88 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Fluid_Sensors_Examples_TraceSubstances.fmu > Buildings_12_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Sensors_Examples_TraceSubstances.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.699202180840075]