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.001343/0.001343, allocations: 110.6 kB / 18.94 MB, free: 2.949 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.001768/0.001768, allocations: 219.7 kB / 22.26 MB, free: 5.125 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.435/1.435, allocations: 230.6 MB / 256 MB, free: 7.973 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.258/3.258, allocations: 0.505 GB / 0.8101 GB, free: 22.03 MB / 0.6231 GB " [Timeout remaining time 176] 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="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"}) [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.002229/0.002229, allocations: 67.55 kB / 1.177 GB, free: 17.01 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.352/0.3542, allocations: 180.2 MB / 1.353 GB, free: 8.465 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Combined.Subsystems.Validation.ValveOpeningFlowBalancing): time 0.01967/0.3739, allocations: 15.72 MB / 1.368 GB, free: 8.688 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.007015/0.3809, allocations: 4.674 MB / 1.373 GB, free: 4 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005774/0.3815, allocations: 19.81 kB / 1.373 GB, free: 3.98 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.000683/0.3822, allocations: 194.5 kB / 1.373 GB, free: 3.789 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.00174/0.3839, allocations: 0.5986 MB / 1.374 GB, free: 3.188 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.001613/0.3855, allocations: 0.5845 MB / 1.374 GB, free: 2.609 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.001443/0.387, allocations: 0.9624 MB / 1.375 GB, free: 1.641 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005413/0.3875, allocations: 269.1 kB / 1.375 GB, free: 1.367 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009926/0.3885, allocations: 478.1 kB / 1.376 GB, free: 0.8984 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005617/0.3891, allocations: 298.7 kB / 1.376 GB, free: 0.6055 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 6.769e-05/0.3891, allocations: 24 kB / 1.376 GB, free: 0.582 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005473/0.3897, allocations: 231.6 kB / 1.376 GB, free: 364 kB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0001255/0.3898, allocations: 83.56 kB / 1.376 GB, free: 280 kB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0002513/0.3901, allocations: 210.8 kB / 1.377 GB, free: 68 kB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0008236/0.3909, allocations: 0.498 MB / 1.377 GB, free: 15.56 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.3909, allocations: 0 / 1.377 GB, free: 15.56 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.403e-06/0.3909, allocations: 0 / 1.377 GB, free: 15.56 MB / 1.076 GB Notification: Performance of Transformations before backend: time 1.869e-05/0.3909, allocations: 0 / 1.377 GB, free: 15.56 MB / 1.076 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.001255/0.3922, allocations: 0.6601 MB / 1.378 GB, free: 14.87 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.3922, allocations: 12.03 kB / 1.378 GB, free: 14.86 MB / 1.076 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.772e-05/0.3923, allocations: 58.67 kB / 1.378 GB, free: 14.79 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001041/0.3924, allocations: 44.66 kB / 1.378 GB, free: 14.75 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007232/0.3931, allocations: 351.1 kB / 1.378 GB, free: 14.39 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.795e-05/0.3931, allocations: 24.38 kB / 1.378 GB, free: 14.36 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.161e-05/0.3932, allocations: 24 kB / 1.378 GB, free: 14.34 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003367/0.3935, allocations: 191.3 kB / 1.378 GB, free: 14.14 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.3935, allocations: 0 / 1.378 GB, free: 14.14 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.191e-05/0.3935, allocations: 8 kB / 1.378 GB, free: 14.14 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.043e-06/0.3935, allocations: 4 kB / 1.378 GB, free: 14.13 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002367/0.3938, allocations: 137.5 kB / 1.379 GB, free: 14 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001532/0.3953, allocations: 0.8485 MB / 1.379 GB, free: 13.08 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000463/0.3958, allocations: 110.6 kB / 1.379 GB, free: 12.96 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.338e-05/0.3959, allocations: 44.84 kB / 1.38 GB, free: 12.91 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001394/0.396, allocations: 27.97 kB / 1.38 GB, free: 12.89 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.846e-05/0.396, allocations: 42.56 kB / 1.38 GB, free: 12.84 MB / 1.076 GB Notification: Performance of pre-optimization done (n=12): time 1.253e-06/0.396, allocations: 0 / 1.38 GB, free: 12.84 MB / 1.076 GB Notification: Performance of matching and sorting (n=12): time 0.0003803/0.3964, allocations: 177.2 kB / 1.38 GB, free: 12.66 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.769e-05/0.3964, allocations: 51.41 kB / 1.38 GB, free: 12.59 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005522/0.397, allocations: 457.8 kB / 1.38 GB, free: 12.14 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 2.706e-05/0.397, allocations: 29.7 kB / 1.38 GB, free: 12.11 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001692/0.3972, allocations: 200.5 kB / 1.38 GB, free: 11.91 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 4.137e-05/0.3972, allocations: 51.58 kB / 1.381 GB, free: 11.86 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.578e-05/0.3973, allocations: 57.69 kB / 1.381 GB, free: 11.79 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001602/0.3975, allocations: 350.7 kB / 1.381 GB, free: 11.44 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001016/0.3976, allocations: 47.97 kB / 1.381 GB, free: 11.39 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000167/0.3978, allocations: 109.8 kB / 1.381 GB, free: 11.27 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002063/0.398, allocations: 135.3 kB / 1.381 GB, free: 11.12 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.398, allocations: 4 kB / 1.381 GB, free: 11.12 MB / 1.076 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003741/0.3983, allocations: 217.2 kB / 1.381 GB, free: 10.9 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/0.3984, allocations: 8 kB / 1.381 GB, free: 10.89 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.3984, allocations: 0 / 1.381 GB, free: 10.89 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.63e-05/0.3984, allocations: 0 / 1.381 GB, free: 10.89 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002254/0.3986, allocations: 51.91 kB / 1.381 GB, free: 10.84 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.013e-05/0.3986, allocations: 4 kB / 1.381 GB, free: 10.84 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003197/0.3989, allocations: 31.83 kB / 1.381 GB, free: 10.81 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.958e-05/0.399, allocations: 11.98 kB / 1.381 GB, free: 10.8 MB / 1.076 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.0001617/0.3991, allocations: 153.7 kB / 1.382 GB, free: 10.64 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.886e-05/0.3992, allocations: 43.75 kB / 1.382 GB, free: 10.59 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003634/0.3996, allocations: 201.4 kB / 1.382 GB, free: 10.39 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.468e-06/0.3996, allocations: 7.938 kB / 1.382 GB, free: 10.39 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.3996, allocations: 0 / 1.382 GB, free: 10.39 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.3996, allocations: 0 / 1.382 GB, free: 10.39 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008552/0.4004, allocations: 0.5943 MB / 1.382 GB, free: 9.73 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.683e-06/0.4005, allocations: 4 kB / 1.382 GB, free: 9.727 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001119/0.4006, allocations: 24.03 kB / 1.382 GB, free: 9.703 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.002e-05/0.4006, allocations: 11.97 kB / 1.383 GB, free: 9.691 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.192e-05/0.4006, allocations: 4 kB / 1.383 GB, free: 9.688 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.629e-06/0.4006, allocations: 3.938 kB / 1.383 GB, free: 9.684 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.4006, allocations: 4.125 kB / 1.383 GB, free: 9.68 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003462/0.4009, allocations: 294.6 kB / 1.383 GB, free: 9.363 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000123/0.4011, allocations: 59.61 kB / 1.383 GB, free: 9.305 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.15e-05/0.4011, allocations: 4 kB / 1.383 GB, free: 9.301 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002312/0.4013, allocations: 19.98 kB / 1.383 GB, free: 9.281 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.384e-05/0.4014, allocations: 15.98 kB / 1.383 GB, free: 9.266 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.424e-05/0.4014, allocations: 8 kB / 1.383 GB, free: 9.258 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.0004019/0.4018, allocations: 315.1 kB / 1.383 GB, free: 8.949 MB / 1.076 GB Notification: Performance of sort global known variables: time 1e-07/0.4018, allocations: 0 / 1.383 GB, free: 8.949 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0004445/0.4022, allocations: 99.88 kB / 1.383 GB, free: 8.852 MB / 1.076 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.0009052/0.4031, allocations: 0.9347 MB / 1.384 GB, free: 7.883 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0003038/0.4035, allocations: 135.8 kB / 1.384 GB, free: 7.75 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 6.893e-06/0.4035, allocations: 0 / 1.384 GB, free: 7.75 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0001042/0.4036, allocations: 63.84 kB / 1.384 GB, free: 7.688 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009569/0.4045, allocations: 182.3 kB / 1.385 GB, free: 7.516 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004596/0.4091, allocations: 3.256 MB / 1.388 GB, free: 4.137 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004336/0.4095, allocations: 0.8035 MB / 1.389 GB, free: 3.305 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0002549/0.4098, allocations: 69.17 kB / 1.389 GB, free: 3.238 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000184/0.41, allocations: 123.4 kB / 1.389 GB, free: 3.117 MB / 1.076 GB Notification: Performance of SimCode: time 8.62e-07/0.41, allocations: 0 / 1.389 GB, free: 3.117 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04411/0.4541, allocations: 11.25 MB / 1.4 GB, free: 8.125 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/11.72, allocations: 5.781 kB / 1.4 GB, free: 8.121 MB / 1.092 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.488667528145015]