Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001356/0.001356, allocations: 110.8 kB / 16.46 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001421/0.001421, allocations: 192.5 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.444/1.444, allocations: 225.6 MB / 247.8 MB, free: 13.93 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.565/2.565, allocations: 443.5 MB / 0.7287 GB, free: 13.21 MB / 0.5919 GB " [Timeout remaining time 177] 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.Cooling.Controls.Validation.TankStatus,fileNamePrefix="Buildings_10_Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_TankStatus",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus,fileNamePrefix="Buildings_10_Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_TankStatus",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001992/0.001992, allocations: 63.89 kB / 1.056 GB, free: 5.852 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8635/0.8655, allocations: 160.7 MB / 1.213 GB, free: 3.941 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.004009/0.8695, allocations: 2.268 MB / 1.215 GB, free: 2.164 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002413/0.8719, allocations: 1.285 MB / 1.216 GB, free: 1.152 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002525/0.8722, allocations: 8.188 kB / 1.216 GB, free: 1.148 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0005362/0.8727, allocations: 169.5 kB / 1.217 GB, free: 1.047 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0004387/0.8731, allocations: 174.4 kB / 1.217 GB, free: 0.9219 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006847/0.8738, allocations: 248.2 kB / 1.217 GB, free: 0.7461 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.000505/0.8743, allocations: 409.2 kB / 1.217 GB, free: 0.5039 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002024/0.8745, allocations: 76.84 kB / 1.217 GB, free: 468 kB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002625/0.8748, allocations: 177.7 kB / 1.218 GB, free: 360 kB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000241/0.875, allocations: 193.8 kB / 1.218 GB, free: 240 kB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 4.867e-05/0.8751, allocations: 23.56 kB / 1.218 GB, free: 240 kB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001805/0.8753, allocations: 77.19 kB / 1.218 GB, free: 216 kB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0001339/0.8754, allocations: 112.8 kB / 1.218 GB, free: 140 kB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001658/0.8756, allocations: 169.1 kB / 1.218 GB, free: 4 kB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0006578/0.8762, allocations: 0.4947 MB / 1.219 GB, free: 15.64 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.8762, allocations: 1.188 kB / 1.219 GB, free: 15.64 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.663e-06/0.8762, allocations: 0 / 1.219 GB, free: 15.64 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.373e-06/0.8762, allocations: 4 kB / 1.219 GB, free: 15.63 MB / 0.9356 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.001236/0.8775, allocations: 0.7283 MB / 1.219 GB, free: 14.98 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/0.8775, allocations: 10.03 kB / 1.219 GB, free: 14.98 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.271e-05/0.8776, allocations: 47.23 kB / 1.219 GB, free: 14.93 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001063/0.8777, allocations: 44.78 kB / 1.219 GB, free: 14.91 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006315/0.8783, allocations: 412.9 kB / 1.22 GB, free: 14.55 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.609e-05/0.8783, allocations: 18.67 kB / 1.22 GB, free: 14.54 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.761e-05/0.8784, allocations: 13.81 kB / 1.22 GB, free: 14.54 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003427/0.8787, allocations: 169.9 kB / 1.22 GB, free: 14.41 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.417e-05/0.8787, allocations: 8.984 kB / 1.22 GB, free: 14.4 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.031e-05/0.8787, allocations: 5.125 kB / 1.22 GB, free: 14.4 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-06/0.8787, allocations: 3.094 kB / 1.22 GB, free: 14.4 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002112/0.879, allocations: 89.5 kB / 1.22 GB, free: 14.36 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001247/0.8802, allocations: 0.7931 MB / 1.221 GB, free: 13.65 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003349/0.8805, allocations: 129 kB / 1.221 GB, free: 13.55 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001151/0.8807, allocations: 48.66 kB / 1.221 GB, free: 13.52 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.825e-05/0.8807, allocations: 6.188 kB / 1.221 GB, free: 13.52 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002589/0.8809, allocations: 132 kB / 1.221 GB, free: 13.4 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=12): time 1.443e-06/0.8809, allocations: 0 / 1.221 GB, free: 13.4 MB / 0.9356 GB Notification: Performance of matching and sorting (n=12): time 0.0005586/0.8815, allocations: 219.6 kB / 1.221 GB, free: 13.28 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.419e-05/0.8816, allocations: 105 kB / 1.222 GB, free: 13.16 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007403/0.8823, allocations: 0.5817 MB / 1.222 GB, free: 12.83 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.43e-05/0.8824, allocations: 36.98 kB / 1.222 GB, free: 12.79 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001783/0.8825, allocations: 193.8 kB / 1.222 GB, free: 12.62 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.901e-05/0.8826, allocations: 34.3 kB / 1.222 GB, free: 12.59 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001247/0.8827, allocations: 76.45 kB / 1.222 GB, free: 12.54 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001894/0.8829, allocations: 361.8 kB / 1.223 GB, free: 12.19 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002044/0.8831, allocations: 103 kB / 1.223 GB, free: 12.15 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000253/0.8834, allocations: 169.8 kB / 1.223 GB, free: 12.03 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000321/0.8837, allocations: 191.1 kB / 1.223 GB, free: 11.92 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.171e-06/0.8837, allocations: 5.188 kB / 1.223 GB, free: 11.91 MB / 0.9356 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006138/0.8843, allocations: 345.7 kB / 1.224 GB, free: 11.74 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/0.8843, allocations: 6.281 kB / 1.224 GB, free: 11.74 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.8843, allocations: 1.406 kB / 1.224 GB, free: 11.74 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.247e-05/0.8843, allocations: 6.609 kB / 1.224 GB, free: 11.74 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001988/0.8845, allocations: 48.7 kB / 1.224 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.467e-06/0.8846, allocations: 6.5 kB / 1.224 GB, free: 11.72 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002347/0.8848, allocations: 36.42 kB / 1.224 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.526e-05/0.8848, allocations: 17.98 kB / 1.224 GB, free: 11.7 MB / 0.9356 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.0002228/0.885, allocations: 194.4 kB / 1.224 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.162e-05/0.8851, allocations: 40.88 kB / 1.224 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.374e-05/0.8852, allocations: 40.89 kB / 1.224 GB, free: 11.49 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.8852, allocations: 9.359 kB / 1.224 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.8852, allocations: 1.25 kB / 1.224 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.8852, allocations: 0 / 1.224 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000369/0.8856, allocations: 334.5 kB / 1.224 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.8856, allocations: 7.938 kB / 1.224 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.724e-05/0.8856, allocations: 10.98 kB / 1.224 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.8856, allocations: 1.344 kB / 1.224 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.658e-05/0.8856, allocations: 5.5 kB / 1.224 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.8857, allocations: 1.312 kB / 1.224 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.8857, allocations: 1.219 kB / 1.224 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000371/0.886, allocations: 212.5 kB / 1.224 GB, free: 11.01 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000135/0.8862, allocations: 124.9 kB / 1.225 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.262e-05/0.8862, allocations: 7.375 kB / 1.225 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001301/0.8863, allocations: 21.34 kB / 1.225 GB, free: 10.87 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.022e-05/0.8864, allocations: 16.36 kB / 1.225 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.842e-05/0.8864, allocations: 13.3 kB / 1.225 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0004087/0.8868, allocations: 354.5 kB / 1.225 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of sort global known variables: time 9e-08/0.8868, allocations: 3.938 kB / 1.225 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003248/0.8872, allocations: 76.72 kB / 1.225 GB, free: 10.63 MB / 0.9356 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 (TTanTop.tab.nextTimeEventScaled,tanSta.hysCha.y,TTanTop.tab.nextTimeEvent,TTanBot.tab.nextTimeEventScaled,tanSta.hysEmp.y,TTanBot.tab.nextTimeEvent) * 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.002119/0.8893, allocations: 1.061 MB / 1.226 GB, free: 9.855 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004712/0.8898, allocations: 185.5 kB / 1.226 GB, free: 9.781 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.8898, allocations: 0 / 1.226 GB, free: 9.781 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001421/0.8899, allocations: 58.36 kB / 1.226 GB, free: 9.754 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005409/0.8904, allocations: 110.1 kB / 1.226 GB, free: 9.699 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004774/0.8952, allocations: 3.517 MB / 1.23 GB, free: 6.523 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004481/0.8957, allocations: 0.8029 MB / 1.231 GB, free: 5.695 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0001918/0.8959, allocations: 50.95 kB / 1.231 GB, free: 5.641 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001972/0.8961, allocations: 131.3 kB / 1.231 GB, free: 5.512 MB / 0.9356 GB Notification: Performance of SimCode: time 9.21e-07/0.8961, allocations: 0 / 1.231 GB, free: 5.512 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03578/0.9318, allocations: 8.459 MB / 1.239 GB, free: 13.16 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.074/10.01, allocations: 6.062 kB / 1.239 GB, free: 13.16 MB / 0.9512 GB " [Timeout remaining time 290] (rm -f Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; mkfifo Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; head -c 1048576 < Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe >> ../files/Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat --tempDir=temp_Buildings_10_Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_TankStatus_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_TankStatus.fmu > Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_TankStatus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Experimental.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: 15.853924593888223]