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.001128/0.001128, allocations: 83.59 kB / 20.45 MB, free: 4.117 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.001053/0.001053, allocations: 165 kB / 23.82 MB, free: 0.7422 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.9546/0.9546, allocations: 177.1 MB / 204.2 MB, free: 5.637 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.909/1.909, allocations: 377.8 MB / 0.6236 GB, free: 8.555 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.264e-06/2.264e-06, allocations: 0 / 0.8115 GB, free: 1.758 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.645e-05/2.871e-05, allocations: 6.25 kB / 0.8115 GB, free: 1.75 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.001561/0.00159, allocations: 0.7586 MB / 0.8123 GB, free: 1.012 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001418/0.003008, allocations: 1.215 MB / 0.8134 GB, free: 15.79 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.937e-05/0.003067, allocations: 0 / 0.8134 GB, free: 15.79 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 4.108e-05/0.003108, allocations: 6.375 kB / 0.8135 GB, free: 15.78 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 8.407e-05/0.003192, allocations: 15.88 kB / 0.8135 GB, free: 15.77 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.000468/0.00366, allocations: 139.5 kB / 0.8136 GB, free: 15.63 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0001679/0.003828, allocations: 127.7 kB / 0.8137 GB, free: 15.5 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001122/0.00394, allocations: 13.7 kB / 0.8137 GB, free: 15.49 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001205/0.004061, allocations: 75.88 kB / 0.8138 GB, free: 15.41 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 8.683e-05/0.004148, allocations: 35.94 kB / 0.8138 GB, free: 15.38 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 2.64e-05/0.004174, allocations: 12 kB / 0.8139 GB, free: 15.37 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 6.992e-05/0.004244, allocations: 27.92 kB / 0.8139 GB, free: 15.34 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 2.736e-05/0.004271, allocations: 21.28 kB / 0.8139 GB, free: 15.32 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 5.547e-05/0.004327, allocations: 35.97 kB / 0.8139 GB, free: 15.29 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0001647/0.004492, allocations: 103.7 kB / 0.814 GB, free: 15.18 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 1.793e-06/0.004493, allocations: 4.531 kB / 0.814 GB, free: 15.18 MB / 0.7761 GB Notification: Performance of FrontEnd: time 7.92e-07/0.004494, allocations: 3.938 kB / 0.814 GB, free: 15.18 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.348e-06/0.004498, allocations: 0.875 kB / 0.814 GB, free: 15.18 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.0004959/0.004994, allocations: 438.9 kB / 0.8145 GB, free: 14.71 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/0.005035, allocations: 8.031 kB / 0.8145 GB, free: 14.7 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001161/0.005151, allocations: 24.83 kB / 0.8145 GB, free: 14.68 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.423e-05/0.005246, allocations: 117 kB / 0.8146 GB, free: 14.54 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.545e-05/0.005261, allocations: 9.734 kB / 0.8146 GB, free: 14.53 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.985e-05/0.005281, allocations: 8.375 kB / 0.8146 GB, free: 14.52 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001445/0.005425, allocations: 78.88 kB / 0.8147 GB, free: 14.43 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.005437, allocations: 1.344 kB / 0.8147 GB, free: 14.43 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.205e-05/0.005449, allocations: 384 / 0.8147 GB, free: 14.43 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.091e-05/0.00546, allocations: 4.125 kB / 0.8147 GB, free: 14.43 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.041e-05/0.0055, allocations: 15.98 kB / 0.8147 GB, free: 14.41 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004041/0.005904, allocations: 324.4 kB / 0.815 GB, free: 14.06 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 9.075e-05/0.005995, allocations: 48.36 kB / 0.8151 GB, free: 14 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.699e-05/0.006022, allocations: 15.62 kB / 0.8151 GB, free: 13.98 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.333e-05/0.006045, allocations: 5.219 kB / 0.8151 GB, free: 13.98 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001014/0.006147, allocations: 85.14 kB / 0.8152 GB, free: 13.88 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=8): time 1.122e-06/0.006148, allocations: 0 / 0.8152 GB, free: 13.88 MB / 0.7761 GB Notification: Performance of matching and sorting (n=8): time 0.0002091/0.006357, allocations: 94.92 kB / 0.8153 GB, free: 13.79 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.981e-05/0.006397, allocations: 67.33 kB / 0.8153 GB, free: 13.71 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.714e-05/0.006484, allocations: 169.9 kB / 0.8155 GB, free: 13.52 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.919e-05/0.006503, allocations: 32.98 kB / 0.8155 GB, free: 13.49 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 6.129e-05/0.006564, allocations: 146.8 kB / 0.8157 GB, free: 13.34 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.045e-05/0.006585, allocations: 19.83 kB / 0.8157 GB, free: 13.32 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.514e-05/0.00664, allocations: 43.36 kB / 0.8157 GB, free: 13.27 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001269/0.006767, allocations: 0.4923 MB / 0.8162 GB, free: 12.77 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.987e-05/0.006847, allocations: 65.61 kB / 0.8163 GB, free: 12.7 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.102e-05/0.006938, allocations: 115.8 kB / 0.8164 GB, free: 12.55 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001141/0.007052, allocations: 130.2 kB / 0.8165 GB, free: 12.39 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.165e-06/0.007054, allocations: 0 / 0.8165 GB, free: 12.39 MB / 0.7761 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.00023/0.007284, allocations: 222.2 kB / 0.8167 GB, free: 12.16 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 3.129e-05/0.007315, allocations: 37.69 kB / 0.8168 GB, free: 12.12 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.007321, allocations: 3.984 kB / 0.8168 GB, free: 12.11 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.543e-05/0.007336, allocations: 5.156 kB / 0.8168 GB, free: 12.11 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.789e-05/0.007414, allocations: 12 kB / 0.8168 GB, free: 12.1 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.207e-06/0.007423, allocations: 8.047 kB / 0.8168 GB, free: 12.09 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.939e-05/0.007513, allocations: 29.38 kB / 0.8168 GB, free: 12.06 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.516e-05/0.007528, allocations: 8 kB / 0.8168 GB, free: 12.05 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 8.259e-05/0.00761, allocations: 175.3 kB / 0.817 GB, free: 11.88 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.41e-05/0.007625, allocations: 13.17 kB / 0.817 GB, free: 11.86 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001268/0.007751, allocations: 90.11 kB / 0.8171 GB, free: 11.77 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.007753, allocations: 0 / 0.8171 GB, free: 11.77 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.007758, allocations: 0 / 0.8171 GB, free: 11.77 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.007762, allocations: 0.7188 kB / 0.8171 GB, free: 11.77 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002145/0.007976, allocations: 341.3 kB / 0.8174 GB, free: 11.39 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.007978, allocations: 4.875 kB / 0.8174 GB, free: 11.39 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.919e-05/0.008008, allocations: 4 kB / 0.8174 GB, free: 11.39 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.222e-06/0.008009, allocations: 5.562 kB / 0.8174 GB, free: 11.38 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.388e-06/0.008018, allocations: 7.984 kB / 0.8174 GB, free: 11.38 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.02e-07/0.008019, allocations: 0 / 0.8174 GB, free: 11.38 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.00802, allocations: 0 / 0.8174 GB, free: 11.38 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001312/0.008151, allocations: 242.8 kB / 0.8177 GB, free: 11.12 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 8.716e-06/0.00816, allocations: 11.83 kB / 0.8177 GB, free: 11.11 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.228e-05/0.008172, allocations: 4 kB / 0.8177 GB, free: 11.11 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.364e-05/0.008206, allocations: 0 / 0.8177 GB, free: 11.11 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.838e-05/0.008244, allocations: 11.98 kB / 0.8177 GB, free: 11.09 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.254e-06/0.008251, allocations: 4 kB / 0.8177 GB, free: 11.09 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 4.849e-05/0.0083, allocations: 131.7 kB / 0.8178 GB, free: 10.96 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.0083, allocations: 0 / 0.8178 GB, free: 10.96 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001732/0.008473, allocations: 28.91 kB / 0.8178 GB, free: 10.93 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 9.992e-05/0.008573, allocations: 100.4 kB / 0.8179 GB, free: 10.83 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001954/0.008768, allocations: 169.8 kB / 0.8181 GB, free: 10.64 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.008771, allocations: 4 kB / 0.8181 GB, free: 10.64 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 3.746e-05/0.008808, allocations: 31.61 kB / 0.8181 GB, free: 10.6 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001889/0.008997, allocations: 19.34 kB / 0.8182 GB, free: 10.59 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000475/0.009472, allocations: 179.8 kB / 0.8183 GB, free: 10.38 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.738e-05/0.00951, allocations: 63.7 kB / 0.8184 GB, free: 10.3 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 2.179e-05/0.009531, allocations: 5 kB / 0.8184 GB, free: 10.3 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.039e-05/0.009562, allocations: 16.5 kB / 0.8184 GB, free: 10.28 MB / 0.7761 GB Notification: Performance of SimCode: time 9.71e-07/0.009563, allocations: 1.062 kB / 0.8184 GB, free: 10.28 MB / 0.7761 GB Notification: Performance of Templates: time 0.003387/0.01295, allocations: 1.56 MB / 0.8199 GB, free: 8.777 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.2991607137955725]