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) 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 10.1.1-maint.10.0.x/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008759/0.00876, allocations: 97.42 kB / 15.73 MB, free: 5.988 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.001881/0.001881, allocations: 185.1 kB / 16.67 MB, free: 5.918 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.54/1.54, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.703/2.703, allocations: 437 MB / 0.7105 GB, free: 4.992 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002045/0.002046, allocations: 63.89 kB / 1.018 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3115/0.3136, allocations: 151.6 MB / 1.166 GB, free: 7.379 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.004525/0.3182, allocations: 2.255 MB / 1.168 GB, free: 5.102 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002485/0.3207, allocations: 1.267 MB / 1.17 GB, free: 3.824 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002607/0.321, allocations: 11.94 kB / 1.17 GB, free: 3.812 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0005295/0.3216, allocations: 171.3 kB / 1.17 GB, free: 3.645 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0004335/0.322, allocations: 163.2 kB / 1.17 GB, free: 3.484 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006217/0.3226, allocations: 250.7 kB / 1.17 GB, free: 3.242 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0005066/0.3231, allocations: 410.9 kB / 1.171 GB, free: 2.84 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000248/0.3234, allocations: 108.2 kB / 1.171 GB, free: 2.734 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002433/0.3237, allocations: 171.3 kB / 1.171 GB, free: 2.566 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000251/0.3239, allocations: 179.2 kB / 1.171 GB, free: 2.391 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 5.012e-05/0.324, allocations: 31.98 kB / 1.171 GB, free: 2.359 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001702/0.3241, allocations: 71.98 kB / 1.171 GB, free: 2.289 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0001469/0.3243, allocations: 115.6 kB / 1.171 GB, free: 2.176 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001693/0.3245, allocations: 155 kB / 1.171 GB, free: 2.023 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0006236/0.3251, allocations: 0.4903 MB / 1.172 GB, free: 1.531 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.3251, allocations: 0 / 1.172 GB, free: 1.531 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.252e-06/0.3251, allocations: 4 kB / 1.172 GB, free: 1.527 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.335e-05/0.3251, allocations: 0 / 1.172 GB, free: 1.527 MB / 0.92 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.001295/0.3264, allocations: 0.727 MB / 1.173 GB, free: 0.75 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.665e-05/0.3265, allocations: 12.03 kB / 1.173 GB, free: 0.7383 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.292e-05/0.3266, allocations: 46.73 kB / 1.173 GB, free: 0.6836 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.738e-05/0.3267, allocations: 44.66 kB / 1.173 GB, free: 0.6406 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005943/0.3273, allocations: 414.6 kB / 1.173 GB, free: 200 kB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.673e-05/0.3273, allocations: 16.12 kB / 1.173 GB, free: 184 kB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.285e-05/0.3274, allocations: 16 kB / 1.173 GB, free: 168 kB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003793/0.3277, allocations: 185.1 kB / 1.173 GB, free: 15.97 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.3278, allocations: 0 / 1.173 GB, free: 15.97 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.102e-05/0.3278, allocations: 4 kB / 1.173 GB, free: 15.96 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-06/0.3278, allocations: 3.938 kB / 1.173 GB, free: 15.96 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002123/0.328, allocations: 91.89 kB / 1.173 GB, free: 15.87 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001163/0.3292, allocations: 0.7933 MB / 1.174 GB, free: 15.02 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003385/0.3295, allocations: 137.4 kB / 1.174 GB, free: 14.87 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001229/0.3297, allocations: 49.7 kB / 1.174 GB, free: 14.81 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.993e-05/0.3297, allocations: 0 / 1.174 GB, free: 14.81 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002861/0.33, allocations: 137 kB / 1.174 GB, free: 14.66 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=12): time 1.253e-06/0.33, allocations: 0 / 1.174 GB, free: 14.66 MB / 0.9356 GB Notification: Performance of matching and sorting (n=12): time 0.0005546/0.3306, allocations: 221.6 kB / 1.175 GB, free: 14.44 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.042e-05/0.3307, allocations: 106.8 kB / 1.175 GB, free: 14.31 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007101/0.3314, allocations: 0.5682 MB / 1.175 GB, free: 13.73 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.322e-05/0.3314, allocations: 37.7 kB / 1.175 GB, free: 13.69 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001786/0.3316, allocations: 200.5 kB / 1.176 GB, free: 13.49 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.69e-05/0.3317, allocations: 31.73 kB / 1.176 GB, free: 13.46 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001265/0.3318, allocations: 81.64 kB / 1.176 GB, free: 13.38 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001721/0.332, allocations: 354.7 kB / 1.176 GB, free: 13.02 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000197/0.3322, allocations: 104.1 kB / 1.176 GB, free: 12.92 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002452/0.3324, allocations: 175 kB / 1.176 GB, free: 12.73 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003101/0.3328, allocations: 188 kB / 1.176 GB, free: 12.53 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.3328, allocations: 4 kB / 1.176 GB, free: 12.52 MB / 0.9356 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005685/0.3333, allocations: 344.1 kB / 1.177 GB, free: 12.18 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.842e-05/0.3334, allocations: 4.203 kB / 1.177 GB, free: 12.18 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.313e-06/0.3334, allocations: 11.94 kB / 1.177 GB, free: 12.17 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.697e-05/0.3334, allocations: 0 / 1.177 GB, free: 12.17 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001939/0.3336, allocations: 47.91 kB / 1.177 GB, free: 12.12 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.3336, allocations: 4 kB / 1.177 GB, free: 12.12 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002036/0.3338, allocations: 43.86 kB / 1.177 GB, free: 12.07 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.051e-05/0.3339, allocations: 8 kB / 1.177 GB, free: 12.07 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.0002269/0.3341, allocations: 204 kB / 1.177 GB, free: 11.86 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.107e-05/0.3342, allocations: 43.7 kB / 1.177 GB, free: 11.82 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.244e-05/0.3343, allocations: 39.38 kB / 1.177 GB, free: 11.78 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.3343, allocations: 4 kB / 1.177 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.3343, allocations: 0 / 1.177 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.3343, allocations: 0 / 1.177 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003335/0.3346, allocations: 333.3 kB / 1.177 GB, free: 11.4 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.3347, allocations: 0 / 1.177 GB, free: 11.4 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-05/0.3347, allocations: 11.94 kB / 1.177 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.3347, allocations: 48 / 1.177 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.104e-05/0.3347, allocations: 15.97 kB / 1.177 GB, free: 11.37 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.3347, allocations: 4 kB / 1.177 GB, free: 11.37 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.3348, allocations: 3.984 kB / 1.177 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003685/0.3351, allocations: 213.5 kB / 1.178 GB, free: 11.13 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001084/0.3352, allocations: 116.9 kB / 1.178 GB, free: 11 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.111e-05/0.3353, allocations: 11.98 kB / 1.178 GB, free: 10.99 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001229/0.3354, allocations: 15.98 kB / 1.178 GB, free: 10.97 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.993e-05/0.3355, allocations: 19.97 kB / 1.178 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.752e-05/0.3355, allocations: 8 kB / 1.178 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0004256/0.336, allocations: 367 kB / 1.178 GB, free: 10.59 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.21e-07/0.336, allocations: 0 / 1.178 GB, free: 10.59 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003113/0.3363, allocations: 71.83 kB / 1.178 GB, free: 10.52 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.002099/0.3384, allocations: 1.07 MB / 1.179 GB, free: 9.582 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004486/0.3389, allocations: 195.8 kB / 1.18 GB, free: 9.391 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.3389, allocations: 0 / 1.18 GB, free: 9.391 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001476/0.339, allocations: 64.11 kB / 1.18 GB, free: 9.328 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005079/0.3395, allocations: 93.42 kB / 1.18 GB, free: 9.246 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00454/0.3441, allocations: 3.523 MB / 1.183 GB, free: 5.602 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000464/0.3446, allocations: 0.8029 MB / 1.184 GB, free: 4.773 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0001674/0.3448, allocations: 58.92 kB / 1.184 GB, free: 4.715 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000198/0.345, allocations: 131.3 kB / 1.184 GB, free: 4.586 MB / 0.9356 GB Notification: Performance of SimCode: time 8.51e-07/0.345, allocations: 0 / 1.184 GB, free: 4.586 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03697/0.3819, allocations: 8.408 MB / 1.192 GB, free: 12.38 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.398/8.78, allocations: 6.797 kB / 1.192 GB, free: 12.38 MB / 0.9512 GB (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 & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_TankStatus.fmu > Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_TankStatus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches