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.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.0009662/0.0009662, allocations: 93.06 kB / 19.65 MB, free: 272 kB / 13.93 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.0009907/0.0009907, allocations: 169 kB / 23.02 MB, free: 1.543 MB / 18.57 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 0.9667/0.9667, allocations: 177.1 MB / 203.4 MB, free: 5.648 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.168/2.168, allocations: 429.5 MB / 0.6733 GB, free: 4.012 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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: translateModel(Buildings.Templates.Components.Validation.Tanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|intFlo.y|tan.V|sou.T|tan.sta_b.T|noTan.sta_b.T",fileNamePrefix="Buildings_latest_Buildings.Templates.Components.Validation.Tanks") translateModel(Buildings.Templates.Components.Validation.Tanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|intFlo.y|tan.V|sou.T|tan.sta_b.T|noTan.sta_b.T",fileNamePrefix="Buildings_latest_Buildings.Templates.Components.Validation.Tanks") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.352e-06/1.352e-06, allocations: 0 / 0.8781 GB, free: 6.328 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.546e-05/1.681e-05, allocations: 5.266 kB / 0.8781 GB, free: 6.324 MB / 0.8386 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 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) as default value. Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Validation.Tanks): time 0.009964/0.009981, allocations: 12.38 MB / 0.8902 GB, free: 9.922 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.006421/0.0164, allocations: 5.348 MB / 0.8954 GB, free: 4.566 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006797/0.01708, allocations: 67.44 kB / 0.8955 GB, free: 4.5 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 0.0005685/0.01765, allocations: 246.1 kB / 0.8957 GB, free: 4.258 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 0.001399/0.01905, allocations: 0.8818 MB / 0.8966 GB, free: 3.371 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.000886/0.01994, allocations: 0.6471 MB / 0.8972 GB, free: 2.723 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.001854/0.02179, allocations: 2.045 MB / 0.8992 GB, free: 0.6719 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006655/0.02245, allocations: 0.5083 MB / 0.8997 GB, free: 148 kB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001305/0.02376, allocations: 0.9104 MB / 0.9006 GB, free: 15.25 MB / 0.8698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005683/0.02433, allocations: 0.514 MB / 0.9011 GB, free: 14.73 MB / 0.8698 GB Notification: Performance of NFPackage.collectConstants: time 7.444e-05/0.0244, allocations: 64 kB / 0.9012 GB, free: 14.67 MB / 0.8698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004614/0.02486, allocations: 279.4 kB / 0.9015 GB, free: 14.39 MB / 0.8698 GB Notification: Performance of NFScalarize.scalarize: time 0.0001483/0.02501, allocations: 199.2 kB / 0.9016 GB, free: 14.2 MB / 0.8698 GB Notification: Performance of NFVerifyModel.verify: time 0.0002144/0.02523, allocations: 275.3 kB / 0.9019 GB, free: 13.93 MB / 0.8698 GB Notification: Performance of NFConvertDAE.convert: time 0.000796/0.02602, allocations: 0.7436 MB / 0.9026 GB, free: 13.18 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.02603, allocations: 0 / 0.9026 GB, free: 13.18 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.092e-06/0.02603, allocations: 4 kB / 0.9026 GB, free: 13.18 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 8.395e-06/0.02604, allocations: 0 / 0.9026 GB, free: 13.18 MB / 0.8698 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.001142/0.02718, allocations: 1.059 MB / 0.9037 GB, free: 12.08 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.02722, allocations: 16.03 kB / 0.9037 GB, free: 12.07 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001958/0.02741, allocations: 124.4 kB / 0.9038 GB, free: 11.95 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007646/0.02818, allocations: 0.65 MB / 0.9044 GB, free: 11.27 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.517e-05/0.0282, allocations: 41.38 kB / 0.9045 GB, free: 11.23 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.043e-05/0.02826, allocations: 52.38 kB / 0.9045 GB, free: 11.18 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005362/0.0288, allocations: 0.5348 MB / 0.905 GB, free: 10.59 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.642e-05/0.02882, allocations: 7.938 kB / 0.9051 GB, free: 10.58 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.176e-05/0.02885, allocations: 16 kB / 0.9051 GB, free: 10.56 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.719e-05/0.02889, allocations: 20 kB / 0.9051 GB, free: 10.54 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002917/0.02918, allocations: 185.7 kB / 0.9053 GB, free: 10.36 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001748/0.03092, allocations: 2.326 MB / 0.9075 GB, free: 7.953 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000333/0.03126, allocations: 147.2 kB / 0.9077 GB, free: 7.797 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.859e-05/0.03135, allocations: 67.53 kB / 0.9077 GB, free: 7.727 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007918/0.03214, allocations: 0.7108 MB / 0.9084 GB, free: 6.996 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.574e-05/0.03216, allocations: 41.39 kB / 0.9085 GB, free: 6.945 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=20): time 1.323e-06/0.03217, allocations: 4 kB / 0.9085 GB, free: 6.941 MB / 0.8698 GB Notification: Performance of matching and sorting (n=20): time 0.0003262/0.03249, allocations: 199.5 kB / 0.9087 GB, free: 6.742 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.48e-05/0.03252, allocations: 55.34 kB / 0.9087 GB, free: 6.676 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004386/0.03295, allocations: 0.4986 MB / 0.9092 GB, free: 6.16 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.015e-05/0.03297, allocations: 29.7 kB / 0.9092 GB, free: 6.125 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001834/0.03316, allocations: 410.6 kB / 0.9096 GB, free: 5.719 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 4.346e-05/0.0332, allocations: 75.38 kB / 0.9097 GB, free: 5.645 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.199e-05/0.03328, allocations: 83.3 kB / 0.9098 GB, free: 5.555 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001424/0.03343, allocations: 0.5391 MB / 0.9103 GB, free: 5.004 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.996e-05/0.0335, allocations: 39.97 kB / 0.9103 GB, free: 4.965 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001977/0.03369, allocations: 351.8 kB / 0.9107 GB, free: 4.508 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002439/0.03394, allocations: 303.3 kB / 0.911 GB, free: 4.125 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.03394, allocations: 0 / 0.911 GB, free: 4.125 MB / 0.8698 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0003349/0.03428, allocations: 309.3 kB / 0.9113 GB, free: 3.816 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/0.03429, allocations: 16.03 kB / 0.9113 GB, free: 3.801 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.0343, allocations: 4 kB / 0.9113 GB, free: 3.797 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.03432, allocations: 8 kB / 0.9113 GB, free: 3.789 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000144/0.03446, allocations: 79.83 kB / 0.9114 GB, free: 3.711 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.028e-05/0.03447, allocations: 11.94 kB / 0.9114 GB, free: 3.699 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000134/0.03461, allocations: 35.73 kB / 0.9114 GB, free: 3.664 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.546e-05/0.03463, allocations: 23.98 kB / 0.9114 GB, free: 3.641 MB / 0.8698 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.0001225/0.03476, allocations: 180.5 kB / 0.9116 GB, free: 3.453 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.338e-05/0.03482, allocations: 55.67 kB / 0.9117 GB, free: 3.398 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002971/0.03512, allocations: 230.2 kB / 0.9119 GB, free: 3.168 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.03512, allocations: 4 kB / 0.9119 GB, free: 3.164 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.03513, allocations: 3.938 kB / 0.9119 GB, free: 3.16 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002302/0.03536, allocations: 394.6 kB / 0.9123 GB, free: 2.707 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000707/0.03606, allocations: 0.7631 MB / 0.913 GB, free: 1.887 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.03607, allocations: 0 / 0.913 GB, free: 1.887 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001066/0.03617, allocations: 52.03 kB / 0.9131 GB, free: 1.836 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.519e-06/0.03618, allocations: 4 kB / 0.9131 GB, free: 1.832 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.709e-05/0.03619, allocations: 11.98 kB / 0.9131 GB, free: 1.82 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.0362, allocations: 3.984 kB / 0.9131 GB, free: 1.816 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.0362, allocations: 7.938 kB / 0.9131 GB, free: 1.809 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003682/0.03657, allocations: 430.5 kB / 0.9135 GB, free: 1.352 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 9.953e-05/0.03667, allocations: 87.55 kB / 0.9136 GB, free: 1.266 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.507e-05/0.0367, allocations: 8 kB / 0.9136 GB, free: 1.258 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001211/0.03683, allocations: 15.92 kB / 0.9136 GB, free: 1.242 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.722e-05/0.03685, allocations: 24 kB / 0.9136 GB, free: 1.219 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.636e-05/0.03687, allocations: 11.98 kB / 0.9136 GB, free: 1.207 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0002156/0.03708, allocations: 322.8 kB / 0.9139 GB, free: 0.8945 MB / 0.8698 GB Notification: Performance of sort global known variables: time 5e-08/0.03708, allocations: 0 / 0.9139 GB, free: 0.8945 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0003637/0.03745, allocations: 191.5 kB / 0.9141 GB, free: 0.707 MB / 0.8698 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.0002636/0.03771, allocations: 194.6 kB / 0.9143 GB, free: 0.5078 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0002453/0.03796, allocations: 164.2 kB / 0.9145 GB, free: 352 kB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.03796, allocations: 0 / 0.9145 GB, free: 352 kB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 9.523e-05/0.03805, allocations: 97.19 kB / 0.9146 GB, free: 252 kB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000721/0.03877, allocations: 269.5 kB / 0.9148 GB, free: 15.98 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001372/0.04015, allocations: 0.9718 MB / 0.9158 GB, free: 14.96 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001836/0.04033, allocations: 141.3 kB / 0.9159 GB, free: 14.8 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0002044/0.04053, allocations: 96.48 kB / 0.916 GB, free: 14.7 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.47e-05/0.04061, allocations: 52.48 kB / 0.916 GB, free: 14.65 MB / 0.8855 GB Notification: Performance of SimCode: time 9.81e-07/0.04061, allocations: 0 / 0.916 GB, free: 14.65 MB / 0.8855 GB Notification: Performance of Templates: time 0.01147/0.05208, allocations: 9.31 MB / 0.9251 GB, free: 5.574 MB / 0.8855 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Templates.Components.Validation.Tanks.makefile [Timeout 300] (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 & ./Buildings_latest_Buildings.Templates.Components.Validation.Tanks -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Components.Validation.Tanks.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Templates.Components.Validation.Tanks_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Components_Validation_Tanks.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.691816938109696]