Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Templates.Components.Validation.Tanks.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.Templates.Components.Validation.Tanks,fileNamePrefix="Buildings_latest_Buildings_Templates_Components_Validation_Tanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Components.Validation.Tanks,fileNamePrefix="Buildings_latest_Buildings_Templates_Components_Validation_Tanks",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.004668/0.004668, allocations: 99.67 kB / 15.73 MB, free: 6.043 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.001298/0.001298, allocations: 197.9 kB / 16.68 MB, free: 5.965 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.425/1.425, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.902/2.902, allocations: 482.4 MB / 0.7548 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001887/0.001887, allocations: 67.89 kB / 1.083 GB, free: 12.61 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2751/0.277, allocations: 162.2 MB / 1.241 GB, free: 10.27 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Validation.Tanks): time 0.5452/0.8223, allocations: 41.67 MB / 1.282 GB, free: 6.078 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.01567/0.838, allocations: 11.15 MB / 1.293 GB, free: 14.09 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0014/0.8395, allocations: 47.56 kB / 1.293 GB, free: 14.07 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001152/0.8407, allocations: 427 kB / 1.293 GB, free: 13.8 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.002862/0.8435, allocations: 1.156 MB / 1.295 GB, free: 13.12 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.001839/0.8454, allocations: 0.7275 MB / 1.295 GB, free: 12.72 MB / 1.029 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/Templates/Components/Tanks/Buffer.mo:9:3-12:41:writable] Warning: Parameter noTan.V has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. Notification: Performance of NFFlatten.flatten: time 0.002476/0.8479, allocations: 2.069 MB / 1.297 GB, free: 11.73 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009527/0.8488, allocations: 0.6811 MB / 1.298 GB, free: 11.41 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002045/0.8509, allocations: 0.9656 MB / 1.299 GB, free: 10.95 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007316/0.8516, allocations: 0.5581 MB / 1.299 GB, free: 10.68 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 9.701e-05/0.8517, allocations: 61.88 kB / 1.3 GB, free: 10.68 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001308/0.8531, allocations: 0.6245 MB / 1.3 GB, free: 10.44 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0002028/0.8533, allocations: 171.1 kB / 1.3 GB, free: 10.34 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0004147/0.8537, allocations: 406.2 kB / 1.301 GB, free: 10.1 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.001708/0.8554, allocations: 1.264 MB / 1.302 GB, free: 9.637 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.8554, allocations: 0 / 1.302 GB, free: 9.637 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.303e-06/0.8554, allocations: 4 kB / 1.302 GB, free: 9.633 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.62e-05/0.8555, allocations: 1.438 kB / 1.302 GB, free: 9.633 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: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.001684/0.8571, allocations: 1.085 MB / 1.303 GB, free: 8.832 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.271e-05/0.8572, allocations: 9.562 kB / 1.303 GB, free: 8.832 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001121/0.8573, allocations: 93.17 kB / 1.303 GB, free: 8.762 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002169/0.8575, allocations: 85.53 kB / 1.303 GB, free: 8.723 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001121/0.8587, allocations: 0.7024 MB / 1.304 GB, free: 8.27 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.393e-05/0.8587, allocations: 37.25 kB / 1.304 GB, free: 8.254 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.317e-05/0.8588, allocations: 55.33 kB / 1.304 GB, free: 8.234 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009328/0.8597, allocations: 0.5585 MB / 1.304 GB, free: 7.945 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.924e-05/0.8598, allocations: 1.375 kB / 1.304 GB, free: 7.945 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.072e-05/0.8598, allocations: 20.84 kB / 1.305 GB, free: 7.93 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.175e-05/0.8598, allocations: 14.34 kB / 1.305 GB, free: 7.93 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000678/0.8605, allocations: 385.7 kB / 1.305 GB, free: 7.789 MB / 1.029 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003031/0.8636, allocations: 2.678 MB / 1.308 GB, free: 5.727 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005509/0.8641, allocations: 234.5 kB / 1.308 GB, free: 5.633 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002124/0.8643, allocations: 131.2 kB / 1.308 GB, free: 5.578 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002165/0.8665, allocations: 1.808 MB / 1.31 GB, free: 3.871 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.116e-05/0.8666, allocations: 40.55 kB / 1.31 GB, free: 3.824 MB / 1.029 GB Notification: Performance of pre-optimization done (n=20): time 1.422e-06/0.8666, allocations: 0 / 1.31 GB, free: 3.824 MB / 1.029 GB Notification: Performance of matching and sorting (n=20): time 0.0006467/0.8672, allocations: 323.1 kB / 1.31 GB, free: 3.684 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.24e-05/0.8673, allocations: 58.09 kB / 1.31 GB, free: 3.617 MB / 1.029 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/Templates/Components/Tanks/Buffer.mo:9:3-12:41:writable] Warning: Parameter noTan.V has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008029/0.8681, allocations: 0.6424 MB / 1.311 GB, free: 3.328 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.338e-05/0.8681, allocations: 35.77 kB / 1.311 GB, free: 3.289 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002976/0.8684, allocations: 355.1 kB / 1.311 GB, free: 3.004 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 7.609e-05/0.8685, allocations: 76.92 kB / 1.311 GB, free: 2.945 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001207/0.8686, allocations: 80.73 kB / 1.311 GB, free: 2.898 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001827/0.8688, allocations: 368.1 kB / 1.312 GB, free: 2.562 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001775/0.869, allocations: 91.45 kB / 1.312 GB, free: 2.531 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002995/0.8693, allocations: 236 kB / 1.312 GB, free: 2.32 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004786/0.8698, allocations: 342.2 kB / 1.312 GB, free: 2.051 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.586e-06/0.8698, allocations: 1.281 kB / 1.312 GB, free: 2.051 MB / 1.029 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006635/0.8705, allocations: 414 kB / 1.313 GB, free: 1.863 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/0.8705, allocations: 11.75 kB / 1.313 GB, free: 1.859 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.8705, allocations: 5.094 kB / 1.313 GB, free: 1.859 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.604e-05/0.8706, allocations: 10.31 kB / 1.313 GB, free: 1.855 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002435/0.8708, allocations: 70.58 kB / 1.313 GB, free: 1.852 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.534e-05/0.8708, allocations: 14.53 kB / 1.313 GB, free: 1.848 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003226/0.8712, allocations: 60.27 kB / 1.313 GB, free: 1.805 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.575e-05/0.8712, allocations: 17.78 kB / 1.313 GB, free: 1.805 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 1 (intFlo.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 42 * 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.0002674/0.8715, allocations: 213.9 kB / 1.313 GB, free: 1.633 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001164/0.8716, allocations: 72.61 kB / 1.313 GB, free: 1.594 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006133/0.8722, allocations: 331.2 kB / 1.313 GB, free: 1.445 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.1e-05/0.8722, allocations: 6.266 kB / 1.313 GB, free: 1.441 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.8722, allocations: 1.344 kB / 1.313 GB, free: 1.441 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005152/0.8728, allocations: 486.5 kB / 1.314 GB, free: 1.031 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001399/0.8742, allocations: 0.9614 MB / 1.315 GB, free: 452 kB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.8742, allocations: 7.625 kB / 1.315 GB, free: 448 kB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001922/0.8744, allocations: 43.88 kB / 1.315 GB, free: 444 kB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.958e-06/0.8744, allocations: 2.625 kB / 1.315 GB, free: 444 kB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.516e-05/0.8744, allocations: 7.922 kB / 1.315 GB, free: 440 kB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.43e-06/0.8744, allocations: 3.531 kB / 1.315 GB, free: 440 kB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.8745, allocations: 5.469 kB / 1.315 GB, free: 436 kB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007886/0.8752, allocations: 0.5422 MB / 1.315 GB, free: 100 kB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002418/0.8755, allocations: 177.3 kB / 1.316 GB, free: 15.94 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.914e-05/0.8756, allocations: 6.953 kB / 1.316 GB, free: 15.94 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002874/0.8759, allocations: 10.06 kB / 1.316 GB, free: 15.93 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.739e-05/0.8759, allocations: 22.34 kB / 1.316 GB, free: 15.93 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.744e-05/0.876, allocations: 14.7 kB / 1.316 GB, free: 15.92 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0005898/0.8766, allocations: 470.3 kB / 1.316 GB, free: 15.71 MB / 1.045 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8766, allocations: 0 / 1.316 GB, free: 15.71 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0006968/0.8773, allocations: 219 kB / 1.316 GB, free: 15.66 MB / 1.045 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (tan.vol.dynBal.U,intFlo.y) * 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 (23): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.001624/0.8789, allocations: 1.292 MB / 1.317 GB, free: 14.73 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0004983/0.8794, allocations: 255.6 kB / 1.318 GB, free: 14.66 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 6.352e-06/0.8794, allocations: 4.062 kB / 1.318 GB, free: 14.65 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0002039/0.8797, allocations: 119.9 kB / 1.318 GB, free: 14.61 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002004/0.8817, allocations: 436.5 kB / 1.318 GB, free: 14.49 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006734/0.8884, allocations: 4.957 MB / 1.323 GB, free: 11.55 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005446/0.889, allocations: 0.9053 MB / 1.324 GB, free: 10.83 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0004937/0.8895, allocations: 138.7 kB / 1.324 GB, free: 10.79 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003288/0.8898, allocations: 236.6 kB / 1.324 GB, free: 10.62 MB / 1.045 GB Notification: Performance of SimCode: time 2.81e-07/0.8898, allocations: 4 kB / 1.324 GB, free: 10.62 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0483/0.9381, allocations: 20.09 MB / 1.344 GB, free: 4.297 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.884/9.822, allocations: 8.672 kB / 1.344 GB, free: 4.293 MB / 1.045 GB (rm -f Buildings_latest_Buildings.Templates.Components.Validation.Tanks.pipe ; mkfifo Buildings_latest_Buildings.Templates.Components.Validation.Tanks.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Components.Validation.Tanks.pipe >> ../files/Buildings_latest_Buildings.Templates.Components.Validation.Tanks.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Templates.Components.Validation.Tanks_res.csv --start-time 0 --stop-time 500 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.2 Buildings_latest_Buildings_Templates_Components_Validation_Tanks.fmu > Buildings_latest_Buildings.Templates.Components.Validation.Tanks.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Templates.Components.Validation.Tanks_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Components_Validation_Tanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Components.Validation.Tanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches