Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.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 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.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing,fileNamePrefix="Buildings_latest_Buildings_DHC_Plants_Combined_Subsystems_Validation_ValveOpeningFlowBalancing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing,fileNamePrefix="Buildings_latest_Buildings_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.007352/0.007352, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.00168/0.00168, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.263/1.263, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.498/2.498, allocations: 469.4 MB / 0.7421 GB, free: 3.598 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001304, allocations: 63.89 kB / 1.064 GB, free: 14.33 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.804/0.8053, allocations: 159.1 MB / 1.22 GB, free: 2.324 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing): time 0.01413/0.8195, allocations: 15.4 MB / 1.235 GB, free: 2.855 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.005484/0.825, allocations: 4.671 MB / 1.239 GB, free: 14.17 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003269/0.8254, allocations: 11.94 kB / 1.239 GB, free: 14.16 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.000544/0.8259, allocations: 190.6 kB / 1.24 GB, free: 13.97 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.001142/0.8271, allocations: 0.5869 MB / 1.24 GB, free: 13.38 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.001278/0.8284, allocations: 0.5835 MB / 1.241 GB, free: 12.8 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0009695/0.8294, allocations: 0.9625 MB / 1.242 GB, free: 11.84 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003987/0.8298, allocations: 319.8 kB / 1.242 GB, free: 11.52 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005781/0.8304, allocations: 422.3 kB / 1.242 GB, free: 11.11 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003352/0.8308, allocations: 302.6 kB / 1.243 GB, free: 10.81 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 4.314e-05/0.8308, allocations: 24 kB / 1.243 GB, free: 10.79 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003912/0.8312, allocations: 223.6 kB / 1.243 GB, free: 10.57 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 9.231e-05/0.8313, allocations: 75.69 kB / 1.243 GB, free: 10.49 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001779/0.8315, allocations: 206.8 kB / 1.243 GB, free: 10.29 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0006187/0.8321, allocations: 0.5093 MB / 1.244 GB, free: 9.785 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.8321, allocations: 0 / 1.244 GB, free: 9.785 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.232e-06/0.8321, allocations: 0 / 1.244 GB, free: 9.785 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.853e-06/0.8322, allocations: 0 / 1.244 GB, free: 9.785 MB / 0.9669 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.001086/0.8332, allocations: 0.7509 MB / 1.244 GB, free: 8.98 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.52e-05/0.8333, allocations: 12.61 kB / 1.244 GB, free: 8.969 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.381e-05/0.8334, allocations: 54.73 kB / 1.244 GB, free: 8.906 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.722e-05/0.8334, allocations: 56.61 kB / 1.244 GB, free: 8.852 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006269/0.8341, allocations: 410.4 kB / 1.245 GB, free: 8.414 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.043e-05/0.8341, allocations: 24.38 kB / 1.245 GB, free: 8.391 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.782e-05/0.8342, allocations: 23.94 kB / 1.245 GB, free: 8.367 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003148/0.8345, allocations: 195.3 kB / 1.245 GB, free: 8.172 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.8345, allocations: 0 / 1.245 GB, free: 8.172 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.997e-05/0.8345, allocations: 8 kB / 1.245 GB, free: 8.164 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.563e-06/0.8345, allocations: 4 kB / 1.245 GB, free: 8.16 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002159/0.8347, allocations: 133.7 kB / 1.245 GB, free: 8.031 MB / 0.9669 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.001319/0.8361, allocations: 0.8832 MB / 1.246 GB, free: 7.074 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004207/0.8365, allocations: 114.6 kB / 1.246 GB, free: 6.953 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.969e-05/0.8366, allocations: 52.84 kB / 1.246 GB, free: 6.898 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000239/0.8368, allocations: 336.3 kB / 1.247 GB, free: 6.496 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.211e-05/0.8369, allocations: 38.56 kB / 1.247 GB, free: 6.449 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=12): time 1.433e-06/0.8369, allocations: 0 / 1.247 GB, free: 6.449 MB / 0.9669 GB Notification: Performance of matching and sorting (n=12): time 0.0003332/0.8372, allocations: 177.3 kB / 1.247 GB, free: 6.27 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.927e-05/0.8373, allocations: 51.41 kB / 1.247 GB, free: 6.207 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004751/0.8377, allocations: 457.9 kB / 1.247 GB, free: 5.754 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.613e-05/0.8378, allocations: 33.69 kB / 1.247 GB, free: 5.715 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001382/0.8379, allocations: 216.4 kB / 1.248 GB, free: 5.5 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.98e-05/0.8379, allocations: 43.62 kB / 1.248 GB, free: 5.457 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.781e-05/0.838, allocations: 61.64 kB / 1.248 GB, free: 5.391 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001136/0.8381, allocations: 354.7 kB / 1.248 GB, free: 5.035 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.186e-05/0.8382, allocations: 47.97 kB / 1.248 GB, free: 4.988 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001406/0.8384, allocations: 105.1 kB / 1.248 GB, free: 4.867 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001817/0.8386, allocations: 131.3 kB / 1.248 GB, free: 4.727 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.8386, allocations: 0 / 1.248 GB, free: 4.727 MB / 0.9669 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003235/0.8389, allocations: 221.2 kB / 1.248 GB, free: 4.504 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.8389, allocations: 4 kB / 1.248 GB, free: 4.5 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.8389, allocations: 3.938 kB / 1.248 GB, free: 4.496 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.332e-05/0.839, allocations: 4 kB / 1.248 GB, free: 4.492 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001989/0.8392, allocations: 43.91 kB / 1.248 GB, free: 4.449 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.8392, allocations: 4 kB / 1.248 GB, free: 4.445 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002863/0.8395, allocations: 35.77 kB / 1.249 GB, free: 4.41 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.595e-05/0.8395, allocations: 12 kB / 1.249 GB, free: 4.398 MB / 0.9669 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.0001329/0.8397, allocations: 161.7 kB / 1.249 GB, free: 4.23 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.521e-05/0.8397, allocations: 43.7 kB / 1.249 GB, free: 4.188 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003132/0.84, allocations: 188.8 kB / 1.249 GB, free: 4 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.296e-06/0.8401, allocations: 4 kB / 1.249 GB, free: 3.996 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.8401, allocations: 3.938 kB / 1.249 GB, free: 3.992 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.8401, allocations: 0 / 1.249 GB, free: 3.992 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006802/0.8408, allocations: 0.6225 MB / 1.25 GB, free: 3.301 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.431e-06/0.8408, allocations: 4 kB / 1.25 GB, free: 3.297 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.93e-05/0.8409, allocations: 23.98 kB / 1.25 GB, free: 3.273 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.8409, allocations: 0 / 1.25 GB, free: 3.273 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.462e-05/0.8409, allocations: 12.06 kB / 1.25 GB, free: 3.262 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.909e-06/0.8409, allocations: 3.938 kB / 1.25 GB, free: 3.258 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.8409, allocations: 12.06 kB / 1.25 GB, free: 3.246 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000271/0.8412, allocations: 294.7 kB / 1.25 GB, free: 2.93 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001188/0.8413, allocations: 144.7 kB / 1.25 GB, free: 2.77 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.784e-05/0.8414, allocations: 0 / 1.25 GB, free: 2.77 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002228/0.8416, allocations: 23.92 kB / 1.25 GB, free: 2.746 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.652e-05/0.8416, allocations: 11.92 kB / 1.25 GB, free: 2.734 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.184e-05/0.8417, allocations: 8 kB / 1.25 GB, free: 2.727 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0003469/0.842, allocations: 323.1 kB / 1.25 GB, free: 2.41 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.842, allocations: 0 / 1.25 GB, free: 2.41 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003766/0.8424, allocations: 103.8 kB / 1.25 GB, free: 2.309 MB / 0.9669 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.0008551/0.8433, allocations: 0.9406 MB / 1.251 GB, free: 1.344 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002647/0.8435, allocations: 139.9 kB / 1.251 GB, free: 1.207 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.8436, allocations: 4 kB / 1.251 GB, free: 1.203 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 8.859e-05/0.8437, allocations: 59.91 kB / 1.252 GB, free: 1.145 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009318/0.8446, allocations: 177.3 kB / 1.252 GB, free: 0.9688 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003808/0.8484, allocations: 3.285 MB / 1.255 GB, free: 13.55 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003056/0.8487, allocations: 0.8074 MB / 1.256 GB, free: 12.72 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001872/0.8489, allocations: 69.33 kB / 1.256 GB, free: 12.66 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001504/0.8491, allocations: 127.4 kB / 1.256 GB, free: 12.53 MB / 0.9825 GB Notification: Performance of SimCode: time 3.5e-07/0.8491, allocations: 0 / 1.256 GB, free: 12.53 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0276/0.8767, allocations: 11.1 MB / 1.267 GB, free: 1.715 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.198/9.075, allocations: 16.94 kB / 1.267 GB, free: 1.703 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing.pipe ; mkfifo Buildings_latest_Buildings.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing.pipe ; head -c 1048576 < Buildings_latest_Buildings.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing.pipe >> ../files/Buildings_latest_Buildings.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.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_latest_Buildings_DHC_Plants_Combined_Subsystems_Validation_ValveOpeningFlowBalancing.fmu > Buildings_latest_Buildings.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_DHC_Plants_Combined_Subsystems_Validation_ValveOpeningFlowBalancing.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches