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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.006578/0.006578, allocations: 99.95 kB / 15.73 MB, free: 6.062 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.001668/0.001668, allocations: 189.6 kB / 16.67 MB, free: 5.973 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.343/1.343, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.761/2.761, allocations: 469.4 MB / 0.7421 GB, free: 7.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001404/0.001404, allocations: 71.84 kB / 1.064 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3259/0.3274, allocations: 159.1 MB / 1.22 GB, free: 14.63 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.8856/1.213, allocations: 195.1 MB / 1.41 GB, free: 12.73 MB / 1.107 GB Notification: Performance of NFInst.instExpressions: time 0.0205/1.234, allocations: 14.32 MB / 1.424 GB, free: 1.125 MB / 1.107 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00159/1.235, allocations: 35.34 kB / 1.424 GB, free: 1.113 MB / 1.107 GB Notification: Performance of NFTyping.typeComponents: time 0.001919/1.237, allocations: 0.507 MB / 1.425 GB, free: 0.6875 MB / 1.107 GB Notification: Performance of NFTyping.typeBindings: time 0.005451/1.243, allocations: 1.961 MB / 1.427 GB, free: 15.2 MB / 1.123 GB Notification: Performance of NFTyping.typeClassSections: time 0.002737/1.245, allocations: 0.8728 MB / 1.428 GB, free: 14.54 MB / 1.123 GB Notification: Performance of NFFlatten.flatten: time 0.003346/1.249, allocations: 2.575 MB / 1.43 GB, free: 13.07 MB / 1.123 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001657/1.25, allocations: 1.118 MB / 1.431 GB, free: 12.41 MB / 1.123 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004331/1.255, allocations: 1.641 MB / 1.433 GB, free: 11.43 MB / 1.123 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001798/1.257, allocations: 0.9282 MB / 1.434 GB, free: 10.89 MB / 1.123 GB Notification: Performance of NFPackage.collectConstants: time 0.0003083/1.257, allocations: 107.5 kB / 1.434 GB, free: 10.85 MB / 1.123 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002543/1.259, allocations: 1.107 MB / 1.435 GB, free: 9.742 MB / 1.123 GB Notification: Performance of NFScalarize.scalarize: time 0.0006479/1.26, allocations: 0.491 MB / 1.435 GB, free: 9.25 MB / 1.123 GB Notification: Performance of NFVerifyModel.verify: time 0.00125/1.261, allocations: 0.6377 MB / 1.436 GB, free: 8.609 MB / 1.123 GB Notification: Performance of NFConvertDAE.convert: time 0.003444/1.265, allocations: 1.915 MB / 1.438 GB, free: 6.688 MB / 1.123 GB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/1.265, allocations: 0 / 1.438 GB, free: 6.688 MB / 1.123 GB Notification: Performance of FrontEnd: time 1.673e-06/1.265, allocations: 0 / 1.438 GB, free: 6.688 MB / 1.123 GB Notification: Performance of Transformations before backend: time 6.451e-05/1.265, allocations: 4 kB / 1.438 GB, free: 6.684 MB / 1.123 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.002877/1.268, allocations: 1.482 MB / 1.439 GB, free: 5.148 MB / 1.123 GB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/1.268, allocations: 12.02 kB / 1.439 GB, free: 5.137 MB / 1.123 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000221/1.268, allocations: 147.6 kB / 1.439 GB, free: 4.984 MB / 1.123 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001461/1.27, allocations: 262.9 kB / 1.44 GB, free: 4.727 MB / 1.123 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00147/1.271, allocations: 0.7967 MB / 1.44 GB, free: 3.883 MB / 1.123 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.569e-05/1.271, allocations: 66 kB / 1.441 GB, free: 3.82 MB / 1.123 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001433/1.271, allocations: 96 kB / 1.441 GB, free: 3.727 MB / 1.123 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001739/1.273, allocations: 1.169 MB / 1.442 GB, free: 2.484 MB / 1.123 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.026e-05/1.273, allocations: 7.938 kB / 1.442 GB, free: 2.477 MB / 1.123 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.657e-05/1.273, allocations: 39.94 kB / 1.442 GB, free: 2.438 MB / 1.123 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-05/1.273, allocations: 37.98 kB / 1.442 GB, free: 2.402 MB / 1.123 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001423/1.275, allocations: 0.9054 MB / 1.443 GB, free: 1.496 MB / 1.123 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.005877/1.28, allocations: 5.744 MB / 1.448 GB, free: 11.3 MB / 1.139 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008449/1.281, allocations: 0.551 MB / 1.449 GB, free: 10.74 MB / 1.139 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004144/1.282, allocations: 318.5 kB / 1.449 GB, free: 10.42 MB / 1.139 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005915/1.282, allocations: 311.7 kB / 1.45 GB, free: 10.06 MB / 1.139 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.397e-05/1.282, allocations: 39 kB / 1.45 GB, free: 10.02 MB / 1.139 GB Notification: Performance of pre-optimization done (n=49): time 2.535e-06/1.282, allocations: 0 / 1.45 GB, free: 10.02 MB / 1.139 GB Notification: Performance of matching and sorting (n=49): time 0.001532/1.284, allocations: 0.8069 MB / 1.45 GB, free: 9.203 MB / 1.139 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.137e-05/1.284, allocations: 59.83 kB / 1.45 GB, free: 9.133 MB / 1.139 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009276/1.285, allocations: 0.751 MB / 1.451 GB, free: 8.371 MB / 1.139 GB Notification: Performance of collectPreVariables (initialization): time 5.359e-05/1.285, allocations: 37.7 kB / 1.451 GB, free: 8.328 MB / 1.139 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004375/1.285, allocations: 0.5194 MB / 1.452 GB, free: 7.801 MB / 1.139 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001613/1.286, allocations: 182.4 kB / 1.452 GB, free: 7.621 MB / 1.139 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000202/1.286, allocations: 142.6 kB / 1.452 GB, free: 7.477 MB / 1.139 GB Notification: Performance of setup shared object (initialization): time 0.000124/1.286, allocations: 337.9 kB / 1.452 GB, free: 7.141 MB / 1.139 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003603/1.286, allocations: 249.8 kB / 1.453 GB, free: 6.898 MB / 1.139 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005705/1.287, allocations: 0.5585 MB / 1.453 GB, free: 6.203 MB / 1.139 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009508/1.288, allocations: 0.7995 MB / 1.454 GB, free: 5.297 MB / 1.139 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.131e-06/1.288, allocations: 0 / 1.454 GB, free: 5.297 MB / 1.139 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001264/1.289, allocations: 0.8471 MB / 1.455 GB, free: 4.445 MB / 1.139 GB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/1.289, allocations: 8.156 kB / 1.455 GB, free: 4.438 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.164e-05/1.289, allocations: 12 kB / 1.455 GB, free: 4.426 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.47e-05/1.289, allocations: 19.98 kB / 1.455 GB, free: 4.406 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005259/1.29, allocations: 155.8 kB / 1.455 GB, free: 4.254 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.805e-05/1.29, allocations: 15.94 kB / 1.455 GB, free: 4.238 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007457/1.291, allocations: 87.39 kB / 1.455 GB, free: 4.152 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.143e-05/1.291, allocations: 39.92 kB / 1.455 GB, free: 4.113 MB / 1.139 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.0004359/1.291, allocations: 337.4 kB / 1.455 GB, free: 3.773 MB / 1.139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001562/1.291, allocations: 95.42 kB / 1.455 GB, free: 3.68 MB / 1.139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009697/1.292, allocations: 0.618 MB / 1.456 GB, free: 3.047 MB / 1.139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/1.292, allocations: 4 kB / 1.456 GB, free: 3.043 MB / 1.139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/1.292, allocations: 4 kB / 1.456 GB, free: 3.039 MB / 1.139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006843/1.293, allocations: 0.5172 MB / 1.457 GB, free: 2.512 MB / 1.139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002458/1.295, allocations: 1.667 MB / 1.458 GB, free: 0.7656 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.361e-06/1.295, allocations: 7.938 kB / 1.458 GB, free: 0.7578 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005411/1.296, allocations: 111.8 kB / 1.458 GB, free: 0.6484 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.068e-05/1.296, allocations: 4.219 kB / 1.458 GB, free: 0.6445 MB / 1.139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.414e-05/1.296, allocations: 20 kB / 1.458 GB, free: 0.625 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.793e-06/1.296, allocations: 4 kB / 1.458 GB, free: 0.6211 MB / 1.139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/1.296, allocations: 2.109 kB / 1.458 GB, free: 0.6211 MB / 1.139 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001362/1.297, allocations: 1.015 MB / 1.459 GB, free: 15.57 MB / 1.154 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004209/1.298, allocations: 236.4 kB / 1.46 GB, free: 15.32 MB / 1.154 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001274/1.298, allocations: 12 kB / 1.46 GB, free: 15.3 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004913/1.298, allocations: 15.98 kB / 1.46 GB, free: 15.29 MB / 1.154 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.782e-05/1.299, allocations: 27.97 kB / 1.46 GB, free: 15.26 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.602e-05/1.299, allocations: 27.92 kB / 1.46 GB, free: 15.23 MB / 1.154 GB Notification: Performance of sorting global known variables: time 0.0006115/1.299, allocations: 0.5107 MB / 1.46 GB, free: 14.73 MB / 1.154 GB Notification: Performance of sort global known variables: time 5.01e-07/1.299, allocations: 0 / 1.46 GB, free: 14.73 MB / 1.154 GB Notification: Performance of remove unused functions: time 0.0008613/1.3, allocations: 299.4 kB / 1.46 GB, free: 14.44 MB / 1.154 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.002017/1.302, allocations: 1.679 MB / 1.462 GB, free: 12.72 MB / 1.154 GB Notification: Performance of simCode: created initialization part: time 0.0009227/1.303, allocations: 0.6068 MB / 1.463 GB, free: 12.12 MB / 1.154 GB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/1.303, allocations: 7.938 kB / 1.463 GB, free: 12.11 MB / 1.154 GB Notification: Performance of simCode: created simulation system equations: time 0.0003599/1.303, allocations: 281.1 kB / 1.463 GB, free: 11.84 MB / 1.154 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001964/1.305, allocations: 434.2 kB / 1.463 GB, free: 11.42 MB / 1.154 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009584/1.315, allocations: 7.241 MB / 1.47 GB, free: 3.793 MB / 1.154 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008001/1.316, allocations: 1.118 MB / 1.471 GB, free: 2.648 MB / 1.154 GB Notification: Performance of simCode: alias equations: time 0.0007837/1.317, allocations: 279 kB / 1.472 GB, free: 2.371 MB / 1.154 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004844/1.317, allocations: 363.3 kB / 1.472 GB, free: 2.016 MB / 1.154 GB Notification: Performance of SimCode: time 1.363e-06/1.317, allocations: 0 / 1.472 GB, free: 2.016 MB / 1.154 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06939/1.387, allocations: 23.08 MB / 1.495 GB, free: 11.26 MB / 1.186 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.359/10.75, allocations: 6.406 kB / 1.495 GB, free: 11.25 MB / 1.186 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