Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.PlaceholderLogical.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.001576/0.001576, allocations: 81.86 kB / 19.87 MB, free: 4.621 MB / 18.57 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.001881/0.001881, allocations: 169.7 kB / 23.27 MB, free: 1.219 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 1.061/1.061, allocations: 177.1 MB / 203.7 MB, free: 5.477 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.274/2.274, allocations: 438.1 MB / 0.682 GB, free: 14.19 MB / 0.6511 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.Plants.Controls.Utilities.Validation.PlaceholderLogical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|phNo.y|phPar.y|phInp.y",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.PlaceholderLogical") translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.PlaceholderLogical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|phNo.y|phPar.y|phInp.y",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.PlaceholderLogical") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.685e-06/2.685e-06, allocations: 0 / 0.8897 GB, free: 9.809 MB / 0.8542 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.789e-05/3.058e-05, allocations: 5.125 kB / 0.8897 GB, free: 9.805 MB / 0.8542 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/Templates/Plants/Controls/Utilities/PlaceholderLogical.mo:9:3-11:47:writable] Warning: Parameter phInp.u_internal has no value, and is fixed during initialization (fixed=true), using available start value (start=true) as default value. Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.PlaceholderLogical): time 0.005939/0.00597, allocations: 0.7619 MB / 0.8905 GB, free: 9.043 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.001391/0.007361, allocations: 1.189 MB / 0.8916 GB, free: 7.84 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.424e-05/0.007446, allocations: 4 kB / 0.8916 GB, free: 7.836 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 0.0001437/0.007589, allocations: 19.8 kB / 0.8917 GB, free: 7.816 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 3.937e-05/0.007629, allocations: 15.86 kB / 0.8917 GB, free: 7.801 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004541/0.008083, allocations: 127.6 kB / 0.8918 GB, free: 7.676 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.0001747/0.008258, allocations: 127.7 kB / 0.8919 GB, free: 7.551 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 9.621e-05/0.008354, allocations: 27.91 kB / 0.892 GB, free: 7.523 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 9.425e-05/0.008448, allocations: 59.89 kB / 0.892 GB, free: 7.465 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 8.152e-05/0.008529, allocations: 39.88 kB / 0.892 GB, free: 7.426 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 2.625e-05/0.008556, allocations: 12 kB / 0.8921 GB, free: 7.414 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 5.962e-05/0.008615, allocations: 15.98 kB / 0.8921 GB, free: 7.398 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 1.965e-05/0.008635, allocations: 11.94 kB / 0.8921 GB, free: 7.387 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 4.129e-05/0.008676, allocations: 31.97 kB / 0.8921 GB, free: 7.355 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0001435/0.00882, allocations: 83.77 kB / 0.8922 GB, free: 7.273 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.008825, allocations: 3.984 kB / 0.8922 GB, free: 7.27 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.123e-06/0.008826, allocations: 3.938 kB / 0.8922 GB, free: 7.266 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 3.877e-06/0.00883, allocations: 0 / 0.8922 GB, free: 7.266 MB / 0.8542 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004133/0.009243, allocations: 442 kB / 0.8926 GB, free: 6.789 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.009286, allocations: 20.61 kB / 0.8926 GB, free: 6.77 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.557e-05/0.009331, allocations: 12.89 kB / 0.8927 GB, free: 6.758 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000179/0.00951, allocations: 144.4 kB / 0.8928 GB, free: 6.59 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.533e-05/0.009526, allocations: 12.36 kB / 0.8928 GB, free: 6.578 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.922e-05/0.009545, allocations: 12.36 kB / 0.8928 GB, free: 6.566 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.365e-05/0.009638, allocations: 65.31 kB / 0.8929 GB, free: 6.484 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.318e-06/0.009648, allocations: 4.125 kB / 0.8929 GB, free: 6.48 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.116e-06/0.009656, allocations: 4.375 kB / 0.8929 GB, free: 6.477 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-06/0.009662, allocations: 384 / 0.8929 GB, free: 6.477 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.949e-05/0.009681, allocations: 19.92 kB / 0.8929 GB, free: 6.457 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003645/0.01005, allocations: 0.5333 MB / 0.8934 GB, free: 5.887 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 4.302e-05/0.01009, allocations: 27.06 kB / 0.8935 GB, free: 5.848 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.188e-05/0.0101, allocations: 15.73 kB / 0.8935 GB, free: 5.828 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 5.601e-06/0.01011, allocations: 3.938 kB / 0.8935 GB, free: 5.824 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.275e-05/0.0102, allocations: 60.98 kB / 0.8935 GB, free: 5.75 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=3): time 1.103e-06/0.0102, allocations: 0 / 0.8935 GB, free: 5.75 MB / 0.8542 GB Notification: Performance of matching and sorting (n=3): time 0.0001541/0.01035, allocations: 61.64 kB / 0.8936 GB, free: 5.684 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.035e-05/0.01038, allocations: 51.41 kB / 0.8936 GB, free: 5.621 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001021/0.01049, allocations: 196.8 kB / 0.8938 GB, free: 5.414 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.642e-05/0.0105, allocations: 25.7 kB / 0.8939 GB, free: 5.383 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 6.393e-05/0.01057, allocations: 154.7 kB / 0.894 GB, free: 5.227 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 1.168e-05/0.01058, allocations: 11.94 kB / 0.894 GB, free: 5.215 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.69e-05/0.01064, allocations: 35.36 kB / 0.894 GB, free: 5.172 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001317/0.01077, allocations: 0.4923 MB / 0.8945 GB, free: 4.668 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.493e-05/0.01082, allocations: 45.69 kB / 0.8946 GB, free: 4.617 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.946e-05/0.01089, allocations: 84.72 kB / 0.8946 GB, free: 4.516 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.35e-05/0.01096, allocations: 80.98 kB / 0.8947 GB, free: 4.418 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.01097, allocations: 7.938 kB / 0.8947 GB, free: 4.41 MB / 0.8542 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000192/0.01116, allocations: 176.9 kB / 0.8949 GB, free: 4.219 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 3.218e-05/0.01119, allocations: 33.69 kB / 0.8949 GB, free: 4.18 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.0112, allocations: 0 / 0.8949 GB, free: 4.18 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.145e-05/0.01121, allocations: 4 kB / 0.8949 GB, free: 4.176 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.514e-05/0.01122, allocations: 3.938 kB / 0.8949 GB, free: 4.172 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.645e-06/0.01123, allocations: 0 / 0.8949 GB, free: 4.172 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001224/0.01135, allocations: 19.98 kB / 0.895 GB, free: 4.152 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.496e-05/0.01136, allocations: 4 kB / 0.895 GB, free: 4.148 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (pul.y,$PRE.pul.y,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 1 * 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 8.151e-05/0.01144, allocations: 168.7 kB / 0.8951 GB, free: 3.973 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.339e-05/0.01146, allocations: 11.89 kB / 0.8951 GB, free: 3.961 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.928e-05/0.01149, allocations: 4.344 kB / 0.8951 GB, free: 3.949 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.948e-06/0.01149, allocations: 4 kB / 0.8951 GB, free: 3.945 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.493e-06/0.01149, allocations: 0 / 0.8951 GB, free: 3.945 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.0115, allocations: 0 / 0.8951 GB, free: 3.945 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.373e-05/0.01158, allocations: 109.2 kB / 0.8952 GB, free: 3.812 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.01158, allocations: 0 / 0.8952 GB, free: 3.812 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.476e-06/0.01158, allocations: 0 / 0.8952 GB, free: 3.812 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.352e-06/0.01159, allocations: 0 / 0.8952 GB, free: 3.812 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.163e-06/0.01159, allocations: 19.86 kB / 0.8953 GB, free: 3.793 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.71e-07/0.01159, allocations: 0 / 0.8953 GB, free: 3.793 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.0116, allocations: 0 / 0.8953 GB, free: 3.793 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.572e-05/0.01169, allocations: 88.39 kB / 0.8954 GB, free: 3.684 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 9.468e-06/0.0117, allocations: 3.953 kB / 0.8954 GB, free: 3.68 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.063e-05/0.01171, allocations: 3.938 kB / 0.8954 GB, free: 3.676 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.432e-05/0.01173, allocations: 4 kB / 0.8954 GB, free: 3.672 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.708e-05/0.01175, allocations: 4.047 kB / 0.8954 GB, free: 3.668 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.198e-06/0.01176, allocations: 4 kB / 0.8954 GB, free: 3.664 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 5.026e-05/0.01181, allocations: 139.2 kB / 0.8955 GB, free: 3.527 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6e-08/0.01181, allocations: 0 / 0.8955 GB, free: 3.527 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0001981/0.01201, allocations: 27.94 kB / 0.8955 GB, free: 3.5 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$whenCondition2,pul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001301/0.01214, allocations: 99.23 kB / 0.8956 GB, free: 3.395 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001446/0.01228, allocations: 136.7 kB / 0.8958 GB, free: 3.238 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.01228, allocations: 0 / 0.8958 GB, free: 3.238 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 2.18e-05/0.0123, allocations: 19.66 kB / 0.8958 GB, free: 3.215 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001875/0.01249, allocations: 12 kB / 0.8958 GB, free: 3.203 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002693/0.01276, allocations: 170.7 kB / 0.8959 GB, free: 3.004 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.133e-05/0.01279, allocations: 63.34 kB / 0.896 GB, free: 2.922 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 2.005e-05/0.01281, allocations: 4 kB / 0.896 GB, free: 2.918 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.671e-05/0.01289, allocations: 86.17 kB / 0.8961 GB, free: 2.832 MB / 0.8542 GB Notification: Performance of SimCode: time 6.81e-07/0.01289, allocations: 3.938 kB / 0.8961 GB, free: 2.828 MB / 0.8542 GB Notification: Performance of Templates: time 0.003447/0.01634, allocations: 1.321 MB / 0.8974 GB, free: 1.535 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.PlaceholderLogical.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.PlaceholderLogical.pipe ; mkfifo Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.PlaceholderLogical.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.PlaceholderLogical.pipe >> ../files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.PlaceholderLogical.sim & ./Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.PlaceholderLogical -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.PlaceholderLogical.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.PlaceholderLogical_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Plants_Controls_Utilities_Validation_PlaceholderLogical.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.339129550848156]