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.001139/0.001139, allocations: 110.1 kB / 19.73 MB, free: 2.242 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.001277/0.001277, allocations: 219.2 kB / 23.05 MB, free: 5.074 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.335/1.335, allocations: 230.6 MB / 256.8 MB, free: 7.988 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 2.959/2.959, allocations: 0.5003 GB / 0.8061 GB, free: 26.8 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.001814/0.001814, allocations: 70.27 kB / 1.171 GB, free: 19.81 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2856/0.2874, allocations: 179 MB / 1.345 GB, free: 472 kB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.2165/0.5039, allocations: 199.2 MB / 1.54 GB, free: 8.516 MB / 1.232 GB Notification: Performance of NFInst.instExpressions: time 0.01815/0.522, allocations: 14.51 MB / 1.554 GB, free: 9.969 MB / 1.248 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00104/0.5231, allocations: 51.56 kB / 1.554 GB, free: 9.918 MB / 1.248 GB Notification: Performance of NFTyping.typeComponents: time 0.001332/0.5244, allocations: 0.5124 MB / 1.555 GB, free: 9.402 MB / 1.248 GB Notification: Performance of NFTyping.typeBindings: time 0.004317/0.5287, allocations: 2.001 MB / 1.557 GB, free: 7.395 MB / 1.248 GB Notification: Performance of NFTyping.typeClassSections: time 0.002176/0.5309, allocations: 0.9067 MB / 1.557 GB, free: 6.492 MB / 1.248 GB Notification: Performance of NFFlatten.flatten: time 0.003093/0.534, allocations: 2.624 MB / 1.56 GB, free: 3.863 MB / 1.248 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00113/0.5351, allocations: 0.7991 MB / 1.561 GB, free: 3.039 MB / 1.248 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004358/0.5395, allocations: 1.9 MB / 1.563 GB, free: 1.148 MB / 1.248 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00163/0.5411, allocations: 0.9888 MB / 1.564 GB, free: 164 kB / 1.248 GB Notification: Performance of NFPackage.collectConstants: time 0.0001681/0.5413, allocations: 104 kB / 1.564 GB, free: 60 kB / 1.248 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002119/0.5434, allocations: 1.165 MB / 1.565 GB, free: 14.89 MB / 1.264 GB Notification: Performance of NFScalarize.scalarize: time 0.0005159/0.5439, allocations: 0.5064 MB / 1.565 GB, free: 14.38 MB / 1.264 GB Notification: Performance of NFVerifyModel.verify: time 0.0006941/0.5446, allocations: 0.6338 MB / 1.566 GB, free: 13.75 MB / 1.264 GB Notification: Performance of NFConvertDAE.convert: time 0.002405/0.547, allocations: 1.919 MB / 1.568 GB, free: 11.82 MB / 1.264 GB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.547, allocations: 0 / 1.568 GB, free: 11.82 MB / 1.264 GB Notification: Performance of FrontEnd: time 1.212e-06/0.547, allocations: 0 / 1.568 GB, free: 11.82 MB / 1.264 GB Notification: Performance of Transformations before backend: time 1.729e-05/0.547, allocations: 7.938 kB / 1.568 GB, free: 11.81 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.002105/0.5491, allocations: 1.415 MB / 1.569 GB, free: 10.36 MB / 1.264 GB Notification: Performance of prepare preOptimizeDAE: time 3.573e-05/0.5492, allocations: 8.031 kB / 1.569 GB, free: 10.35 MB / 1.264 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.981e-05/0.5492, allocations: 22 kB / 1.569 GB, free: 10.33 MB / 1.264 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001606/0.5494, allocations: 147.5 kB / 1.569 GB, free: 10.18 MB / 1.264 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001247/0.5506, allocations: 263 kB / 1.57 GB, free: 9.922 MB / 1.264 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001252/0.5519, allocations: 0.7253 MB / 1.57 GB, free: 9.168 MB / 1.264 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.873e-05/0.5519, allocations: 77.98 kB / 1.57 GB, free: 9.09 MB / 1.264 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001387/0.5521, allocations: 99.94 kB / 1.571 GB, free: 8.992 MB / 1.264 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001639/0.5537, allocations: 1.165 MB / 1.572 GB, free: 7.758 MB / 1.264 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.64e-05/0.5537, allocations: 3.938 kB / 1.572 GB, free: 7.754 MB / 1.264 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.04e-05/0.5538, allocations: 40 kB / 1.572 GB, free: 7.715 MB / 1.264 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.918e-05/0.5539, allocations: 34 kB / 1.572 GB, free: 7.68 MB / 1.264 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001348/0.5552, allocations: 0.9054 MB / 1.573 GB, free: 6.777 MB / 1.264 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.005493/0.5607, allocations: 5.756 MB / 1.578 GB, free: 0.5469 MB / 1.264 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000805/0.5615, allocations: 0.5101 MB / 1.579 GB, free: 32 kB / 1.264 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004269/0.5619, allocations: 298.7 kB / 1.579 GB, free: 15.73 MB / 1.279 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004642/0.5624, allocations: 80.27 kB / 1.579 GB, free: 15.66 MB / 1.279 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.479e-05/0.5624, allocations: 46.92 kB / 1.579 GB, free: 15.6 MB / 1.279 GB Notification: Performance of pre-optimization done (n=49): time 1.654e-06/0.5624, allocations: 0 / 1.579 GB, free: 15.6 MB / 1.279 GB Notification: Performance of matching and sorting (n=49): time 0.001501/0.5639, allocations: 0.8031 MB / 1.58 GB, free: 14.79 MB / 1.279 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.004e-05/0.564, allocations: 63.84 kB / 1.58 GB, free: 14.71 MB / 1.279 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009307/0.5649, allocations: 0.7471 MB / 1.581 GB, free: 13.96 MB / 1.279 GB Notification: Performance of collectPreVariables (initialization): time 5.806e-05/0.565, allocations: 37.7 kB / 1.581 GB, free: 13.91 MB / 1.279 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004039/0.5654, allocations: 0.5233 MB / 1.581 GB, free: 13.38 MB / 1.279 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001612/0.5655, allocations: 186.4 kB / 1.581 GB, free: 13.2 MB / 1.279 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002038/0.5657, allocations: 138.6 kB / 1.582 GB, free: 13.06 MB / 1.279 GB Notification: Performance of setup shared object (initialization): time 0.0001417/0.5659, allocations: 341.9 kB / 1.582 GB, free: 12.72 MB / 1.279 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003743/0.5663, allocations: 245.9 kB / 1.582 GB, free: 12.48 MB / 1.279 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006236/0.5669, allocations: 0.5624 MB / 1.583 GB, free: 11.78 MB / 1.279 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009928/0.5679, allocations: 0.7957 MB / 1.583 GB, free: 10.88 MB / 1.279 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.132e-06/0.5679, allocations: 4 kB / 1.583 GB, free: 10.87 MB / 1.279 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001247/0.5691, allocations: 0.8549 MB / 1.584 GB, free: 10.01 MB / 1.279 GB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.5691, allocations: 8 kB / 1.584 GB, free: 10 MB / 1.279 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.125e-05/0.5692, allocations: 8 kB / 1.584 GB, free: 9.992 MB / 1.279 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.084e-05/0.5692, allocations: 12 kB / 1.584 GB, free: 9.98 MB / 1.279 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005306/0.5697, allocations: 151.8 kB / 1.584 GB, free: 9.832 MB / 1.279 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.96e-05/0.5697, allocations: 19.92 kB / 1.584 GB, free: 9.812 MB / 1.279 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006347/0.5704, allocations: 95.33 kB / 1.585 GB, free: 9.719 MB / 1.279 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.658e-05/0.5704, allocations: 36.16 kB / 1.585 GB, free: 9.684 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.0004181/0.5708, allocations: 337.3 kB / 1.585 GB, free: 9.344 MB / 1.279 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001329/0.571, allocations: 91.44 kB / 1.585 GB, free: 9.254 MB / 1.279 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009853/0.5719, allocations: 0.6218 MB / 1.586 GB, free: 8.629 MB / 1.279 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.091e-06/0.572, allocations: 4 kB / 1.586 GB, free: 8.625 MB / 1.279 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.572, allocations: 0 / 1.586 GB, free: 8.625 MB / 1.279 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007384/0.5727, allocations: 0.5211 MB / 1.586 GB, free: 8.09 MB / 1.279 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002464/0.5752, allocations: 1.646 MB / 1.588 GB, free: 6.371 MB / 1.279 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/0.5752, allocations: 4 kB / 1.588 GB, free: 6.367 MB / 1.279 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005059/0.5757, allocations: 112.1 kB / 1.588 GB, free: 6.258 MB / 1.279 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.654e-06/0.5757, allocations: 4 kB / 1.588 GB, free: 6.254 MB / 1.279 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.721e-05/0.5757, allocations: 16 kB / 1.588 GB, free: 6.238 MB / 1.279 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.23e-06/0.5757, allocations: 4 kB / 1.588 GB, free: 6.234 MB / 1.279 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.5757, allocations: 0 / 1.588 GB, free: 6.234 MB / 1.279 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001345/0.5771, allocations: 1.027 MB / 1.589 GB, free: 5.172 MB / 1.279 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003023/0.5774, allocations: 147.3 kB / 1.589 GB, free: 5.027 MB / 1.279 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.974e-05/0.5775, allocations: 15.94 kB / 1.589 GB, free: 5.012 MB / 1.279 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004261/0.5779, allocations: 18.06 kB / 1.589 GB, free: 4.996 MB / 1.279 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.909e-05/0.578, allocations: 39.88 kB / 1.589 GB, free: 4.957 MB / 1.279 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.993e-05/0.578, allocations: 23.98 kB / 1.589 GB, free: 4.934 MB / 1.279 GB Notification: Performance of sorting global known variables: time 0.0006508/0.5787, allocations: 0.5107 MB / 1.59 GB, free: 4.426 MB / 1.279 GB Notification: Performance of sort global known variables: time 1e-07/0.5787, allocations: 4 kB / 1.59 GB, free: 4.422 MB / 1.279 GB Notification: Performance of remove unused functions: time 0.0009177/0.5796, allocations: 295.5 kB / 1.59 GB, free: 4.133 MB / 1.279 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.002121/0.5817, allocations: 1.663 MB / 1.592 GB, free: 2.43 MB / 1.279 GB Notification: Performance of simCode: created initialization part: time 0.001135/0.5828, allocations: 0.5831 MB / 1.592 GB, free: 1.844 MB / 1.279 GB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/0.5829, allocations: 4 kB / 1.592 GB, free: 1.84 MB / 1.279 GB Notification: Performance of simCode: created simulation system equations: time 0.0003752/0.5832, allocations: 261.4 kB / 1.592 GB, free: 1.586 MB / 1.279 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002024/0.5852, allocations: 440 kB / 1.593 GB, free: 1.164 MB / 1.279 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009425/0.5947, allocations: 7.25 MB / 1.6 GB, free: 9.52 MB / 1.295 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007434/0.5954, allocations: 1.122 MB / 1.601 GB, free: 8.371 MB / 1.295 GB Notification: Performance of simCode: alias equations: time 0.0007405/0.5962, allocations: 263.1 kB / 1.601 GB, free: 8.109 MB / 1.295 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004776/0.5966, allocations: 367.3 kB / 1.602 GB, free: 7.754 MB / 1.295 GB Notification: Performance of SimCode: time 1.002e-06/0.5966, allocations: 0 / 1.602 GB, free: 7.754 MB / 1.295 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5906/1.187, allocations: 23.86 MB / 1.625 GB, free: 262.2 MB / 1.295 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.66/12.84, allocations: 12.45 kB / 1.625 GB, free: 262.2 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: 19.05767166998703]