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.007467/0.007467, allocations: 98.28 kB / 15.73 MB, free: 6.02 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.001679/0.001679, allocations: 190.8 kB / 16.67 MB, free: 5.938 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.344/1.344, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.636/2.636, allocations: 472.7 MB / 0.7453 GB, free: 416 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 63.91 kB / 1.069 GB, free: 10.04 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8538/0.8552, allocations: 159.9 MB / 1.225 GB, free: 13.41 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.2122/1.067, allocations: 195.1 MB / 1.416 GB, free: 9.566 MB / 1.139 GB Notification: Performance of NFInst.instExpressions: time 0.0174/1.085, allocations: 14.33 MB / 1.43 GB, free: 11.2 MB / 1.154 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001322/1.086, allocations: 35.81 kB / 1.43 GB, free: 11.17 MB / 1.154 GB Notification: Performance of NFTyping.typeComponents: time 0.001726/1.088, allocations: 0.5046 MB / 1.43 GB, free: 10.66 MB / 1.154 GB Notification: Performance of NFTyping.typeBindings: time 0.00469/1.093, allocations: 1.968 MB / 1.432 GB, free: 8.684 MB / 1.154 GB Notification: Performance of NFTyping.typeClassSections: time 0.002325/1.095, allocations: 0.8632 MB / 1.433 GB, free: 7.824 MB / 1.154 GB Notification: Performance of NFFlatten.flatten: time 0.003213/1.098, allocations: 2.573 MB / 1.436 GB, free: 5.238 MB / 1.154 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001758/1.1, allocations: 1.119 MB / 1.437 GB, free: 4.094 MB / 1.154 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00419/1.104, allocations: 1.646 MB / 1.438 GB, free: 2.461 MB / 1.154 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001635/1.106, allocations: 0.9298 MB / 1.439 GB, free: 1.531 MB / 1.154 GB Notification: Performance of NFPackage.collectConstants: time 0.0002799/1.106, allocations: 112 kB / 1.439 GB, free: 1.422 MB / 1.154 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002253/1.109, allocations: 1.107 MB / 1.44 GB, free: 320 kB / 1.154 GB Notification: Performance of NFScalarize.scalarize: time 0.0005945/1.109, allocations: 0.491 MB / 1.441 GB, free: 15.82 MB / 1.17 GB Notification: Performance of NFVerifyModel.verify: time 0.001067/1.11, allocations: 0.6377 MB / 1.441 GB, free: 15.18 MB / 1.17 GB Notification: Performance of NFConvertDAE.convert: time 0.003014/1.113, allocations: 1.916 MB / 1.443 GB, free: 13.26 MB / 1.17 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/1.113, allocations: 3.938 kB / 1.443 GB, free: 13.25 MB / 1.17 GB Notification: Performance of FrontEnd: time 1.423e-06/1.113, allocations: 0 / 1.443 GB, free: 13.25 MB / 1.17 GB Notification: Performance of Transformations before backend: time 6.314e-05/1.113, allocations: 0 / 1.443 GB, free: 13.25 MB / 1.17 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.002727/1.116, allocations: 1.486 MB / 1.445 GB, free: 11.71 MB / 1.17 GB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/1.116, allocations: 8.031 kB / 1.445 GB, free: 11.71 MB / 1.17 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002036/1.116, allocations: 151.5 kB / 1.445 GB, free: 11.55 MB / 1.17 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001398/1.118, allocations: 259 kB / 1.445 GB, free: 11.3 MB / 1.17 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001399/1.119, allocations: 0.7928 MB / 1.446 GB, free: 10.46 MB / 1.17 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.279e-05/1.119, allocations: 70 kB / 1.446 GB, free: 10.39 MB / 1.17 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001508/1.119, allocations: 92 kB / 1.446 GB, free: 10.3 MB / 1.17 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001724/1.121, allocations: 1.18 MB / 1.447 GB, free: 9.051 MB / 1.17 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.026e-05/1.121, allocations: 0 / 1.447 GB, free: 9.051 MB / 1.17 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.018e-05/1.121, allocations: 39.94 kB / 1.447 GB, free: 9.012 MB / 1.17 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.552e-05/1.121, allocations: 37.98 kB / 1.447 GB, free: 8.977 MB / 1.17 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001485/1.123, allocations: 0.9015 MB / 1.448 GB, free: 8.074 MB / 1.17 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.005861/1.129, allocations: 5.759 MB / 1.454 GB, free: 1.863 MB / 1.17 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00085/1.129, allocations: 0.5367 MB / 1.454 GB, free: 1.32 MB / 1.17 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004397/1.13, allocations: 319.1 kB / 1.455 GB, free: 1 MB / 1.17 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005959/1.131, allocations: 311.7 kB / 1.455 GB, free: 0.6406 MB / 1.17 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.77e-05/1.131, allocations: 47 kB / 1.455 GB, free: 0.582 MB / 1.17 GB Notification: Performance of pre-optimization done (n=49): time 1.743e-06/1.131, allocations: 0 / 1.455 GB, free: 0.582 MB / 1.17 GB Notification: Performance of matching and sorting (n=49): time 0.001511/1.132, allocations: 0.803 MB / 1.456 GB, free: 15.78 MB / 1.186 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.905e-05/1.132, allocations: 55.84 kB / 1.456 GB, free: 15.71 MB / 1.186 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009244/1.133, allocations: 0.751 MB / 1.457 GB, free: 14.95 MB / 1.186 GB Notification: Performance of collectPreVariables (initialization): time 5.668e-05/1.133, allocations: 37.7 kB / 1.457 GB, free: 14.91 MB / 1.186 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003971/1.134, allocations: 0.5194 MB / 1.457 GB, free: 14.38 MB / 1.186 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001707/1.134, allocations: 186.4 kB / 1.457 GB, free: 14.2 MB / 1.186 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001973/1.134, allocations: 138.6 kB / 1.457 GB, free: 14.05 MB / 1.186 GB Notification: Performance of setup shared object (initialization): time 0.0001185/1.134, allocations: 337.9 kB / 1.458 GB, free: 13.72 MB / 1.186 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003711/1.134, allocations: 245.9 kB / 1.458 GB, free: 13.48 MB / 1.186 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006229/1.135, allocations: 0.5547 MB / 1.459 GB, free: 12.79 MB / 1.186 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00102/1.136, allocations: 0.7995 MB / 1.459 GB, free: 11.88 MB / 1.186 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/1.136, allocations: 0 / 1.459 GB, free: 11.88 MB / 1.186 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001288/1.137, allocations: 0.8465 MB / 1.46 GB, free: 11.03 MB / 1.186 GB Notification: Performance of prepare postOptimizeDAE: time 2.136e-05/1.137, allocations: 11.94 kB / 1.46 GB, free: 11.02 MB / 1.186 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.487e-05/1.137, allocations: 8.844 kB / 1.46 GB, free: 11.01 MB / 1.186 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.866e-05/1.138, allocations: 12 kB / 1.46 GB, free: 11 MB / 1.186 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005815/1.138, allocations: 163.8 kB / 1.46 GB, free: 10.84 MB / 1.186 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.037e-05/1.138, allocations: 19.92 kB / 1.46 GB, free: 10.82 MB / 1.186 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007168/1.139, allocations: 91.33 kB / 1.46 GB, free: 10.73 MB / 1.186 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.499e-05/1.139, allocations: 35.94 kB / 1.46 GB, free: 10.69 MB / 1.186 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.0004079/1.139, allocations: 337.4 kB / 1.461 GB, free: 10.35 MB / 1.186 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001344/1.14, allocations: 87.44 kB / 1.461 GB, free: 10.27 MB / 1.186 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000981/1.141, allocations: 0.6218 MB / 1.461 GB, free: 9.633 MB / 1.186 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.625e-06/1.141, allocations: 8 kB / 1.461 GB, free: 9.625 MB / 1.186 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/1.141, allocations: 0 / 1.461 GB, free: 9.625 MB / 1.186 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007094/1.141, allocations: 0.5211 MB / 1.462 GB, free: 9.086 MB / 1.186 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002305/1.144, allocations: 1.667 MB / 1.464 GB, free: 7.34 MB / 1.186 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/1.144, allocations: 4 kB / 1.464 GB, free: 7.336 MB / 1.186 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005133/1.144, allocations: 103.9 kB / 1.464 GB, free: 7.234 MB / 1.186 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.213e-06/1.144, allocations: 4 kB / 1.464 GB, free: 7.23 MB / 1.186 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.249e-05/1.144, allocations: 16 kB / 1.464 GB, free: 7.215 MB / 1.186 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.442e-06/1.144, allocations: 7.984 kB / 1.464 GB, free: 7.207 MB / 1.186 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/1.144, allocations: 224 / 1.464 GB, free: 7.207 MB / 1.186 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001337/1.146, allocations: 1.031 MB / 1.465 GB, free: 6.137 MB / 1.186 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003248/1.146, allocations: 228.5 kB / 1.465 GB, free: 5.895 MB / 1.186 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000116/1.146, allocations: 15.98 kB / 1.465 GB, free: 5.879 MB / 1.186 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004577/1.146, allocations: 12 kB / 1.465 GB, free: 5.867 MB / 1.186 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.667e-05/1.147, allocations: 35.89 kB / 1.465 GB, free: 5.832 MB / 1.186 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.889e-05/1.147, allocations: 16 kB / 1.465 GB, free: 5.816 MB / 1.186 GB Notification: Performance of sorting global known variables: time 0.0006498/1.147, allocations: 0.5146 MB / 1.466 GB, free: 5.309 MB / 1.186 GB Notification: Performance of sort global known variables: time 1.7e-07/1.147, allocations: 4 kB / 1.466 GB, free: 5.305 MB / 1.186 GB Notification: Performance of remove unused functions: time 0.0007888/1.148, allocations: 303.4 kB / 1.466 GB, free: 5.008 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.001984/1.15, allocations: 1.683 MB / 1.467 GB, free: 3.293 MB / 1.186 GB Notification: Performance of simCode: created initialization part: time 0.0009314/1.151, allocations: 0.6117 MB / 1.468 GB, free: 2.68 MB / 1.186 GB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/1.151, allocations: 0 / 1.468 GB, free: 2.68 MB / 1.186 GB Notification: Performance of simCode: created simulation system equations: time 0.0003722/1.151, allocations: 271.6 kB / 1.468 GB, free: 2.414 MB / 1.186 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001851/1.153, allocations: 442 kB / 1.469 GB, free: 1.988 MB / 1.186 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00931/1.163, allocations: 7.227 MB / 1.476 GB, free: 10.38 MB / 1.201 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007345/1.163, allocations: 1.122 MB / 1.477 GB, free: 9.23 MB / 1.201 GB Notification: Performance of simCode: alias equations: time 0.0007444/1.164, allocations: 263.1 kB / 1.477 GB, free: 8.969 MB / 1.201 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004842/1.165, allocations: 367.3 kB / 1.478 GB, free: 8.609 MB / 1.201 GB Notification: Performance of SimCode: time 2.9e-07/1.165, allocations: 0 / 1.478 GB, free: 8.609 MB / 1.201 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05029/1.215, allocations: 23.09 MB / 1.5 GB, free: 1.848 MB / 1.217 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.29/10.51, allocations: 5.953 kB / 1.5 GB, free: 1.844 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 50 --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