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.001708/0.001708, allocations: 97.92 kB / 19.73 MB, free: 2.133 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.002147/0.002147, allocations: 218.2 kB / 23.03 MB, free: 4.949 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.434/1.434, allocations: 230.6 MB / 256.8 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] 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.106/3.106, allocations: 0.5003 GB / 0.8062 GB, free: 28.28 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sensors_Examples_TraceSubstances",fmuType="cs",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.001918/0.001918, allocations: 66.08 kB / 1.171 GB, free: 19.59 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.343/0.3449, allocations: 179 MB / 1.345 GB, free: 15.95 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.2081/0.553, allocations: 172.6 MB / 1.514 GB, free: 2.711 MB / 1.201 GB Notification: Performance of NFInst.instExpressions: time 0.01827/0.5713, allocations: 13.13 MB / 1.527 GB, free: 5.543 MB / 1.217 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001655/0.5729, allocations: 51.56 kB / 1.527 GB, free: 5.492 MB / 1.217 GB Notification: Performance of NFTyping.typeComponents: time 0.002003/0.5749, allocations: 0.493 MB / 1.527 GB, free: 4.996 MB / 1.217 GB Notification: Performance of NFTyping.typeBindings: time 0.005894/0.5808, allocations: 1.945 MB / 1.529 GB, free: 3.043 MB / 1.217 GB Notification: Performance of NFTyping.typeClassSections: time 0.002669/0.5835, allocations: 0.8937 MB / 1.53 GB, free: 2.152 MB / 1.217 GB Notification: Performance of NFFlatten.flatten: time 0.003891/0.5874, allocations: 2.628 MB / 1.533 GB, free: 15.52 MB / 1.232 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001413/0.5888, allocations: 0.8029 MB / 1.533 GB, free: 14.69 MB / 1.232 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004998/0.5938, allocations: 1.888 MB / 1.535 GB, free: 12.82 MB / 1.232 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001737/0.5955, allocations: 0.9715 MB / 1.536 GB, free: 11.84 MB / 1.232 GB Notification: Performance of NFPackage.collectConstants: time 0.0001783/0.5957, allocations: 108 kB / 1.536 GB, free: 11.74 MB / 1.232 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001991/0.5977, allocations: 0.9274 MB / 1.537 GB, free: 10.81 MB / 1.232 GB Notification: Performance of NFScalarize.scalarize: time 0.0006941/0.5984, allocations: 0.5025 MB / 1.538 GB, free: 10.3 MB / 1.232 GB Notification: Performance of NFVerifyModel.verify: time 0.0006832/0.5991, allocations: 0.5329 MB / 1.538 GB, free: 9.77 MB / 1.232 GB Notification: Performance of NFConvertDAE.convert: time 0.002739/0.6018, allocations: 1.904 MB / 1.54 GB, free: 7.859 MB / 1.232 GB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.6018, allocations: 0 / 1.54 GB, free: 7.859 MB / 1.232 GB Notification: Performance of FrontEnd: time 1.703e-06/0.6018, allocations: 4 kB / 1.54 GB, free: 7.855 MB / 1.232 GB Notification: Performance of Transformations before backend: time 2.078e-05/0.6018, allocations: 0 / 1.54 GB, free: 7.855 MB / 1.232 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.002294/0.6041, allocations: 1.403 MB / 1.541 GB, free: 6.414 MB / 1.232 GB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/0.6042, allocations: 12.03 kB / 1.541 GB, free: 6.402 MB / 1.232 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.709e-05/0.6042, allocations: 25.98 kB / 1.541 GB, free: 6.379 MB / 1.232 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001723/0.6044, allocations: 151.6 kB / 1.542 GB, free: 6.223 MB / 1.232 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001369/0.6058, allocations: 259 kB / 1.542 GB, free: 5.969 MB / 1.232 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001349/0.6071, allocations: 0.7331 MB / 1.543 GB, free: 5.207 MB / 1.232 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.458e-05/0.6072, allocations: 74 kB / 1.543 GB, free: 5.133 MB / 1.232 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001499/0.6073, allocations: 92 kB / 1.543 GB, free: 5.043 MB / 1.232 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001935/0.6093, allocations: 1.29 MB / 1.544 GB, free: 3.652 MB / 1.232 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.035e-05/0.6093, allocations: 15.83 kB / 1.544 GB, free: 3.637 MB / 1.232 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.817e-05/0.6094, allocations: 36 kB / 1.544 GB, free: 3.602 MB / 1.232 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.934e-05/0.6094, allocations: 37.98 kB / 1.544 GB, free: 3.562 MB / 1.232 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001483/0.6109, allocations: 0.9055 MB / 1.545 GB, free: 2.66 MB / 1.232 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.00523/0.6161, allocations: 4.126 MB / 1.549 GB, free: 14.4 MB / 1.248 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009122/0.617, allocations: 0.5164 MB / 1.549 GB, free: 13.88 MB / 1.248 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004447/0.6175, allocations: 294.6 kB / 1.55 GB, free: 13.58 MB / 1.248 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004786/0.618, allocations: 80.34 kB / 1.55 GB, free: 13.5 MB / 1.248 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.964e-05/0.618, allocations: 39 kB / 1.55 GB, free: 13.46 MB / 1.248 GB Notification: Performance of pre-optimization done (n=49): time 2.535e-06/0.618, allocations: 0 / 1.55 GB, free: 13.46 MB / 1.248 GB Notification: Performance of matching and sorting (n=49): time 0.001619/0.6196, allocations: 0.803 MB / 1.551 GB, free: 12.64 MB / 1.248 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.247e-05/0.6197, allocations: 59.84 kB / 1.551 GB, free: 12.57 MB / 1.248 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001026/0.6207, allocations: 0.7549 MB / 1.551 GB, free: 11.81 MB / 1.248 GB Notification: Performance of collectPreVariables (initialization): time 5.576e-05/0.6208, allocations: 41.64 kB / 1.551 GB, free: 11.76 MB / 1.248 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004565/0.6212, allocations: 0.5155 MB / 1.552 GB, free: 11.24 MB / 1.248 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001902/0.6214, allocations: 190.4 kB / 1.552 GB, free: 11.05 MB / 1.248 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002305/0.6217, allocations: 142.6 kB / 1.552 GB, free: 10.91 MB / 1.248 GB Notification: Performance of setup shared object (initialization): time 0.0002139/0.6219, allocations: 334 kB / 1.553 GB, free: 10.57 MB / 1.248 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003865/0.6223, allocations: 249.8 kB / 1.553 GB, free: 10.33 MB / 1.248 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008862/0.6231, allocations: 0.8307 MB / 1.554 GB, free: 9.297 MB / 1.248 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001057/0.6242, allocations: 0.7995 MB / 1.554 GB, free: 8.387 MB / 1.248 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.772e-06/0.6242, allocations: 7.938 kB / 1.554 GB, free: 8.379 MB / 1.248 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001421/0.6256, allocations: 0.855 MB / 1.555 GB, free: 7.516 MB / 1.248 GB Notification: Performance of prepare postOptimizeDAE: time 2.311e-05/0.6256, allocations: 13.56 kB / 1.555 GB, free: 7.504 MB / 1.248 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.503e-05/0.6257, allocations: 12 kB / 1.555 GB, free: 7.492 MB / 1.248 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.087e-05/0.6257, allocations: 12 kB / 1.555 GB, free: 7.48 MB / 1.248 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005617/0.6263, allocations: 151.8 kB / 1.555 GB, free: 7.332 MB / 1.248 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.437e-05/0.6263, allocations: 19.92 kB / 1.555 GB, free: 7.312 MB / 1.248 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006953/0.627, allocations: 91.33 kB / 1.556 GB, free: 7.223 MB / 1.248 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.455e-05/0.627, allocations: 32 kB / 1.556 GB, free: 7.191 MB / 1.248 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.0004814/0.6275, allocations: 337.5 kB / 1.556 GB, free: 6.852 MB / 1.248 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001414/0.6277, allocations: 91.44 kB / 1.556 GB, free: 6.762 MB / 1.248 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001069/0.6287, allocations: 0.6141 MB / 1.557 GB, free: 6.145 MB / 1.248 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-06/0.6287, allocations: 4 kB / 1.557 GB, free: 6.141 MB / 1.248 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.6287, allocations: 0 / 1.557 GB, free: 6.141 MB / 1.248 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000756/0.6295, allocations: 0.5211 MB / 1.557 GB, free: 5.605 MB / 1.248 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002516/0.632, allocations: 1.537 MB / 1.559 GB, free: 3.996 MB / 1.248 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.031e-06/0.632, allocations: 7.984 kB / 1.559 GB, free: 3.988 MB / 1.248 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005399/0.6326, allocations: 111.8 kB / 1.559 GB, free: 3.879 MB / 1.248 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.432e-06/0.6326, allocations: 0 / 1.559 GB, free: 3.879 MB / 1.248 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.041e-05/0.6326, allocations: 19.98 kB / 1.559 GB, free: 3.859 MB / 1.248 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.901e-06/0.6326, allocations: 4 kB / 1.559 GB, free: 3.855 MB / 1.248 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.6326, allocations: 4 kB / 1.559 GB, free: 3.852 MB / 1.248 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001378/0.634, allocations: 1.027 MB / 1.56 GB, free: 2.789 MB / 1.248 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003452/0.6343, allocations: 147.4 kB / 1.56 GB, free: 2.645 MB / 1.248 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001051/0.6344, allocations: 11.98 kB / 1.56 GB, free: 2.633 MB / 1.248 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004404/0.6349, allocations: 17.69 kB / 1.56 GB, free: 2.617 MB / 1.248 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.676e-05/0.635, allocations: 35.94 kB / 1.56 GB, free: 2.582 MB / 1.248 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.878e-05/0.635, allocations: 16 kB / 1.56 GB, free: 2.566 MB / 1.248 GB Notification: Performance of sorting global known variables: time 0.0007338/0.6357, allocations: 0.5223 MB / 1.56 GB, free: 2.047 MB / 1.248 GB Notification: Performance of sort global known variables: time 8e-08/0.6357, allocations: 0 / 1.56 GB, free: 2.047 MB / 1.248 GB Notification: Performance of remove unused functions: time 0.001053/0.6368, allocations: 299.4 kB / 1.561 GB, free: 1.754 MB / 1.248 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.002375/0.6392, allocations: 1.67 MB / 1.562 GB, free: 44 kB / 1.248 GB Notification: Performance of simCode: created initialization part: time 0.001144/0.6403, allocations: 0.5963 MB / 1.563 GB, free: 15.44 MB / 1.264 GB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.6403, allocations: 0 / 1.563 GB, free: 15.44 MB / 1.264 GB Notification: Performance of simCode: created simulation system equations: time 0.0003843/0.6407, allocations: 256.2 kB / 1.563 GB, free: 15.19 MB / 1.264 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001784/0.6425, allocations: 439.4 kB / 1.564 GB, free: 14.77 MB / 1.264 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01064/0.6531, allocations: 7.254 MB / 1.571 GB, free: 7.129 MB / 1.264 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000623/0.6537, allocations: 0.52 MB / 1.571 GB, free: 6.578 MB / 1.264 GB Notification: Performance of simCode: alias equations: time 0.0008678/0.6546, allocations: 267.1 kB / 1.571 GB, free: 6.312 MB / 1.264 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005261/0.6551, allocations: 363.3 kB / 1.572 GB, free: 5.961 MB / 1.264 GB Notification: Performance of SimCode: time 8.72e-07/0.6551, allocations: 0 / 1.572 GB, free: 5.961 MB / 1.264 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05819/0.7133, allocations: 25.23 MB / 1.596 GB, free: 13.3 MB / 1.295 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.52/13.23, allocations: 9.875 kB / 1.596 GB, free: 13.3 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: 20.51565674401354]