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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007662/0.007662, allocations: 97.38 kB / 15.73 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002096/0.002096, allocations: 201.4 kB / 16.68 MB, free: 5.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.462/1.462, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.119/3.119, allocations: 482.4 MB / 0.7548 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001945/0.001946, allocations: 63.89 kB / 1.083 GB, free: 12.53 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2901/0.292, allocations: 162.2 MB / 1.241 GB, free: 10.18 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.761/1.053, allocations: 195.1 MB / 1.432 GB, free: 2.129 MB / 1.123 GB Notification: Performance of NFInst.instExpressions: time 0.01907/1.072, allocations: 14.33 MB / 1.446 GB, free: 6.203 MB / 1.139 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00117/1.073, allocations: 39.75 kB / 1.446 GB, free: 6.164 MB / 1.139 GB Notification: Performance of NFTyping.typeComponents: time 0.001499/1.075, allocations: 0.4968 MB / 1.447 GB, free: 5.664 MB / 1.139 GB Notification: Performance of NFTyping.typeBindings: time 0.004647/1.08, allocations: 1.871 MB / 1.448 GB, free: 3.785 MB / 1.139 GB Notification: Performance of NFTyping.typeClassSections: time 0.002383/1.082, allocations: 0.8678 MB / 1.449 GB, free: 2.922 MB / 1.139 GB Notification: Performance of NFFlatten.flatten: time 0.003431/1.085, allocations: 2.573 MB / 1.452 GB, free: 348 kB / 1.139 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001646/1.087, allocations: 1.104 MB / 1.453 GB, free: 15.22 MB / 1.154 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004798/1.092, allocations: 1.802 MB / 1.455 GB, free: 13.43 MB / 1.154 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001558/1.093, allocations: 0.9075 MB / 1.455 GB, free: 12.53 MB / 1.154 GB Notification: Performance of NFPackage.collectConstants: time 0.0001999/1.094, allocations: 104 kB / 1.456 GB, free: 12.43 MB / 1.154 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002386/1.096, allocations: 1.091 MB / 1.457 GB, free: 11.33 MB / 1.154 GB Notification: Performance of NFScalarize.scalarize: time 0.0005872/1.097, allocations: 0.4948 MB / 1.457 GB, free: 10.84 MB / 1.154 GB Notification: Performance of NFVerifyModel.verify: time 0.0008266/1.098, allocations: 0.6377 MB / 1.458 GB, free: 10.2 MB / 1.154 GB Notification: Performance of NFConvertDAE.convert: time 0.00291/1.1, allocations: 1.916 MB / 1.46 GB, free: 8.273 MB / 1.154 GB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/1.1, allocations: 0 / 1.46 GB, free: 8.273 MB / 1.154 GB Notification: Performance of FrontEnd: time 1.523e-06/1.1, allocations: 0 / 1.46 GB, free: 8.273 MB / 1.154 GB Notification: Performance of Transformations before backend: time 1.966e-05/1.1, allocations: 0 / 1.46 GB, free: 8.273 MB / 1.154 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.0024/1.103, allocations: 1.486 MB / 1.461 GB, free: 6.734 MB / 1.154 GB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/1.103, allocations: 8.031 kB / 1.461 GB, free: 6.727 MB / 1.154 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001891/1.103, allocations: 147.6 kB / 1.461 GB, free: 6.574 MB / 1.154 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001409/1.105, allocations: 267.7 kB / 1.461 GB, free: 6.312 MB / 1.154 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001368/1.106, allocations: 0.7967 MB / 1.462 GB, free: 5.473 MB / 1.154 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.984e-05/1.106, allocations: 73.88 kB / 1.462 GB, free: 5.402 MB / 1.154 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001518/1.106, allocations: 92 kB / 1.462 GB, free: 5.312 MB / 1.154 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00191/1.108, allocations: 1.169 MB / 1.464 GB, free: 4.07 MB / 1.154 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.715e-05/1.108, allocations: 4 kB / 1.464 GB, free: 4.066 MB / 1.154 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.324e-05/1.108, allocations: 43.94 kB / 1.464 GB, free: 4.023 MB / 1.154 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.571e-05/1.108, allocations: 34 kB / 1.464 GB, free: 3.992 MB / 1.154 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001549/1.11, allocations: 0.8976 MB / 1.465 GB, free: 3.09 MB / 1.154 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.00643/1.116, allocations: 5.828 MB / 1.47 GB, free: 12.79 MB / 1.17 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009491/1.117, allocations: 0.5254 MB / 1.471 GB, free: 12.26 MB / 1.17 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004957/1.118, allocations: 318.6 kB / 1.471 GB, free: 11.94 MB / 1.17 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006602/1.118, allocations: 311.7 kB / 1.471 GB, free: 11.58 MB / 1.17 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.738e-05/1.118, allocations: 42.94 kB / 1.471 GB, free: 11.53 MB / 1.17 GB Notification: Performance of pre-optimization done (n=49): time 4.117e-06/1.118, allocations: 4 kB / 1.471 GB, free: 11.53 MB / 1.17 GB Notification: Performance of matching and sorting (n=49): time 0.001647/1.12, allocations: 0.8069 MB / 1.472 GB, free: 10.71 MB / 1.17 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.559e-05/1.12, allocations: 55.84 kB / 1.472 GB, free: 10.64 MB / 1.17 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001016/1.121, allocations: 0.751 MB / 1.473 GB, free: 9.887 MB / 1.17 GB Notification: Performance of collectPreVariables (initialization): time 5.765e-05/1.121, allocations: 37.7 kB / 1.473 GB, free: 9.844 MB / 1.17 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004462/1.122, allocations: 0.5194 MB / 1.473 GB, free: 9.316 MB / 1.17 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001879/1.122, allocations: 186.4 kB / 1.474 GB, free: 9.133 MB / 1.17 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002609/1.122, allocations: 146.6 kB / 1.474 GB, free: 8.984 MB / 1.17 GB Notification: Performance of setup shared object (initialization): time 0.0001663/1.122, allocations: 337.9 kB / 1.474 GB, free: 8.648 MB / 1.17 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004275/1.123, allocations: 253.8 kB / 1.474 GB, free: 8.398 MB / 1.17 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007345/1.124, allocations: 0.5585 MB / 1.475 GB, free: 7.707 MB / 1.17 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001159/1.125, allocations: 0.7957 MB / 1.476 GB, free: 6.801 MB / 1.17 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.187e-06/1.125, allocations: 4 kB / 1.476 GB, free: 6.797 MB / 1.17 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001436/1.126, allocations: 0.8428 MB / 1.477 GB, free: 5.945 MB / 1.17 GB Notification: Performance of prepare postOptimizeDAE: time 1.922e-05/1.126, allocations: 8 kB / 1.477 GB, free: 5.938 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.334e-05/1.126, allocations: 9.641 kB / 1.477 GB, free: 5.93 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.579e-05/1.126, allocations: 12 kB / 1.477 GB, free: 5.918 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006005/1.127, allocations: 160.4 kB / 1.477 GB, free: 5.762 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.15e-05/1.127, allocations: 15.94 kB / 1.477 GB, free: 5.746 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007111/1.128, allocations: 95.34 kB / 1.477 GB, free: 5.652 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.896e-05/1.128, allocations: 39.92 kB / 1.477 GB, free: 5.613 MB / 1.17 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.0004733/1.128, allocations: 333.4 kB / 1.477 GB, free: 5.277 MB / 1.17 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001454/1.128, allocations: 87.44 kB / 1.477 GB, free: 5.191 MB / 1.17 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001126/1.129, allocations: 0.6257 MB / 1.478 GB, free: 4.559 MB / 1.17 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.848e-06/1.129, allocations: 8 kB / 1.478 GB, free: 4.551 MB / 1.17 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/1.13, allocations: 0 / 1.478 GB, free: 4.551 MB / 1.17 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008439/1.13, allocations: 0.5134 MB / 1.478 GB, free: 4.023 MB / 1.17 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00265/1.133, allocations: 1.667 MB / 1.48 GB, free: 2.277 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.067e-06/1.133, allocations: 11.88 kB / 1.48 GB, free: 2.266 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005513/1.134, allocations: 103.9 kB / 1.48 GB, free: 2.164 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.494e-06/1.134, allocations: 4 kB / 1.48 GB, free: 2.16 MB / 1.17 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.548e-05/1.134, allocations: 19.98 kB / 1.48 GB, free: 2.141 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.921e-06/1.134, allocations: 4 kB / 1.48 GB, free: 2.137 MB / 1.17 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/1.134, allocations: 3.938 kB / 1.48 GB, free: 2.133 MB / 1.17 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001532/1.135, allocations: 1.012 MB / 1.481 GB, free: 1.082 MB / 1.17 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003641/1.136, allocations: 240.5 kB / 1.481 GB, free: 0.8281 MB / 1.17 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001056/1.136, allocations: 8 kB / 1.481 GB, free: 0.8203 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004682/1.136, allocations: 19.98 kB / 1.481 GB, free: 0.8008 MB / 1.17 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.591e-05/1.136, allocations: 35.89 kB / 1.481 GB, free: 0.7656 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.288e-05/1.136, allocations: 19.98 kB / 1.481 GB, free: 0.7461 MB / 1.17 GB Notification: Performance of sorting global known variables: time 0.0007052/1.137, allocations: 0.5107 MB / 1.482 GB, free: 248 kB / 1.17 GB Notification: Performance of sort global known variables: time 2.81e-07/1.137, allocations: 0 / 1.482 GB, free: 248 kB / 1.17 GB Notification: Performance of remove unused functions: time 0.0008885/1.138, allocations: 295.5 kB / 1.482 GB, free: 15.95 MB / 1.186 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.00229/1.14, allocations: 1.686 MB / 1.484 GB, free: 14.24 MB / 1.186 GB Notification: Performance of simCode: created initialization part: time 0.00109/1.141, allocations: 0.6199 MB / 1.484 GB, free: 13.62 MB / 1.186 GB Notification: Performance of simCode: created event and clocks part: time 3.337e-06/1.141, allocations: 0 / 1.484 GB, free: 13.62 MB / 1.186 GB Notification: Performance of simCode: created simulation system equations: time 0.0004243/1.142, allocations: 271.6 kB / 1.485 GB, free: 13.35 MB / 1.186 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002066/1.144, allocations: 439.1 kB / 1.485 GB, free: 12.93 MB / 1.186 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01039/1.154, allocations: 7.243 MB / 1.492 GB, free: 5.305 MB / 1.186 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008262/1.155, allocations: 1.118 MB / 1.493 GB, free: 4.16 MB / 1.186 GB Notification: Performance of simCode: alias equations: time 0.0008044/1.156, allocations: 275 kB / 1.494 GB, free: 3.887 MB / 1.186 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005149/1.156, allocations: 363.3 kB / 1.494 GB, free: 3.531 MB / 1.186 GB Notification: Performance of SimCode: time 5.91e-07/1.156, allocations: 4 kB / 1.494 GB, free: 3.527 MB / 1.186 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05628/1.213, allocations: 23.08 MB / 1.516 GB, free: 12.78 MB / 1.217 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.313/10.53, allocations: 18.58 kB / 1.516 GB, free: 12.76 MB / 1.217 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.csv --start-time 0 --stop-time 7200 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2.88 Buildings_latest_Buildings_Fluid_Sensors_Examples_TraceSubstances.fmu > Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.csv","/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) Reference file matches