Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.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.001666/0.001666, allocations: 110.4 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.002225/0.002225, 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.515/1.515, 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 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.354/3.354, allocations: 0.49 GB / 0.7951 GB, free: 33.41 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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.Cooling.Controls.Validation.TankStatus,fileNamePrefix="Buildings_12_Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus,fileNamePrefix="Buildings_12_Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus",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.00216/0.00216, allocations: 71.61 kB / 1.154 GB, free: 25.7 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3753/0.3775, allocations: 176.1 MB / 1.326 GB, free: 1.941 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.004195/0.3817, allocations: 2.272 MB / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.002753/0.3844, allocations: 1.454 MB / 1.33 GB, free: 14.2 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002813/0.3847, allocations: 7.938 kB / 1.33 GB, free: 14.19 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0005629/0.3853, allocations: 175.3 kB / 1.33 GB, free: 14.02 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.00064/0.3859, allocations: 215 kB / 1.33 GB, free: 13.81 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005136/0.3864, allocations: 187.5 kB / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0006675/0.3871, allocations: 434.8 kB / 1.331 GB, free: 13.2 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002225/0.3873, allocations: 65.77 kB / 1.331 GB, free: 13.13 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003681/0.3877, allocations: 187.3 kB / 1.331 GB, free: 12.95 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003255/0.388, allocations: 203.2 kB / 1.331 GB, free: 12.75 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 6.452e-05/0.3881, allocations: 27.94 kB / 1.331 GB, free: 12.72 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002145/0.3883, allocations: 83.95 kB / 1.331 GB, free: 12.64 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001528/0.3884, allocations: 111.6 kB / 1.331 GB, free: 12.53 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001926/0.3886, allocations: 163 kB / 1.331 GB, free: 12.37 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0007365/0.3894, allocations: 0.4979 MB / 1.332 GB, free: 11.87 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.3894, allocations: 4 kB / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.573e-06/0.3894, allocations: 0 / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.563e-05/0.3894, allocations: 0 / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.00135/0.3907, allocations: 0.6634 MB / 1.332 GB, free: 11.17 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.653e-05/0.3908, allocations: 12.03 kB / 1.332 GB, free: 11.16 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.749e-05/0.3908, allocations: 46.72 kB / 1.333 GB, free: 11.1 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000116/0.391, allocations: 48.61 kB / 1.333 GB, free: 11.05 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006709/0.3916, allocations: 368.7 kB / 1.333 GB, free: 10.68 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.323e-05/0.3916, allocations: 16.12 kB / 1.333 GB, free: 10.66 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.32e-05/0.3917, allocations: 20 kB / 1.333 GB, free: 10.64 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000352/0.392, allocations: 168.2 kB / 1.333 GB, free: 10.46 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.392, allocations: 0 / 1.333 GB, free: 10.46 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.26e-05/0.3921, allocations: 8 kB / 1.333 GB, free: 10.45 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.66e-06/0.3921, allocations: 0 / 1.333 GB, free: 10.45 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002215/0.3923, allocations: 91.89 kB / 1.333 GB, free: 10.36 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001242/0.3935, allocations: 0.7534 MB / 1.334 GB, free: 9.559 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003408/0.3939, allocations: 133.5 kB / 1.334 GB, free: 9.41 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001122/0.394, allocations: 49.64 kB / 1.334 GB, free: 9.355 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.214e-05/0.394, allocations: 4 kB / 1.334 GB, free: 9.352 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002575/0.3943, allocations: 129 kB / 1.334 GB, free: 9.207 MB / 1.029 GB Notification: Performance of pre-optimization done (n=12): time 1.412e-06/0.3943, allocations: 0 / 1.334 GB, free: 9.207 MB / 1.029 GB Notification: Performance of matching and sorting (n=12): time 0.0005788/0.3949, allocations: 221.7 kB / 1.334 GB, free: 8.984 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.852e-05/0.3949, allocations: 106.8 kB / 1.335 GB, free: 8.855 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000786/0.3957, allocations: 0.6032 MB / 1.335 GB, free: 8.242 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.37e-05/0.3958, allocations: 33.7 kB / 1.335 GB, free: 8.203 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001809/0.3959, allocations: 204.4 kB / 1.335 GB, free: 7.996 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.577e-05/0.396, allocations: 43.78 kB / 1.335 GB, free: 7.953 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001225/0.3961, allocations: 73.64 kB / 1.335 GB, free: 7.875 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001749/0.3963, allocations: 354.7 kB / 1.336 GB, free: 7.52 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002135/0.3965, allocations: 108 kB / 1.336 GB, free: 7.414 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002712/0.3968, allocations: 169.8 kB / 1.336 GB, free: 7.227 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003687/0.3971, allocations: 201 kB / 1.336 GB, free: 7.02 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.267e-06/0.3971, allocations: 0 / 1.336 GB, free: 7.02 MB / 1.029 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006178/0.3978, allocations: 345.2 kB / 1.337 GB, free: 6.676 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/0.3978, allocations: 8.031 kB / 1.337 GB, free: 6.668 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.3978, allocations: 0 / 1.337 GB, free: 6.668 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.3978, allocations: 4 kB / 1.337 GB, free: 6.664 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002059/0.398, allocations: 47.91 kB / 1.337 GB, free: 6.617 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.216e-05/0.398, allocations: 4 kB / 1.337 GB, free: 6.613 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002291/0.3982, allocations: 39.86 kB / 1.337 GB, free: 6.574 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.986e-05/0.3983, allocations: 12 kB / 1.337 GB, free: 6.562 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.TTanBot.tab.nextTimeEvent,$whenCondition2,$PRE.TTanTop.tab.nextTimeEvent,$whenCondition1,TTanTop.tab.nextTimeEventScaled,$PRE.TTanTop.tab.nextTimeEventScaled,TTanTop.tab.nextTimeEvent,tanSta.hysCha.y,$PRE.tanSta.hysCha.y,TTanBot.tab.nextTimeEventScaled,$PRE.TTanBot.tab.nextTimeEventScaled,TTanBot.tab.nextTimeEvent,tanSta.hysEmp.y,$PRE.tanSta.hysEmp.y,tanSta.gre.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * 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.0002246/0.3985, allocations: 200 kB / 1.337 GB, free: 6.359 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.622e-05/0.3986, allocations: 43.72 kB / 1.337 GB, free: 6.316 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004214/0.399, allocations: 197 kB / 1.337 GB, free: 6.113 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.399, allocations: 4.031 kB / 1.337 GB, free: 6.109 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.399, allocations: 4 kB / 1.337 GB, free: 6.105 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.057e-06/0.399, allocations: 3.938 kB / 1.337 GB, free: 6.102 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003324/0.3993, allocations: 308.4 kB / 1.337 GB, free: 5.758 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-06/0.3993, allocations: 4 kB / 1.337 GB, free: 5.754 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.826e-05/0.3994, allocations: 11.94 kB / 1.337 GB, free: 5.742 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.063e-06/0.3994, allocations: 4 kB / 1.337 GB, free: 5.738 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.526e-05/0.3994, allocations: 7.984 kB / 1.337 GB, free: 5.73 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.3994, allocations: 0 / 1.337 GB, free: 5.73 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.546e-06/0.3994, allocations: 4 kB / 1.337 GB, free: 5.727 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000374/0.3998, allocations: 205.6 kB / 1.338 GB, free: 5.504 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000101/0.3999, allocations: 47.7 kB / 1.338 GB, free: 5.457 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.283e-05/0.3999, allocations: 8.125 kB / 1.338 GB, free: 5.449 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001266/0.4001, allocations: 19.98 kB / 1.338 GB, free: 5.43 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.992e-05/0.4002, allocations: 23.95 kB / 1.338 GB, free: 5.406 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.555e-05/0.4002, allocations: 4 kB / 1.338 GB, free: 5.402 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0004619/0.4006, allocations: 375 kB / 1.338 GB, free: 5.035 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4006, allocations: 0 / 1.338 GB, free: 5.035 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.000344/0.401, allocations: 75.83 kB / 1.338 GB, free: 4.961 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,tanSta.hysEmp.y,TTanBot.tab.nextTimeEvent,TTanBot.tab.nextTimeEventScaled,$whenCondition1,tanSta.hysCha.y,TTanTop.tab.nextTimeEvent,TTanTop.tab.nextTimeEventScaled) * Number of discrete states: 6 (tanSta.hysCha.y,TTanTop.tab.nextTimeEvent,TTanTop.tab.nextTimeEventScaled,tanSta.hysEmp.y,TTanBot.tab.nextTimeEvent,TTanBot.tab.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.002174/0.4031, allocations: 1.064 MB / 1.339 GB, free: 4.027 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004653/0.4036, allocations: 187.9 kB / 1.339 GB, free: 3.844 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.4036, allocations: 4.062 kB / 1.339 GB, free: 3.84 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001428/0.4038, allocations: 51.92 kB / 1.339 GB, free: 3.789 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005354/0.4043, allocations: 107.7 kB / 1.34 GB, free: 3.699 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00522/0.4095, allocations: 3.602 MB / 1.343 GB, free: 15.97 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006764/0.4102, allocations: 0.8107 MB / 1.344 GB, free: 15.13 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0001785/0.4104, allocations: 58.92 kB / 1.344 GB, free: 15.07 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002217/0.4106, allocations: 135.4 kB / 1.344 GB, free: 14.95 MB / 1.045 GB Notification: Performance of SimCode: time 1.042e-06/0.4106, allocations: 0 / 1.344 GB, free: 14.95 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0532/0.4638, allocations: 8.684 MB / 1.353 GB, free: 6.375 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.69/12.15, allocations: 8.703 kB / 1.353 GB, free: 6.367 MB / 1.045 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; mkfifo Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; head -c 1048576 < Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe >> ../files/Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat --tempDir=temp_Buildings_12_Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus.fmu > Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.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: 19.14484448893927]