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.001388/0.001388, allocations: 110.4 kB / 18.94 MB, free: 2.949 MB / 14.72 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.001566/0.001566, allocations: 220.3 kB / 22.26 MB, free: 5.125 MB / 14.72 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 1.338/1.338, allocations: 230.6 MB / 256 MB, free: 7.961 MB / 206.1 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 3.012/3.012, allocations: 0.505 GB / 0.8101 GB, free: 21.99 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 13.0.0 (/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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001858/0.001858, allocations: 66.89 kB / 1.177 GB, free: 16.98 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3155/0.3173, allocations: 180.2 MB / 1.353 GB, free: 8.398 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.2236/0.5409, allocations: 199.2 MB / 1.547 GB, free: 468 kB / 1.232 GB Notification: Performance of NFInst.instExpressions: time 0.0184/0.5593, allocations: 14.51 MB / 1.562 GB, free: 1.914 MB / 1.248 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00123/0.5606, allocations: 51.56 kB / 1.562 GB, free: 1.863 MB / 1.248 GB Notification: Performance of NFTyping.typeComponents: time 0.001773/0.5623, allocations: 0.5163 MB / 1.562 GB, free: 1.344 MB / 1.248 GB Notification: Performance of NFTyping.typeBindings: time 0.005003/0.5673, allocations: 1.999 MB / 1.564 GB, free: 15.34 MB / 1.264 GB Notification: Performance of NFTyping.typeClassSections: time 0.002385/0.5697, allocations: 0.9037 MB / 1.565 GB, free: 14.44 MB / 1.264 GB Notification: Performance of NFFlatten.flatten: time 0.003324/0.573, allocations: 2.628 MB / 1.568 GB, free: 11.8 MB / 1.264 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001278/0.5743, allocations: 0.7991 MB / 1.568 GB, free: 10.98 MB / 1.264 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004415/0.5787, allocations: 1.905 MB / 1.57 GB, free: 9.086 MB / 1.264 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001727/0.5805, allocations: 0.9748 MB / 1.571 GB, free: 8.109 MB / 1.264 GB Notification: Performance of NFPackage.collectConstants: time 0.0002335/0.5807, allocations: 108 kB / 1.571 GB, free: 8.004 MB / 1.264 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002251/0.5829, allocations: 1.169 MB / 1.572 GB, free: 6.832 MB / 1.264 GB Notification: Performance of NFScalarize.scalarize: time 0.0006611/0.5836, allocations: 0.5103 MB / 1.573 GB, free: 6.32 MB / 1.264 GB Notification: Performance of NFVerifyModel.verify: time 0.0009329/0.5845, allocations: 0.63 MB / 1.573 GB, free: 5.688 MB / 1.264 GB Notification: Performance of NFConvertDAE.convert: time 0.002807/0.5873, allocations: 1.915 MB / 1.575 GB, free: 3.766 MB / 1.264 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.5874, allocations: 7.938 kB / 1.575 GB, free: 3.758 MB / 1.264 GB Notification: Performance of FrontEnd: time 1.072e-06/0.5874, allocations: 0 / 1.575 GB, free: 3.758 MB / 1.264 GB Notification: Performance of Transformations before backend: time 4.024e-05/0.5874, allocations: 0 / 1.575 GB, free: 3.758 MB / 1.264 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.002446/0.5898, allocations: 1.403 MB / 1.577 GB, free: 2.32 MB / 1.264 GB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.5899, allocations: 16.03 kB / 1.577 GB, free: 2.305 MB / 1.264 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001854/0.5901, allocations: 143.6 kB / 1.577 GB, free: 2.156 MB / 1.264 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001274/0.5913, allocations: 263 kB / 1.577 GB, free: 1.898 MB / 1.264 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001449/0.5928, allocations: 0.737 MB / 1.578 GB, free: 1.133 MB / 1.264 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.589e-05/0.5928, allocations: 66 kB / 1.578 GB, free: 1.066 MB / 1.264 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001438/0.593, allocations: 96 kB / 1.578 GB, free: 0.9727 MB / 1.264 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001736/0.5947, allocations: 1.169 MB / 1.579 GB, free: 15.73 MB / 1.279 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.608e-05/0.5947, allocations: 4 kB / 1.579 GB, free: 15.73 MB / 1.279 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.057e-05/0.5948, allocations: 43.88 kB / 1.579 GB, free: 15.69 MB / 1.279 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.579e-05/0.5949, allocations: 34 kB / 1.579 GB, free: 15.65 MB / 1.279 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001456/0.5963, allocations: 0.8976 MB / 1.58 GB, free: 14.75 MB / 1.279 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.006226/0.6026, allocations: 5.767 MB / 1.586 GB, free: 8.512 MB / 1.279 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008503/0.6034, allocations: 0.5198 MB / 1.586 GB, free: 7.984 MB / 1.279 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004318/0.6038, allocations: 297.1 kB / 1.587 GB, free: 7.691 MB / 1.279 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000485/0.6043, allocations: 80.36 kB / 1.587 GB, free: 7.613 MB / 1.279 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.394e-05/0.6044, allocations: 43 kB / 1.587 GB, free: 7.562 MB / 1.279 GB Notification: Performance of pre-optimization done (n=49): time 2.014e-06/0.6044, allocations: 0 / 1.587 GB, free: 7.562 MB / 1.279 GB Notification: Performance of matching and sorting (n=49): time 0.001529/0.6059, allocations: 0.8031 MB / 1.587 GB, free: 6.75 MB / 1.279 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.468e-05/0.6059, allocations: 59.84 kB / 1.587 GB, free: 6.68 MB / 1.279 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009669/0.6069, allocations: 0.7471 MB / 1.588 GB, free: 5.926 MB / 1.279 GB Notification: Performance of collectPreVariables (initialization): time 5.99e-05/0.607, allocations: 33.7 kB / 1.588 GB, free: 5.887 MB / 1.279 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004042/0.6074, allocations: 0.5311 MB / 1.589 GB, free: 5.348 MB / 1.279 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001734/0.6075, allocations: 186.4 kB / 1.589 GB, free: 5.164 MB / 1.279 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001954/0.6077, allocations: 138.6 kB / 1.589 GB, free: 5.02 MB / 1.279 GB Notification: Performance of setup shared object (initialization): time 0.0001613/0.6079, allocations: 337.9 kB / 1.589 GB, free: 4.684 MB / 1.279 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003821/0.6083, allocations: 253.8 kB / 1.59 GB, free: 4.438 MB / 1.279 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006469/0.6089, allocations: 0.5585 MB / 1.59 GB, free: 3.746 MB / 1.279 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001034/0.61, allocations: 0.7995 MB / 1.591 GB, free: 2.836 MB / 1.279 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.94e-06/0.61, allocations: 0 / 1.591 GB, free: 2.836 MB / 1.279 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001286/0.6112, allocations: 0.8541 MB / 1.592 GB, free: 1.973 MB / 1.279 GB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.6113, allocations: 9 kB / 1.592 GB, free: 1.965 MB / 1.279 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.498e-05/0.6113, allocations: 8 kB / 1.592 GB, free: 1.957 MB / 1.279 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.339e-05/0.6113, allocations: 19.94 kB / 1.592 GB, free: 1.938 MB / 1.279 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005765/0.6119, allocations: 151.8 kB / 1.592 GB, free: 1.789 MB / 1.279 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.38e-05/0.6119, allocations: 15.98 kB / 1.592 GB, free: 1.773 MB / 1.279 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006559/0.6126, allocations: 91.33 kB / 1.592 GB, free: 1.684 MB / 1.279 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.98e-05/0.6126, allocations: 35.94 kB / 1.592 GB, free: 1.648 MB / 1.279 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.0004385/0.6131, allocations: 337.4 kB / 1.592 GB, free: 1.309 MB / 1.279 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001413/0.6132, allocations: 87.44 kB / 1.593 GB, free: 1.223 MB / 1.279 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009784/0.6142, allocations: 0.6218 MB / 1.593 GB, free: 0.5977 MB / 1.279 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.174e-06/0.6142, allocations: 8 kB / 1.593 GB, free: 0.5898 MB / 1.279 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.6142, allocations: 48 / 1.593 GB, free: 0.5898 MB / 1.279 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007198/0.6149, allocations: 0.5249 MB / 1.594 GB, free: 52 kB / 1.279 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002517/0.6174, allocations: 1.639 MB / 1.595 GB, free: 14.34 MB / 1.295 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.6174, allocations: 0 / 1.595 GB, free: 14.34 MB / 1.295 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005104/0.6179, allocations: 107.9 kB / 1.595 GB, free: 14.23 MB / 1.295 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.164e-06/0.6179, allocations: 4 kB / 1.595 GB, free: 14.23 MB / 1.295 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.599e-05/0.618, allocations: 11.98 kB / 1.595 GB, free: 14.22 MB / 1.295 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.837e-06/0.618, allocations: 8.156 kB / 1.595 GB, free: 14.21 MB / 1.295 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.618, allocations: 8 kB / 1.595 GB, free: 14.2 MB / 1.295 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001464/0.6195, allocations: 1.031 MB / 1.596 GB, free: 13.14 MB / 1.295 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003885/0.6198, allocations: 143.4 kB / 1.597 GB, free: 13 MB / 1.295 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001232/0.62, allocations: 23.98 kB / 1.597 GB, free: 12.97 MB / 1.295 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004359/0.6204, allocations: 12 kB / 1.597 GB, free: 12.96 MB / 1.295 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.696e-05/0.6205, allocations: 39.88 kB / 1.597 GB, free: 12.92 MB / 1.295 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.944e-05/0.6205, allocations: 19.98 kB / 1.597 GB, free: 12.9 MB / 1.295 GB Notification: Performance of sorting global known variables: time 0.000703/0.6212, allocations: 0.5146 MB / 1.597 GB, free: 12.39 MB / 1.295 GB Notification: Performance of sort global known variables: time 9.1e-08/0.6212, allocations: 0 / 1.597 GB, free: 12.39 MB / 1.295 GB Notification: Performance of remove unused functions: time 0.0009462/0.6222, allocations: 303.4 kB / 1.597 GB, free: 12.09 MB / 1.295 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.002214/0.6244, allocations: 1.655 MB / 1.599 GB, free: 10.4 MB / 1.295 GB Notification: Performance of simCode: created initialization part: time 0.001057/0.6254, allocations: 0.5923 MB / 1.6 GB, free: 9.805 MB / 1.295 GB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.6254, allocations: 0 / 1.6 GB, free: 9.805 MB / 1.295 GB Notification: Performance of simCode: created simulation system equations: time 0.0003836/0.6258, allocations: 255.7 kB / 1.6 GB, free: 9.555 MB / 1.295 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001828/0.6277, allocations: 441 kB / 1.6 GB, free: 9.129 MB / 1.295 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009507/0.6372, allocations: 7.252 MB / 1.607 GB, free: 1.484 MB / 1.295 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007718/0.6379, allocations: 1.122 MB / 1.608 GB, free: 344 kB / 1.295 GB Notification: Performance of simCode: alias equations: time 0.000698/0.6386, allocations: 263.1 kB / 1.609 GB, free: 76 kB / 1.295 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.574/1.213, allocations: 363.6 kB / 1.609 GB, free: 257 MB / 1.295 GB Notification: Performance of SimCode: time 8.92e-07/1.213, allocations: 0 / 1.609 GB, free: 257 MB / 1.295 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06131/1.274, allocations: 23.85 MB / 1.632 GB, free: 252 MB / 1.295 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.55/12.82, allocations: 3.156 kB / 1.632 GB, free: 252 MB / 1.295 GB " [Timeout remaining time 287] (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/jenkins1/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: 18.988943367032334]