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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001291/0.001291, allocations: 105.2 kB / 19.72 MB, free: 2.234 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001478/0.001478, allocations: 218.7 kB / 23.04 MB, free: 5.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.394/1.394, allocations: 230.6 MB / 256.8 MB, free: 7.957 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.088/3.088, allocations: 0.5003 GB / 0.8061 GB, free: 26.78 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing,fileNamePrefix="Buildings_latest_Buildings_DHC_Plants_Combined_Subsystems_Validation_ValveOpeningFlowBalancing",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001908/0.001908, allocations: 69.61 kB / 1.171 GB, free: 19.83 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3565/0.3584, allocations: 179 MB / 1.345 GB, free: 472 kB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing): time 0.01846/0.3769, allocations: 15.71 MB / 1.361 GB, free: 0.6875 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.00686/0.3838, allocations: 4.676 MB / 1.365 GB, free: 12 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005594/0.3843, allocations: 23.75 kB / 1.365 GB, free: 11.97 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0006335/0.385, allocations: 198.6 kB / 1.365 GB, free: 11.78 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.001547/0.3865, allocations: 0.5924 MB / 1.366 GB, free: 11.18 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.001573/0.3881, allocations: 0.5923 MB / 1.367 GB, free: 10.6 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.001331/0.3894, allocations: 0.9545 MB / 1.368 GB, free: 9.637 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004223/0.3898, allocations: 276.8 kB / 1.368 GB, free: 9.359 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008247/0.3907, allocations: 474.1 kB / 1.368 GB, free: 8.895 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004326/0.3911, allocations: 298.7 kB / 1.369 GB, free: 8.602 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 4.646e-05/0.3911, allocations: 24 kB / 1.369 GB, free: 8.578 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004959/0.3916, allocations: 235.6 kB / 1.369 GB, free: 8.348 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0001056/0.3917, allocations: 83.56 kB / 1.369 GB, free: 8.266 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001988/0.3919, allocations: 202.8 kB / 1.369 GB, free: 8.066 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0006926/0.3926, allocations: 0.5018 MB / 1.37 GB, free: 7.562 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.3926, allocations: 0 / 1.37 GB, free: 7.562 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.282e-06/0.3926, allocations: 0 / 1.37 GB, free: 7.562 MB / 1.061 GB Notification: Performance of Transformations before backend: time 7.153e-06/0.3926, allocations: 0 / 1.37 GB, free: 7.562 MB / 1.061 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.001141/0.3938, allocations: 0.6639 MB / 1.37 GB, free: 6.867 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.3938, allocations: 12.03 kB / 1.37 GB, free: 6.855 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.784e-05/0.3938, allocations: 8.625 kB / 1.37 GB, free: 6.848 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.332e-05/0.3939, allocations: 58.72 kB / 1.37 GB, free: 6.781 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.096e-05/0.394, allocations: 48.66 kB / 1.37 GB, free: 6.734 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006611/0.3947, allocations: 339 kB / 1.371 GB, free: 6.379 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.523e-05/0.3947, allocations: 20.44 kB / 1.371 GB, free: 6.359 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.243e-05/0.3947, allocations: 24 kB / 1.371 GB, free: 6.336 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003421/0.3951, allocations: 199.2 kB / 1.371 GB, free: 6.133 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.3951, allocations: 3.938 kB / 1.371 GB, free: 6.129 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.402e-05/0.3951, allocations: 12 kB / 1.371 GB, free: 6.117 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.243e-06/0.3951, allocations: 4 kB / 1.371 GB, free: 6.113 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002382/0.3953, allocations: 133.7 kB / 1.371 GB, free: 5.984 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001486/0.3968, allocations: 0.8368 MB / 1.372 GB, free: 5.074 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004784/0.3973, allocations: 110.6 kB / 1.372 GB, free: 4.957 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.716e-05/0.3974, allocations: 48.83 kB / 1.372 GB, free: 4.906 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001458/0.3975, allocations: 27.98 kB / 1.372 GB, free: 4.879 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.708e-05/0.3976, allocations: 34.5 kB / 1.372 GB, free: 4.836 MB / 1.061 GB Notification: Performance of pre-optimization done (n=12): time 1.152e-06/0.3976, allocations: 0 / 1.372 GB, free: 4.836 MB / 1.061 GB Notification: Performance of matching and sorting (n=12): time 0.0003932/0.398, allocations: 181.6 kB / 1.372 GB, free: 4.652 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.349e-05/0.398, allocations: 51.41 kB / 1.372 GB, free: 4.59 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005589/0.3986, allocations: 453.8 kB / 1.373 GB, free: 4.141 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.923e-05/0.3986, allocations: 33.64 kB / 1.373 GB, free: 4.102 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001784/0.3988, allocations: 212.5 kB / 1.373 GB, free: 3.891 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 4.436e-05/0.3988, allocations: 47.56 kB / 1.373 GB, free: 3.844 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.82e-05/0.3989, allocations: 49.7 kB / 1.373 GB, free: 3.789 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001722/0.3991, allocations: 354.7 kB / 1.373 GB, free: 3.434 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001019/0.3992, allocations: 47.97 kB / 1.373 GB, free: 3.387 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001774/0.3994, allocations: 116.2 kB / 1.374 GB, free: 3.258 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002271/0.3996, allocations: 131.3 kB / 1.374 GB, free: 3.117 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.3996, allocations: 0 / 1.374 GB, free: 3.117 MB / 1.061 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000368/0.4, allocations: 221.2 kB / 1.374 GB, free: 2.895 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.113e-05/0.4, allocations: 8.188 kB / 1.374 GB, free: 2.887 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.4, allocations: 0 / 1.374 GB, free: 2.887 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/0.4, allocations: 11.94 kB / 1.374 GB, free: 2.875 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002028/0.4002, allocations: 39.92 kB / 1.374 GB, free: 2.836 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.728e-06/0.4002, allocations: 4 kB / 1.374 GB, free: 2.832 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002867/0.4005, allocations: 43.73 kB / 1.374 GB, free: 2.789 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.015e-05/0.4005, allocations: 12 kB / 1.374 GB, free: 2.777 MB / 1.061 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.0001581/0.4007, allocations: 149.7 kB / 1.374 GB, free: 2.621 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.682e-05/0.4007, allocations: 39.77 kB / 1.374 GB, free: 2.582 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003522/0.4011, allocations: 200.3 kB / 1.374 GB, free: 2.387 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.456e-06/0.4011, allocations: 7.984 kB / 1.374 GB, free: 2.379 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.4011, allocations: 0 / 1.374 GB, free: 2.379 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.4011, allocations: 96 / 1.374 GB, free: 2.379 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008142/0.4019, allocations: 0.6061 MB / 1.375 GB, free: 1.711 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.4019, allocations: 3.984 kB / 1.375 GB, free: 1.707 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001045/0.402, allocations: 23.98 kB / 1.375 GB, free: 1.684 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/0.402, allocations: 0 / 1.375 GB, free: 1.684 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.356e-05/0.4021, allocations: 4 kB / 1.375 GB, free: 1.68 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.4021, allocations: 3.938 kB / 1.375 GB, free: 1.676 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.4021, allocations: 4 kB / 1.375 GB, free: 1.672 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003315/0.4024, allocations: 306.6 kB / 1.375 GB, free: 1.344 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000115/0.4025, allocations: 55.62 kB / 1.375 GB, free: 1.289 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.079e-05/0.4026, allocations: 4 kB / 1.375 GB, free: 1.285 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002176/0.4028, allocations: 15.92 kB / 1.375 GB, free: 1.27 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.256e-05/0.4028, allocations: 11.98 kB / 1.375 GB, free: 1.258 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.484e-05/0.4028, allocations: 15.92 kB / 1.375 GB, free: 1.242 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0004056/0.4032, allocations: 315.1 kB / 1.376 GB, free: 0.9375 MB / 1.061 GB Notification: Performance of sort global known variables: time 9e-08/0.4032, allocations: 0 / 1.376 GB, free: 0.9375 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0004337/0.4037, allocations: 107.8 kB / 1.376 GB, free: 0.832 MB / 1.061 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.0009009/0.4046, allocations: 0.9261 MB / 1.377 GB, free: 15.87 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0002825/0.4048, allocations: 123.9 kB / 1.377 GB, free: 15.75 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.4049, allocations: 3.938 kB / 1.377 GB, free: 15.74 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 9.872e-05/0.4049, allocations: 60.39 kB / 1.377 GB, free: 15.68 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009493/0.4059, allocations: 176.2 kB / 1.377 GB, free: 15.52 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004521/0.4104, allocations: 3.27 MB / 1.38 GB, free: 12.13 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004363/0.4109, allocations: 0.8074 MB / 1.381 GB, free: 11.3 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.000313/0.4112, allocations: 67.23 kB / 1.381 GB, free: 11.23 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001799/0.4113, allocations: 119.4 kB / 1.381 GB, free: 11.11 MB / 1.076 GB Notification: Performance of SimCode: time 9.82e-07/0.4113, allocations: 3.938 kB / 1.381 GB, free: 11.11 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03471/0.4461, allocations: 11.28 MB / 1.392 GB, free: 104 kB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/11.75, allocations: 4.578 kB / 1.392 GB, free: 104 kB / 1.076 GB " [Timeout remaining time 288] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing_res.mat --tempDir=temp_Buildings_latest_Buildings_DHC_Plants_Combined_Subsystems_Validation_ValveOpeningFlowBalancing_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_DHC_Plants_Combined_Subsystems_Validation_ValveOpeningFlowBalancing.fmu > Buildings_latest_Buildings.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing_res.mat","/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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.370564393000677]