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.001531/0.001531, allocations: 110.3 kB / 18.94 MB, free: 2.789 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.001737/0.001737, allocations: 218.1 kB / 22.26 MB, free: 5.215 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.379/1.379, allocations: 230.6 MB / 256 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.932/2.932, allocations: 0.49 GB / 0.7951 GB, free: 33.38 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: 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.001866/0.001866, allocations: 74.92 kB / 1.154 GB, free: 25.7 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2987/0.3006, allocations: 176.1 MB / 1.326 GB, free: 1.934 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.2127/0.5133, allocations: 199.2 MB / 1.52 GB, free: 10 MB / 1.217 GB Notification: Performance of NFInst.instExpressions: time 0.01788/0.5311, allocations: 14.52 MB / 1.535 GB, free: 11.44 MB / 1.232 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001503/0.5326, allocations: 51.56 kB / 1.535 GB, free: 11.39 MB / 1.232 GB Notification: Performance of NFTyping.typeComponents: time 0.001841/0.5345, allocations: 0.5163 MB / 1.535 GB, free: 10.87 MB / 1.232 GB Notification: Performance of NFTyping.typeBindings: time 0.005249/0.5397, allocations: 1.999 MB / 1.537 GB, free: 8.863 MB / 1.232 GB Notification: Performance of NFTyping.typeClassSections: time 0.002604/0.5423, allocations: 0.9001 MB / 1.538 GB, free: 7.965 MB / 1.232 GB Notification: Performance of NFFlatten.flatten: time 0.003455/0.5458, allocations: 2.624 MB / 1.541 GB, free: 5.328 MB / 1.232 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00138/0.5472, allocations: 0.803 MB / 1.541 GB, free: 4.5 MB / 1.232 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004452/0.5516, allocations: 1.904 MB / 1.543 GB, free: 2.613 MB / 1.232 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00168/0.5533, allocations: 0.977 MB / 1.544 GB, free: 1.633 MB / 1.232 GB Notification: Performance of NFPackage.collectConstants: time 0.0002242/0.5535, allocations: 104 kB / 1.544 GB, free: 1.531 MB / 1.232 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002155/0.5557, allocations: 1.173 MB / 1.545 GB, free: 364 kB / 1.232 GB Notification: Performance of NFScalarize.scalarize: time 0.0005866/0.5563, allocations: 0.5064 MB / 1.546 GB, free: 15.84 MB / 1.248 GB Notification: Performance of NFVerifyModel.verify: time 0.0008613/0.5571, allocations: 0.6337 MB / 1.547 GB, free: 15.21 MB / 1.248 GB Notification: Performance of NFConvertDAE.convert: time 0.002616/0.5597, allocations: 1.915 MB / 1.548 GB, free: 13.29 MB / 1.248 GB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.5598, allocations: 4 kB / 1.548 GB, free: 13.29 MB / 1.248 GB Notification: Performance of FrontEnd: time 8.01e-07/0.5598, allocations: 0 / 1.548 GB, free: 13.29 MB / 1.248 GB Notification: Performance of Transformations before backend: time 4.134e-05/0.5598, allocations: 0 / 1.548 GB, free: 13.29 MB / 1.248 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.002454/0.5622, allocations: 1.415 MB / 1.55 GB, free: 11.84 MB / 1.248 GB Notification: Performance of prepare preOptimizeDAE: time 3.546e-05/0.5623, allocations: 8.031 kB / 1.55 GB, free: 11.83 MB / 1.248 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001851/0.5625, allocations: 151.5 kB / 1.55 GB, free: 11.67 MB / 1.248 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001319/0.5638, allocations: 255 kB / 1.55 GB, free: 11.42 MB / 1.248 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001362/0.5652, allocations: 0.7331 MB / 1.551 GB, free: 10.66 MB / 1.248 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.361e-05/0.5652, allocations: 74 kB / 1.551 GB, free: 10.59 MB / 1.248 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001335/0.5653, allocations: 88 kB / 1.551 GB, free: 10.5 MB / 1.248 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001631/0.567, allocations: 1.169 MB / 1.552 GB, free: 9.262 MB / 1.248 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.396e-05/0.567, allocations: 4 kB / 1.552 GB, free: 9.258 MB / 1.248 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.208e-05/0.5671, allocations: 51.84 kB / 1.552 GB, free: 9.207 MB / 1.248 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.066e-05/0.5671, allocations: 34 kB / 1.552 GB, free: 9.172 MB / 1.248 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001385/0.5685, allocations: 0.9054 MB / 1.553 GB, free: 8.266 MB / 1.248 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.005776/0.5743, allocations: 5.748 MB / 1.559 GB, free: 2.047 MB / 1.248 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008218/0.5751, allocations: 0.5159 MB / 1.559 GB, free: 1.523 MB / 1.248 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00042/0.5755, allocations: 298.6 kB / 1.56 GB, free: 1.227 MB / 1.248 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004724/0.576, allocations: 80.3 kB / 1.56 GB, free: 1.148 MB / 1.248 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.31e-05/0.576, allocations: 39 kB / 1.56 GB, free: 1.098 MB / 1.248 GB Notification: Performance of pre-optimization done (n=49): time 1.643e-06/0.576, allocations: 0 / 1.56 GB, free: 1.098 MB / 1.248 GB Notification: Performance of matching and sorting (n=49): time 0.001467/0.5775, allocations: 0.803 MB / 1.56 GB, free: 296 kB / 1.248 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.425e-05/0.5775, allocations: 59.83 kB / 1.561 GB, free: 224 kB / 1.248 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009081/0.5785, allocations: 0.7471 MB / 1.561 GB, free: 15.46 MB / 1.264 GB Notification: Performance of collectPreVariables (initialization): time 5.288e-05/0.5785, allocations: 41.7 kB / 1.561 GB, free: 15.42 MB / 1.264 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003895/0.5789, allocations: 0.5233 MB / 1.562 GB, free: 14.89 MB / 1.264 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001611/0.5791, allocations: 186.4 kB / 1.562 GB, free: 14.7 MB / 1.264 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001974/0.5793, allocations: 146.6 kB / 1.562 GB, free: 14.55 MB / 1.264 GB Notification: Performance of setup shared object (initialization): time 0.0001393/0.5794, allocations: 337.9 kB / 1.562 GB, free: 14.22 MB / 1.264 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000373/0.5798, allocations: 249.8 kB / 1.563 GB, free: 13.97 MB / 1.264 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006342/0.5804, allocations: 0.5546 MB / 1.563 GB, free: 13.29 MB / 1.264 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001035/0.5814, allocations: 0.7996 MB / 1.564 GB, free: 12.38 MB / 1.264 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.073e-06/0.5814, allocations: 4 kB / 1.564 GB, free: 12.37 MB / 1.264 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001245/0.5827, allocations: 0.8433 MB / 1.565 GB, free: 11.52 MB / 1.264 GB Notification: Performance of prepare postOptimizeDAE: time 1.941e-05/0.5827, allocations: 11.98 kB / 1.565 GB, free: 11.51 MB / 1.264 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.5827, allocations: 12.09 kB / 1.565 GB, free: 11.5 MB / 1.264 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.144e-05/0.5827, allocations: 15.94 kB / 1.565 GB, free: 11.48 MB / 1.264 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005104/0.5833, allocations: 151.8 kB / 1.565 GB, free: 11.34 MB / 1.264 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.908e-05/0.5833, allocations: 15.94 kB / 1.565 GB, free: 11.32 MB / 1.264 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000612/0.5839, allocations: 99.31 kB / 1.565 GB, free: 11.22 MB / 1.264 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.217e-05/0.5839, allocations: 36.05 kB / 1.565 GB, free: 11.19 MB / 1.264 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.0003931/0.5843, allocations: 335.2 kB / 1.565 GB, free: 10.85 MB / 1.264 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001408/0.5845, allocations: 95.42 kB / 1.566 GB, free: 10.76 MB / 1.264 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009562/0.5854, allocations: 0.6179 MB / 1.566 GB, free: 10.13 MB / 1.264 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.123e-06/0.5854, allocations: 4 kB / 1.566 GB, free: 10.13 MB / 1.264 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.5854, allocations: 0 / 1.566 GB, free: 10.13 MB / 1.264 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007091/0.5862, allocations: 0.5211 MB / 1.567 GB, free: 9.598 MB / 1.264 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002357/0.5885, allocations: 1.642 MB / 1.568 GB, free: 7.883 MB / 1.264 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.5885, allocations: 0 / 1.568 GB, free: 7.883 MB / 1.264 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004969/0.589, allocations: 107.9 kB / 1.568 GB, free: 7.777 MB / 1.264 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.703e-06/0.589, allocations: 4 kB / 1.568 GB, free: 7.773 MB / 1.264 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.917e-05/0.5891, allocations: 20.2 kB / 1.568 GB, free: 7.754 MB / 1.264 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.829e-06/0.5891, allocations: 11.94 kB / 1.568 GB, free: 7.742 MB / 1.264 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.676e-06/0.5891, allocations: 3.938 kB / 1.568 GB, free: 7.738 MB / 1.264 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001311/0.5904, allocations: 1.015 MB / 1.569 GB, free: 6.684 MB / 1.264 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003371/0.5907, allocations: 163.2 kB / 1.57 GB, free: 6.523 MB / 1.264 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001047/0.5908, allocations: 19.92 kB / 1.57 GB, free: 6.504 MB / 1.264 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004042/0.5912, allocations: 12 kB / 1.57 GB, free: 6.492 MB / 1.264 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.514e-05/0.5913, allocations: 39.66 kB / 1.57 GB, free: 6.453 MB / 1.264 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.429e-05/0.5913, allocations: 19.98 kB / 1.57 GB, free: 6.434 MB / 1.264 GB Notification: Performance of sorting global known variables: time 0.0006185/0.5919, allocations: 0.5146 MB / 1.57 GB, free: 5.922 MB / 1.264 GB Notification: Performance of sort global known variables: time 1.01e-07/0.5919, allocations: 0 / 1.57 GB, free: 5.922 MB / 1.264 GB Notification: Performance of remove unused functions: time 0.0007629/0.5927, allocations: 307.4 kB / 1.57 GB, free: 5.621 MB / 1.264 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.001887/0.5946, allocations: 1.651 MB / 1.572 GB, free: 3.926 MB / 1.264 GB Notification: Performance of simCode: created initialization part: time 0.0009049/0.5955, allocations: 0.5847 MB / 1.573 GB, free: 3.344 MB / 1.264 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.5955, allocations: 0 / 1.573 GB, free: 3.344 MB / 1.264 GB Notification: Performance of simCode: created simulation system equations: time 0.0003551/0.5959, allocations: 271.5 kB / 1.573 GB, free: 3.078 MB / 1.264 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001698/0.5976, allocations: 439.4 kB / 1.573 GB, free: 2.66 MB / 1.264 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009136/0.6067, allocations: 7.238 MB / 1.58 GB, free: 11.02 MB / 1.279 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000765/0.6075, allocations: 1.118 MB / 1.581 GB, free: 9.879 MB / 1.279 GB Notification: Performance of simCode: alias equations: time 0.0007022/0.6082, allocations: 271.1 kB / 1.582 GB, free: 9.609 MB / 1.279 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004869/0.6086, allocations: 367.2 kB / 1.582 GB, free: 9.25 MB / 1.279 GB Notification: Performance of SimCode: time 4.81e-07/0.6086, allocations: 0 / 1.582 GB, free: 9.25 MB / 1.279 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05849/0.6671, allocations: 23.85 MB / 1.605 GB, free: 1.797 MB / 1.295 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/12.03, allocations: 7.969 kB / 1.605 GB, free: 1.789 MB / 1.295 GB " [Timeout remaining time 288] (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/jenkins1/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: 18.622073710896075]