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.001573/0.001573, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001603/0.001603, allocations: 190.9 kB / 16.53 MB, free: 6.664 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.438/1.438, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.925/2.925, allocations: 482.6 MB / 0.7549 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001967/0.001967, allocations: 67.67 kB / 0.9242 GB, free: 29.31 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2744/0.2764, allocations: 162.3 MB / 1.083 GB, free: 12.89 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Validation.Tanks): time 0.04543/0.3219, allocations: 41.67 MB / 1.123 GB, free: 3.074 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01571/0.3376, allocations: 11.16 MB / 1.134 GB, free: 7.879 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001366/0.339, allocations: 51.69 kB / 1.134 GB, free: 7.828 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.001087/0.3401, allocations: 421.2 kB / 1.135 GB, free: 7.414 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.002864/0.343, allocations: 1.154 MB / 1.136 GB, free: 6.258 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.001761/0.3448, allocations: 0.7273 MB / 1.137 GB, free: 5.535 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.00247/0.3472, allocations: 2.062 MB / 1.139 GB, free: 3.469 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009705/0.3482, allocations: 0.6806 MB / 1.139 GB, free: 2.773 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002191/0.3504, allocations: 0.9648 MB / 1.14 GB, free: 1.809 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007137/0.3512, allocations: 0.5561 MB / 1.141 GB, free: 1.25 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0001019/0.3513, allocations: 64 kB / 1.141 GB, free: 1.188 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001334/0.3526, allocations: 0.6239 MB / 1.141 GB, free: 0.5625 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.000189/0.3528, allocations: 175.4 kB / 1.142 GB, free: 400 kB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.000434/0.3532, allocations: 402.2 kB / 1.142 GB, free: 15.99 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.001604/0.3549, allocations: 1.239 MB / 1.143 GB, free: 14.75 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.3549, allocations: 4 kB / 1.143 GB, free: 14.75 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.093e-06/0.3549, allocations: 0 / 1.143 GB, free: 14.75 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 9.498e-06/0.3549, allocations: 0 / 1.143 GB, free: 14.75 MB / 0.9044 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.00163/0.3565, allocations: 1.051 MB / 1.144 GB, free: 13.65 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/0.3566, allocations: 12.03 kB / 1.144 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000112/0.3567, allocations: 90.7 kB / 1.144 GB, free: 13.54 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002234/0.3569, allocations: 84 kB / 1.144 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001034/0.358, allocations: 0.6533 MB / 1.145 GB, free: 12.77 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.545e-05/0.358, allocations: 41.12 kB / 1.145 GB, free: 12.73 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.725e-05/0.3581, allocations: 52 kB / 1.145 GB, free: 12.68 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009354/0.3591, allocations: 0.5586 MB / 1.146 GB, free: 12.08 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.798e-05/0.3591, allocations: 3.938 kB / 1.146 GB, free: 12.08 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.091e-05/0.3591, allocations: 24 kB / 1.146 GB, free: 12.05 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.446e-05/0.3592, allocations: 12 kB / 1.146 GB, free: 12.04 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007047/0.3599, allocations: 387.7 kB / 1.146 GB, free: 11.66 MB / 0.9044 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.003035/0.3629, allocations: 2.675 MB / 1.149 GB, free: 8.809 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005568/0.3635, allocations: 250.5 kB / 1.149 GB, free: 8.555 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002164/0.3637, allocations: 124.7 kB / 1.149 GB, free: 8.43 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002238/0.366, allocations: 1.811 MB / 1.151 GB, free: 6.352 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.148e-05/0.366, allocations: 42.56 kB / 1.151 GB, free: 6.301 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=20): time 2.194e-06/0.366, allocations: 0 / 1.151 GB, free: 6.301 MB / 0.9044 GB Notification: Performance of matching and sorting (n=20): time 0.000667/0.3667, allocations: 318.3 kB / 1.151 GB, free: 5.984 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.981e-05/0.3667, allocations: 55.34 kB / 1.151 GB, free: 5.918 MB / 0.9044 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.0008169/0.3676, allocations: 0.641 MB / 1.152 GB, free: 5.266 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 3.115e-05/0.3676, allocations: 29.7 kB / 1.152 GB, free: 5.23 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002981/0.3679, allocations: 359.3 kB / 1.152 GB, free: 4.875 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 6.901e-05/0.368, allocations: 67.02 kB / 1.152 GB, free: 4.809 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001258/0.3681, allocations: 85.59 kB / 1.152 GB, free: 4.719 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001848/0.3683, allocations: 370.8 kB / 1.153 GB, free: 4.348 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001824/0.3685, allocations: 87.94 kB / 1.153 GB, free: 4.262 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000304/0.3688, allocations: 237.7 kB / 1.153 GB, free: 3.965 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004915/0.3693, allocations: 339 kB / 1.153 GB, free: 3.57 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.736e-06/0.3693, allocations: 7.938 kB / 1.153 GB, free: 3.562 MB / 0.9044 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006877/0.37, allocations: 405.1 kB / 1.154 GB, free: 3.16 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/0.37, allocations: 8 kB / 1.154 GB, free: 3.152 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.245e-06/0.3701, allocations: 4 kB / 1.154 GB, free: 3.148 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.06e-05/0.3701, allocations: 8 kB / 1.154 GB, free: 3.141 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002622/0.3703, allocations: 71.84 kB / 1.154 GB, free: 3.07 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.983e-05/0.3704, allocations: 7.984 kB / 1.154 GB, free: 3.062 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003285/0.3707, allocations: 55.38 kB / 1.154 GB, free: 3.008 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.59e-05/0.3708, allocations: 24.3 kB / 1.154 GB, free: 2.984 MB / 0.9044 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.0002499/0.371, allocations: 209.7 kB / 1.154 GB, free: 2.77 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001164/0.3711, allocations: 71.09 kB / 1.154 GB, free: 2.699 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006362/0.3718, allocations: 341 kB / 1.154 GB, free: 2.355 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.134e-06/0.3718, allocations: 0 / 1.154 GB, free: 2.355 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.3718, allocations: 4 kB / 1.154 GB, free: 2.352 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005297/0.3723, allocations: 487.8 kB / 1.155 GB, free: 1.809 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001383/0.3737, allocations: 0.9679 MB / 1.156 GB, free: 0.7734 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.3738, allocations: 7.938 kB / 1.156 GB, free: 0.7656 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001989/0.374, allocations: 47.91 kB / 1.156 GB, free: 0.7188 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.374, allocations: 0 / 1.156 GB, free: 0.7188 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.054e-05/0.374, allocations: 4 kB / 1.156 GB, free: 0.7148 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.338e-06/0.374, allocations: 4 kB / 1.156 GB, free: 0.7109 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.374, allocations: 4.125 kB / 1.156 GB, free: 0.707 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008048/0.3748, allocations: 0.5388 MB / 1.156 GB, free: 144 kB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002295/0.3751, allocations: 180.3 kB / 1.157 GB, free: 15.94 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.394e-05/0.3752, allocations: 4.062 kB / 1.157 GB, free: 15.94 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002872/0.3755, allocations: 16.03 kB / 1.157 GB, free: 15.92 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.427e-05/0.3755, allocations: 19.97 kB / 1.157 GB, free: 15.9 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.934e-05/0.3755, allocations: 11.98 kB / 1.157 GB, free: 15.89 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0005677/0.3761, allocations: 467 kB / 1.157 GB, free: 15.44 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3761, allocations: 0 / 1.157 GB, free: 15.44 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0006949/0.3768, allocations: 215.7 kB / 1.157 GB, free: 15.23 MB / 0.92 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.001613/0.3784, allocations: 1.289 MB / 1.159 GB, free: 13.91 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.000532/0.379, allocations: 261.6 kB / 1.159 GB, free: 13.65 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 6.162e-06/0.379, allocations: 4 kB / 1.159 GB, free: 13.65 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0002135/0.3792, allocations: 125 kB / 1.159 GB, free: 13.53 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002023/0.3813, allocations: 442.3 kB / 1.159 GB, free: 13.11 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006617/0.3879, allocations: 5.125 MB / 1.164 GB, free: 7.77 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005355/0.3884, allocations: 0.9172 MB / 1.165 GB, free: 6.824 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0005003/0.3889, allocations: 129.7 kB / 1.165 GB, free: 6.695 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003147/0.3893, allocations: 239.3 kB / 1.166 GB, free: 6.461 MB / 0.92 GB Notification: Performance of SimCode: time 5.41e-07/0.3893, allocations: 0 / 1.166 GB, free: 6.461 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04993/0.4392, allocations: 19.95 MB / 1.185 GB, free: 2.777 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.125/8.564, allocations: 4.531 kB / 1.185 GB, free: 2.773 MB / 0.9356 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