Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Experimental.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Experimental.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing,fileNamePrefix="Buildings_10_Buildings_Experimental_DHC_Plants_Combined_Subsystems_Validation_ValveOpeningFlowBalancing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Experimental.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing,fileNamePrefix="Buildings_10_Buildings_Experimental_DHC_Plants_Combined_Subsystems_Validation_ValveOpeningFlowBalancing",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.001222/0.001222, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001214/0.001214, allocations: 195 kB / 16.53 MB, free: 6.391 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.233/1.233, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.352/2.352, allocations: 437.1 MB / 0.7104 GB, free: 5.027 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 59.89 kB / 0.8694 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4742/0.4754, allocations: 151.6 MB / 1.017 GB, free: 2.605 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing): time 0.01408/0.4895, allocations: 15.4 MB / 1.032 GB, free: 3.145 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.005137/0.4946, allocations: 4.667 MB / 1.037 GB, free: 14.47 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002498/0.4949, allocations: 15.88 kB / 1.037 GB, free: 14.46 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0004518/0.4954, allocations: 202.5 kB / 1.037 GB, free: 14.26 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0009717/0.4964, allocations: 0.5704 MB / 1.038 GB, free: 13.69 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.001119/0.4975, allocations: 0.5602 MB / 1.038 GB, free: 13.13 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0008723/0.4984, allocations: 0.9548 MB / 1.039 GB, free: 12.17 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003713/0.4988, allocations: 318.1 kB / 1.04 GB, free: 11.86 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005131/0.4993, allocations: 410.3 kB / 1.04 GB, free: 11.45 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003501/0.4997, allocations: 306.6 kB / 1.04 GB, free: 11.15 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 4.809e-05/0.4997, allocations: 24 kB / 1.04 GB, free: 11.13 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003727/0.5001, allocations: 215.6 kB / 1.04 GB, free: 10.92 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 8.822e-05/0.5002, allocations: 83.59 kB / 1.041 GB, free: 10.84 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001745/0.5004, allocations: 206.8 kB / 1.041 GB, free: 10.63 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0005216/0.5009, allocations: 0.5022 MB / 1.041 GB, free: 10.13 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 2.826e-06/0.5009, allocations: 3.938 kB / 1.041 GB, free: 10.12 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.153e-06/0.5009, allocations: 0 / 1.041 GB, free: 10.12 MB / 0.795 GB Notification: Performance of Transformations before backend: time 9.749e-06/0.5009, allocations: 0 / 1.041 GB, free: 10.12 MB / 0.795 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0009767/0.5019, allocations: 0.728 MB / 1.042 GB, free: 9.344 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.204e-05/0.5019, allocations: 8.031 kB / 1.042 GB, free: 9.336 MB / 0.795 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.765e-05/0.502, allocations: 58.73 kB / 1.042 GB, free: 9.27 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.918e-05/0.5021, allocations: 52.36 kB / 1.042 GB, free: 9.219 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005087/0.5026, allocations: 382.1 kB / 1.042 GB, free: 8.805 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.006e-05/0.5026, allocations: 24.38 kB / 1.042 GB, free: 8.781 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.54e-05/0.5027, allocations: 24 kB / 1.042 GB, free: 8.758 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002812/0.503, allocations: 195.2 kB / 1.043 GB, free: 8.562 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.503, allocations: 0 / 1.043 GB, free: 8.562 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.89e-05/0.503, allocations: 15.92 kB / 1.043 GB, free: 8.547 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.123e-06/0.503, allocations: 12 kB / 1.043 GB, free: 8.535 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002068/0.5032, allocations: 125.7 kB / 1.043 GB, free: 8.41 MB / 0.795 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.001357/0.5046, allocations: 0.8867 MB / 1.044 GB, free: 7.449 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004072/0.505, allocations: 114.6 kB / 1.044 GB, free: 7.328 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.19e-05/0.5051, allocations: 52.83 kB / 1.044 GB, free: 7.273 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002917/0.5054, allocations: 336.4 kB / 1.044 GB, free: 6.871 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.867e-05/0.5054, allocations: 34.55 kB / 1.044 GB, free: 6.828 MB / 0.795 GB Notification: Performance of pre-optimization done (n=12): time 1.212e-06/0.5054, allocations: 4 kB / 1.044 GB, free: 6.824 MB / 0.795 GB Notification: Performance of matching and sorting (n=12): time 0.0003123/0.5057, allocations: 169.1 kB / 1.044 GB, free: 6.652 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.506e-05/0.5058, allocations: 51.41 kB / 1.044 GB, free: 6.59 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004648/0.5062, allocations: 461.9 kB / 1.045 GB, free: 6.129 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.41e-05/0.5063, allocations: 33.7 kB / 1.045 GB, free: 6.09 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001494/0.5064, allocations: 208.3 kB / 1.045 GB, free: 5.879 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 3.475e-05/0.5065, allocations: 47.3 kB / 1.045 GB, free: 5.832 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.323e-05/0.5065, allocations: 53.7 kB / 1.045 GB, free: 5.773 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001125/0.5067, allocations: 354.7 kB / 1.046 GB, free: 5.418 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.138e-05/0.5068, allocations: 51.97 kB / 1.046 GB, free: 5.367 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001361/0.5069, allocations: 110.8 kB / 1.046 GB, free: 5.242 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001769/0.5071, allocations: 127.3 kB / 1.046 GB, free: 5.105 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.5071, allocations: 0 / 1.046 GB, free: 5.105 MB / 0.795 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003412/0.5074, allocations: 221 kB / 1.046 GB, free: 4.883 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.278e-05/0.5075, allocations: 7.984 kB / 1.046 GB, free: 4.875 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.5075, allocations: 0 / 1.046 GB, free: 4.875 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.135e-05/0.5075, allocations: 4 kB / 1.046 GB, free: 4.871 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001904/0.5077, allocations: 43.92 kB / 1.046 GB, free: 4.828 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.451e-06/0.5077, allocations: 0 / 1.046 GB, free: 4.828 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002767/0.508, allocations: 39.66 kB / 1.046 GB, free: 4.789 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.381e-05/0.508, allocations: 8.188 kB / 1.046 GB, free: 4.781 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (24): * Single equations (assignments): 24 * 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.0001255/0.5081, allocations: 161.7 kB / 1.046 GB, free: 4.613 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.192e-05/0.5082, allocations: 43.38 kB / 1.046 GB, free: 4.57 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000295/0.5085, allocations: 186.2 kB / 1.046 GB, free: 4.387 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.5085, allocations: 4 kB / 1.046 GB, free: 4.383 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.5085, allocations: 0 / 1.046 GB, free: 4.383 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.5085, allocations: 3.984 kB / 1.046 GB, free: 4.379 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006499/0.5092, allocations: 0.6341 MB / 1.047 GB, free: 3.676 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.5092, allocations: 4 kB / 1.047 GB, free: 3.672 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.636e-05/0.5093, allocations: 23.98 kB / 1.047 GB, free: 3.648 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.5093, allocations: 0 / 1.047 GB, free: 3.648 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.684e-05/0.5093, allocations: 8.094 kB / 1.047 GB, free: 3.641 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/0.5094, allocations: 3.938 kB / 1.047 GB, free: 3.637 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.5094, allocations: 4 kB / 1.047 GB, free: 3.633 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003041/0.5097, allocations: 302.4 kB / 1.047 GB, free: 3.309 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001081/0.5098, allocations: 128.6 kB / 1.048 GB, free: 3.164 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.879e-05/0.5098, allocations: 4 kB / 1.048 GB, free: 3.16 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002197/0.5101, allocations: 19.92 kB / 1.048 GB, free: 3.141 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.66e-05/0.5101, allocations: 11.98 kB / 1.048 GB, free: 3.129 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.086e-05/0.5101, allocations: 7.938 kB / 1.048 GB, free: 3.121 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0003564/0.5105, allocations: 323.1 kB / 1.048 GB, free: 2.809 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5105, allocations: 0 / 1.048 GB, free: 2.809 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003761/0.5109, allocations: 111.8 kB / 1.048 GB, free: 2.699 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 simulation (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0008219/0.5117, allocations: 0.9367 MB / 1.049 GB, free: 1.734 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002639/0.512, allocations: 147.7 kB / 1.049 GB, free: 1.594 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.512, allocations: 0 / 1.049 GB, free: 1.594 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 8.767e-05/0.5121, allocations: 64.03 kB / 1.049 GB, free: 1.531 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009066/0.513, allocations: 171.8 kB / 1.049 GB, free: 1.367 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0038/0.5168, allocations: 3.338 MB / 1.053 GB, free: 13.91 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003082/0.5171, allocations: 0.8035 MB / 1.053 GB, free: 13.09 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0002334/0.5174, allocations: 74.52 kB / 1.053 GB, free: 13.01 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001404/0.5175, allocations: 123.4 kB / 1.054 GB, free: 12.89 MB / 0.8106 GB Notification: Performance of SimCode: time 2.41e-07/0.5175, allocations: 0 / 1.054 GB, free: 12.89 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02701/0.5445, allocations: 11.1 MB / 1.064 GB, free: 2.09 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.997/7.541, allocations: 9.578 kB / 1.064 GB, free: 2.082 MB / 0.8106 GB (rm -f Buildings_10_Buildings.Experimental.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing.pipe ; mkfifo Buildings_10_Buildings.Experimental.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing.pipe ; head -c 1048576 < Buildings_10_Buildings.Experimental.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing.pipe >> ../files/Buildings_10_Buildings.Experimental.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Experimental.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Experimental_DHC_Plants_Combined_Subsystems_Validation_ValveOpeningFlowBalancing.fmu > Buildings_10_Buildings.Experimental.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Experimental.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Experimental_DHC_Plants_Combined_Subsystems_Validation_ValveOpeningFlowBalancing.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Experimental.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches