Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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_11_Buildings_Fluid_Sensors_Examples_TraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="Buildings_11_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.007376/0.007376, allocations: 103.6 kB / 15.74 MB, free: 6.449 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.001574/0.001574, allocations: 196.5 kB / 16.67 MB, free: 6.355 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.421/1.421, 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 11.1.0-maint.11.x/package.mo): time 2.813/2.813, allocations: 469.8 MB / 0.7426 GB, free: 7.262 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001921/0.001921, allocations: 63.91 kB / 1.065 GB, free: 13.51 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2767/0.2787, allocations: 159.1 MB / 1.22 GB, free: 14.26 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.7478/1.026, allocations: 195.1 MB / 1.411 GB, free: 12.26 MB / 1.107 GB Notification: Performance of NFInst.instExpressions: time 0.01943/1.046, allocations: 14.32 MB / 1.425 GB, free: 0.6602 MB / 1.107 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001355/1.047, allocations: 38.88 kB / 1.425 GB, free: 0.6445 MB / 1.107 GB Notification: Performance of NFTyping.typeComponents: time 0.001569/1.049, allocations: 0.5046 MB / 1.425 GB, free: 224 kB / 1.107 GB Notification: Performance of NFTyping.typeBindings: time 0.004772/1.054, allocations: 1.879 MB / 1.427 GB, free: 14.78 MB / 1.123 GB Notification: Performance of NFTyping.typeClassSections: time 0.00242/1.056, allocations: 0.8712 MB / 1.428 GB, free: 14.12 MB / 1.123 GB Notification: Performance of NFFlatten.flatten: time 0.003182/1.059, allocations: 2.573 MB / 1.43 GB, free: 12.64 MB / 1.123 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001417/1.061, allocations: 1.112 MB / 1.432 GB, free: 12 MB / 1.123 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003878/1.065, allocations: 1.604 MB / 1.433 GB, free: 11.04 MB / 1.123 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00141/1.066, allocations: 0.9199 MB / 1.434 GB, free: 10.5 MB / 1.123 GB Notification: Performance of NFPackage.collectConstants: time 0.0001831/1.066, allocations: 109.1 kB / 1.434 GB, free: 10.43 MB / 1.123 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002247/1.069, allocations: 1.099 MB / 1.435 GB, free: 9.332 MB / 1.123 GB Notification: Performance of NFScalarize.scalarize: time 0.0005306/1.069, allocations: 0.4948 MB / 1.436 GB, free: 8.836 MB / 1.123 GB Notification: Performance of NFVerifyModel.verify: time 0.0007723/1.07, allocations: 0.6338 MB / 1.436 GB, free: 8.199 MB / 1.123 GB Notification: Performance of NFConvertDAE.convert: time 0.00275/1.073, allocations: 1.924 MB / 1.438 GB, free: 6.27 MB / 1.123 GB Notification: Performance of FrontEnd - DAE generated: time 3.606e-06/1.073, allocations: 0 / 1.438 GB, free: 6.27 MB / 1.123 GB Notification: Performance of FrontEnd: time 1.443e-06/1.073, allocations: 0 / 1.438 GB, free: 6.27 MB / 1.123 GB Notification: Performance of Transformations before backend: time 1.743e-05/1.073, allocations: 4 kB / 1.438 GB, free: 6.266 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.0023/1.075, allocations: 1.478 MB / 1.44 GB, free: 4.734 MB / 1.123 GB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/1.075, allocations: 8.031 kB / 1.44 GB, free: 4.727 MB / 1.123 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001816/1.075, allocations: 143.6 kB / 1.44 GB, free: 4.578 MB / 1.123 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00138/1.077, allocations: 262.9 kB / 1.44 GB, free: 4.32 MB / 1.123 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001301/1.078, allocations: 0.7967 MB / 1.441 GB, free: 3.48 MB / 1.123 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.563e-05/1.078, allocations: 74 kB / 1.441 GB, free: 3.41 MB / 1.123 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001419/1.078, allocations: 91.94 kB / 1.441 GB, free: 3.32 MB / 1.123 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00185/1.08, allocations: 1.173 MB / 1.442 GB, free: 2.074 MB / 1.123 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.801e-05/1.08, allocations: 3.938 kB / 1.442 GB, free: 2.07 MB / 1.123 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.179e-05/1.08, allocations: 39.94 kB / 1.442 GB, free: 2.031 MB / 1.123 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.58e-05/1.08, allocations: 37.98 kB / 1.442 GB, free: 1.996 MB / 1.123 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001528/1.082, allocations: 0.8976 MB / 1.443 GB, free: 1.094 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.006273/1.088, allocations: 5.759 MB / 1.449 GB, free: 10.88 MB / 1.139 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009338/1.089, allocations: 0.5447 MB / 1.449 GB, free: 10.33 MB / 1.139 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004771/1.089, allocations: 318.5 kB / 1.449 GB, free: 10.01 MB / 1.139 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006292/1.09, allocations: 315.7 kB / 1.45 GB, free: 9.648 MB / 1.139 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.46e-05/1.09, allocations: 39 kB / 1.45 GB, free: 9.602 MB / 1.139 GB Notification: Performance of pre-optimization done (n=49): time 2.194e-06/1.09, allocations: 0 / 1.45 GB, free: 9.602 MB / 1.139 GB Notification: Performance of matching and sorting (n=49): time 0.001625/1.092, allocations: 0.7992 MB / 1.451 GB, free: 8.797 MB / 1.139 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.836e-05/1.092, allocations: 63.78 kB / 1.451 GB, free: 8.723 MB / 1.139 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009502/1.093, allocations: 0.7471 MB / 1.451 GB, free: 7.969 MB / 1.139 GB Notification: Performance of collectPreVariables (initialization): time 5.73e-05/1.093, allocations: 45.64 kB / 1.451 GB, free: 7.918 MB / 1.139 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004142/1.093, allocations: 0.5194 MB / 1.452 GB, free: 7.391 MB / 1.139 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001723/1.093, allocations: 190.4 kB / 1.452 GB, free: 7.203 MB / 1.139 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002247/1.094, allocations: 146.6 kB / 1.452 GB, free: 7.055 MB / 1.139 GB Notification: Performance of setup shared object (initialization): time 0.0001464/1.094, allocations: 333.9 kB / 1.453 GB, free: 6.723 MB / 1.139 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004106/1.094, allocations: 245.9 kB / 1.453 GB, free: 6.484 MB / 1.139 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007146/1.095, allocations: 0.5546 MB / 1.453 GB, free: 5.793 MB / 1.139 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001121/1.096, allocations: 0.8112 MB / 1.454 GB, free: 4.875 MB / 1.139 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.312e-06/1.096, allocations: 4 kB / 1.454 GB, free: 4.871 MB / 1.139 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001379/1.098, allocations: 0.8433 MB / 1.455 GB, free: 4.02 MB / 1.139 GB Notification: Performance of prepare postOptimizeDAE: time 2.257e-05/1.098, allocations: 8 kB / 1.455 GB, free: 4.012 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.269e-05/1.098, allocations: 12.09 kB / 1.455 GB, free: 4 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.35e-05/1.098, allocations: 12 kB / 1.455 GB, free: 3.988 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000588/1.098, allocations: 151.8 kB / 1.455 GB, free: 3.84 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.283e-05/1.098, allocations: 15.98 kB / 1.455 GB, free: 3.824 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007118/1.099, allocations: 91.33 kB / 1.455 GB, free: 3.734 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.429e-05/1.099, allocations: 39.94 kB / 1.455 GB, free: 3.695 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.0004727/1.1, allocations: 329.5 kB / 1.456 GB, free: 3.363 MB / 1.139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001439/1.1, allocations: 91.44 kB / 1.456 GB, free: 3.273 MB / 1.139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001103/1.101, allocations: 0.6179 MB / 1.456 GB, free: 2.645 MB / 1.139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-06/1.101, allocations: 8 kB / 1.456 GB, free: 2.637 MB / 1.139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/1.101, allocations: 0 / 1.456 GB, free: 2.637 MB / 1.139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008077/1.102, allocations: 0.5211 MB / 1.457 GB, free: 2.102 MB / 1.139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002564/1.104, allocations: 1.667 MB / 1.458 GB, free: 364 kB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.706e-06/1.104, allocations: 7.938 kB / 1.458 GB, free: 356 kB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005465/1.105, allocations: 111.8 kB / 1.459 GB, free: 244 kB / 1.139 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.123e-06/1.105, allocations: 4 kB / 1.459 GB, free: 240 kB / 1.139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.011e-05/1.105, allocations: 16.22 kB / 1.459 GB, free: 224 kB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.007e-06/1.105, allocations: 15.92 kB / 1.459 GB, free: 208 kB / 1.139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/1.105, allocations: 0 / 1.459 GB, free: 208 kB / 1.139 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001506/1.106, allocations: 1.019 MB / 1.46 GB, free: 15.14 MB / 1.154 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003366/1.107, allocations: 224.4 kB / 1.46 GB, free: 14.91 MB / 1.154 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001112/1.107, allocations: 15.98 kB / 1.46 GB, free: 14.89 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004574/1.107, allocations: 17.12 kB / 1.46 GB, free: 14.88 MB / 1.154 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.424e-05/1.107, allocations: 32.09 kB / 1.46 GB, free: 14.84 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.261e-05/1.107, allocations: 16 kB / 1.46 GB, free: 14.83 MB / 1.154 GB Notification: Performance of sorting global known variables: time 0.0007071/1.108, allocations: 0.5185 MB / 1.46 GB, free: 14.32 MB / 1.154 GB Notification: Performance of sort global known variables: time 1.4e-07/1.108, allocations: 0 / 1.46 GB, free: 14.32 MB / 1.154 GB Notification: Performance of remove unused functions: time 0.0008605/1.109, allocations: 295.5 kB / 1.461 GB, free: 14.03 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.002194/1.111, allocations: 1.686 MB / 1.462 GB, free: 12.31 MB / 1.154 GB Notification: Performance of simCode: created initialization part: time 0.001022/1.112, allocations: 0.6071 MB / 1.463 GB, free: 11.7 MB / 1.154 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/1.112, allocations: 0 / 1.463 GB, free: 11.7 MB / 1.154 GB Notification: Performance of simCode: created simulation system equations: time 0.0004075/1.113, allocations: 277 kB / 1.463 GB, free: 11.43 MB / 1.154 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001998/1.115, allocations: 435.3 kB / 1.464 GB, free: 11.01 MB / 1.154 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01008/1.125, allocations: 7.245 MB / 1.471 GB, free: 3.387 MB / 1.154 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007902/1.126, allocations: 1.118 MB / 1.472 GB, free: 2.242 MB / 1.154 GB Notification: Performance of simCode: alias equations: time 0.0008065/1.126, allocations: 275 kB / 1.472 GB, free: 1.969 MB / 1.154 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005175/1.127, allocations: 363.2 kB / 1.472 GB, free: 1.613 MB / 1.154 GB Notification: Performance of SimCode: time 7.71e-07/1.127, allocations: 0 / 1.472 GB, free: 1.613 MB / 1.154 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05411/1.181, allocations: 23.09 MB / 1.495 GB, free: 10.87 MB / 1.186 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.325/10.51, allocations: 6.906 kB / 1.495 GB, free: 10.86 MB / 1.186 GB (rm -f Buildings_11_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; mkfifo Buildings_11_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe >> ../files/Buildings_11_Buildings.Fluid.Sensors.Examples.TraceSubstances.sim & python3 -m fmpy simulate --output-file Buildings_11_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_11_Buildings_Fluid_Sensors_Examples_TraceSubstances.fmu > Buildings_11_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Sensors_Examples_TraceSubstances.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Sensors.Examples.TraceSubstances.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches