Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.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.001501/0.001501, allocations: 80.3 kB / 21.47 MB, free: 3.027 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.0013/0.0013, allocations: 165.9 kB / 24.86 MB, free: 9.281 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.9717/0.9717, allocations: 177.1 MB / 205.3 MB, free: 5.496 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.875/1.875, allocations: 377.9 MB / 0.6247 GB, free: 8.359 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/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.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.214e-06/2.214e-06, allocations: 0 / 0.8128 GB, free: 1.477 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.131e-05/3.352e-05, allocations: 3.562 kB / 0.8128 GB, free: 1.473 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.002174/0.002207, allocations: 0.7589 MB / 0.8135 GB, free: 0.7344 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.002043/0.00425, allocations: 1.214 MB / 0.8147 GB, free: 15.51 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.604e-05/0.004316, allocations: 0 / 0.8147 GB, free: 15.51 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 3.808e-05/0.004354, allocations: 11.86 kB / 0.8147 GB, free: 15.5 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 9.66e-05/0.004451, allocations: 16.91 kB / 0.8147 GB, free: 15.48 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005164/0.004968, allocations: 136.3 kB / 0.8148 GB, free: 15.35 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0002135/0.005181, allocations: 127.7 kB / 0.815 GB, free: 15.22 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001015/0.005282, allocations: 13.86 kB / 0.815 GB, free: 15.21 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001429/0.005425, allocations: 75.88 kB / 0.8151 GB, free: 15.13 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 9.818e-05/0.005524, allocations: 39.88 kB / 0.8151 GB, free: 15.09 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 2.976e-05/0.005553, allocations: 12 kB / 0.8151 GB, free: 15.08 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 8.081e-05/0.005634, allocations: 25.45 kB / 0.8151 GB, free: 15.06 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 3.049e-05/0.005665, allocations: 19.97 kB / 0.8151 GB, free: 15.04 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 5.982e-05/0.005724, allocations: 35.92 kB / 0.8152 GB, free: 15 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0002193/0.005944, allocations: 107.7 kB / 0.8153 GB, free: 14.9 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 3.606e-06/0.005947, allocations: 0 / 0.8153 GB, free: 14.9 MB / 0.7761 GB Notification: Performance of FrontEnd: time 3.326e-06/0.005951, allocations: 5.375 kB / 0.8153 GB, free: 14.89 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 5.35e-06/0.005956, allocations: 0 / 0.8153 GB, free: 14.89 MB / 0.7761 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004704/0.006426, allocations: 438.1 kB / 0.8157 GB, free: 14.43 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.006465, allocations: 9.781 kB / 0.8157 GB, free: 14.42 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001033/0.006568, allocations: 20.83 kB / 0.8157 GB, free: 14.4 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.968e-05/0.006648, allocations: 120.6 kB / 0.8158 GB, free: 14.25 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.414e-05/0.006662, allocations: 4.375 kB / 0.8159 GB, free: 14.25 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.381e-05/0.006676, allocations: 4.375 kB / 0.8159 GB, free: 14.25 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001052/0.006781, allocations: 76.05 kB / 0.8159 GB, free: 14.16 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.655e-06/0.006789, allocations: 192 / 0.8159 GB, free: 14.16 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.295e-05/0.006802, allocations: 6.125 kB / 0.8159 GB, free: 14.16 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/0.00681, allocations: 8.125 kB / 0.8159 GB, free: 14.15 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.178e-05/0.006872, allocations: 15.92 kB / 0.816 GB, free: 14.14 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000342/0.007214, allocations: 304.2 kB / 0.8162 GB, free: 13.81 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 7.013e-05/0.007284, allocations: 41.64 kB / 0.8163 GB, free: 13.76 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.701e-05/0.007301, allocations: 19.61 kB / 0.8163 GB, free: 13.74 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.72e-05/0.007318, allocations: 8.125 kB / 0.8163 GB, free: 13.73 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001007/0.007419, allocations: 80.98 kB / 0.8164 GB, free: 13.64 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=8): time 1.372e-06/0.00742, allocations: 0 / 0.8164 GB, free: 13.64 MB / 0.7761 GB Notification: Performance of matching and sorting (n=8): time 0.0001628/0.007583, allocations: 89.62 kB / 0.8165 GB, free: 13.54 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.072e-05/0.007614, allocations: 56.12 kB / 0.8165 GB, free: 13.48 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.406e-05/0.007688, allocations: 178.4 kB / 0.8167 GB, free: 13.29 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.903e-05/0.007707, allocations: 33.69 kB / 0.8167 GB, free: 13.25 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 5.804e-05/0.007765, allocations: 140.5 kB / 0.8169 GB, free: 13.11 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 1.832e-05/0.007783, allocations: 15.83 kB / 0.8169 GB, free: 13.09 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.575e-05/0.007839, allocations: 51.33 kB / 0.8169 GB, free: 13.03 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001126/0.007952, allocations: 0.4884 MB / 0.8174 GB, free: 12.53 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.623e-05/0.008008, allocations: 54.33 kB / 0.8175 GB, free: 12.47 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.356e-05/0.008081, allocations: 119.7 kB / 0.8176 GB, free: 12.32 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.595e-05/0.008177, allocations: 121.9 kB / 0.8177 GB, free: 12.18 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.00818, allocations: 0 / 0.8177 GB, free: 12.18 MB / 0.7761 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002038/0.008384, allocations: 206.8 kB / 0.8179 GB, free: 11.96 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 3.11e-05/0.008415, allocations: 37.69 kB / 0.8179 GB, free: 11.91 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-06/0.00842, allocations: 0.5312 kB / 0.8179 GB, free: 11.91 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.107e-05/0.008431, allocations: 4 kB / 0.8179 GB, free: 11.91 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.923e-05/0.0085, allocations: 20.77 kB / 0.8179 GB, free: 11.89 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.566e-06/0.008504, allocations: 4 kB / 0.818 GB, free: 11.89 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.76e-05/0.008591, allocations: 29.97 kB / 0.818 GB, free: 11.86 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.526e-05/0.008606, allocations: 11.98 kB / 0.818 GB, free: 11.85 MB / 0.7761 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * 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 7.528e-05/0.008682, allocations: 161.2 kB / 0.8181 GB, free: 11.68 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.796e-05/0.0087, allocations: 11.89 kB / 0.8182 GB, free: 11.67 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001141/0.008814, allocations: 100.8 kB / 0.8183 GB, free: 11.57 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.185e-06/0.008816, allocations: 0 / 0.8183 GB, free: 11.57 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.743e-06/0.008818, allocations: 0 / 0.8183 GB, free: 11.57 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.008822, allocations: 7.922 kB / 0.8183 GB, free: 11.56 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001881/0.00901, allocations: 310.1 kB / 0.8186 GB, free: 11.22 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.009013, allocations: 3.938 kB / 0.8186 GB, free: 11.22 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.985e-05/0.009042, allocations: 7.938 kB / 0.8186 GB, free: 11.21 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.009045, allocations: 5.781 kB / 0.8186 GB, free: 11.21 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.3e-06/0.00905, allocations: 0 / 0.8186 GB, free: 11.21 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.009052, allocations: 0 / 0.8186 GB, free: 11.21 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.009052, allocations: 0 / 0.8186 GB, free: 11.21 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001137/0.009166, allocations: 232.4 kB / 0.8188 GB, free: 10.96 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.057e-05/0.009177, allocations: 19.81 kB / 0.8188 GB, free: 10.94 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.043e-05/0.009187, allocations: 4.562 kB / 0.8188 GB, free: 10.94 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.51e-05/0.009222, allocations: 5.344 kB / 0.8188 GB, free: 10.93 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.625e-05/0.009248, allocations: 3.984 kB / 0.8188 GB, free: 10.93 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.02e-06/0.009253, allocations: 4 kB / 0.8188 GB, free: 10.93 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 4.149e-05/0.009295, allocations: 131.7 kB / 0.819 GB, free: 10.8 MB / 0.7761 GB Notification: Performance of sort global known variables: time 7e-08/0.009295, allocations: 0.7188 kB / 0.819 GB, free: 10.8 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001811/0.009476, allocations: 24 kB / 0.819 GB, free: 10.77 MB / 0.7761 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001255/0.009602, allocations: 111.5 kB / 0.8191 GB, free: 10.66 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001674/0.009769, allocations: 160.7 kB / 0.8192 GB, free: 10.48 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.009771, allocations: 0 / 0.8192 GB, free: 10.48 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 2.936e-05/0.009801, allocations: 23.67 kB / 0.8193 GB, free: 10.45 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001923/0.009993, allocations: 24.19 kB / 0.8193 GB, free: 10.43 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000446/0.01044, allocations: 176.3 kB / 0.8195 GB, free: 10.23 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.082e-05/0.01048, allocations: 67.2 kB / 0.8195 GB, free: 10.14 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 2.73e-05/0.01051, allocations: 9.156 kB / 0.8195 GB, free: 10.14 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.093e-05/0.01059, allocations: 90.19 kB / 0.8196 GB, free: 10.05 MB / 0.7761 GB Notification: Performance of SimCode: time 5.11e-07/0.01059, allocations: 0 / 0.8196 GB, free: 10.05 MB / 0.7761 GB Notification: Performance of Templates: time 0.003253/0.01384, allocations: 1.737 MB / 0.8213 GB, free: 8.367 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.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.230745308101177]