Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0009492/0.0009492, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001147/0.002096, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 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.00075/0.00075, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008891/0.001639, allocations: 463.6 kB / 11.68 MB, free: 2.484 MB / 13.93 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.009/1.009, allocations: 177.1 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1163/1.125, allocations: 53.66 MB / 243.2 MB, free: 15.59 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo): time 2.541/2.541, allocations: 446.7 MB / 0.6745 GB, free: 6.207 MB / 0.6511 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.3493/2.891, allocations: 145.9 MB / 0.817 GB, free: 4.207 MB / 0.7917 GB " [Timeout remaining time 177] Using package Buildings with version 15.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-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.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_latest_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_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.915e-06/2.915e-06, allocations: 0 / 0.8183 GB, free: 2.922 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.93e-05/3.221e-05, allocations: 6.25 kB / 0.8183 GB, free: 2.914 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.002117/0.002149, allocations: 0.7971 MB / 0.8191 GB, free: 2.113 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.004327/0.006477, allocations: 1.221 MB / 0.8203 GB, free: 0.8789 MB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.199e-05/0.006539, allocations: 0 / 0.8203 GB, free: 0.8789 MB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 3.916e-05/0.006578, allocations: 7.922 kB / 0.8203 GB, free: 0.8711 MB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 6.294e-05/0.006641, allocations: 15.81 kB / 0.8203 GB, free: 0.8555 MB / 0.7917 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003978/0.007039, allocations: 135.5 kB / 0.8204 GB, free: 0.7227 MB / 0.7917 GB Notification: Performance of NFFlatten.flatten: time 0.000214/0.007253, allocations: 123.8 kB / 0.8205 GB, free: 0.6016 MB / 0.7917 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001184/0.007371, allocations: 16.16 kB / 0.8205 GB, free: 0.582 MB / 0.7917 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001481/0.007519, allocations: 87.81 kB / 0.8206 GB, free: 0.4961 MB / 0.7917 GB Notification: Performance of NFSimplifyModel.simplify: time 8.744e-05/0.007607, allocations: 35.94 kB / 0.8207 GB, free: 472 kB / 0.7917 GB Notification: Performance of NFPackage.collectConstants: time 2.694e-05/0.007634, allocations: 11.94 kB / 0.8207 GB, free: 460 kB / 0.7917 GB Notification: Performance of NFFlatten.collectFunctions: time 9.348e-05/0.007727, allocations: 35.92 kB / 0.8207 GB, free: 424 kB / 0.7917 GB Notification: Performance of NFScalarize.scalarize: time 2.252e-05/0.00775, allocations: 8 kB / 0.8207 GB, free: 416 kB / 0.7917 GB Notification: Performance of NFVerifyModel.verify: time 4.345e-05/0.007793, allocations: 23.94 kB / 0.8207 GB, free: 392 kB / 0.7917 GB Notification: Performance of NFConvertDAE.convert: time 0.0001689/0.007962, allocations: 87.78 kB / 0.8208 GB, free: 304 kB / 0.7917 GB Notification: Performance of FrontEnd - DAE generated: time 1.782e-05/0.00798, allocations: 4 kB / 0.8208 GB, free: 300 kB / 0.7917 GB Notification: Performance of FrontEnd: time 2.034e-06/0.007982, allocations: 0 / 0.8208 GB, free: 300 kB / 0.7917 GB Notification: Performance of Transformations before backend: time 1.576e-05/0.007998, allocations: 0 / 0.8208 GB, free: 300 kB / 0.7917 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.0005649/0.008563, allocations: 330 kB / 0.8211 GB, free: 15.94 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.008602, allocations: 12.03 kB / 0.8211 GB, free: 15.93 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000162/0.008764, allocations: 93.97 kB / 0.8212 GB, free: 15.82 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001013/0.008865, allocations: 113.7 kB / 0.8213 GB, free: 15.68 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.916e-05/0.008884, allocations: 8.359 kB / 0.8214 GB, free: 15.68 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.636e-05/0.008901, allocations: 12.38 kB / 0.8214 GB, free: 15.66 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001272/0.009028, allocations: 74.92 kB / 0.8214 GB, free: 15.58 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.284e-06/0.009035, allocations: 192 / 0.8214 GB, free: 15.58 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.066e-06/0.009043, allocations: 384 / 0.8214 GB, free: 15.58 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.009049, allocations: 8.062 kB / 0.8214 GB, free: 15.57 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.826e-05/0.009087, allocations: 11.94 kB / 0.8215 GB, free: 15.56 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003333/0.009421, allocations: 192.1 kB / 0.8216 GB, free: 15.36 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 8.63e-05/0.009507, allocations: 42.59 kB / 0.8217 GB, free: 15.31 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.488e-05/0.009522, allocations: 8.859 kB / 0.8217 GB, free: 15.3 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.076e-05/0.009543, allocations: 4 kB / 0.8217 GB, free: 15.29 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001141/0.009657, allocations: 79.42 kB / 0.8218 GB, free: 15.2 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=8): time 1.753e-06/0.009658, allocations: 0 / 0.8218 GB, free: 15.2 MB / 0.8073 GB Notification: Performance of matching and sorting (n=8): time 0.000148/0.009806, allocations: 73.59 kB / 0.8218 GB, free: 15.12 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.242e-05/0.009849, allocations: 55.41 kB / 0.8219 GB, free: 15.06 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.329e-05/0.009932, allocations: 122.7 kB / 0.822 GB, free: 14.93 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.942e-05/0.009952, allocations: 25.7 kB / 0.822 GB, free: 14.89 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 4.926e-05/0.01, allocations: 96.08 kB / 0.8221 GB, free: 14.8 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.78e-05/0.01003, allocations: 19.83 kB / 0.8221 GB, free: 14.78 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.156e-05/0.01008, allocations: 37.69 kB / 0.8222 GB, free: 14.73 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 8.88e-05/0.01017, allocations: 322.8 kB / 0.8225 GB, free: 14.41 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.307e-05/0.01023, allocations: 57.69 kB / 0.8225 GB, free: 14.35 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.569e-05/0.0103, allocations: 89.33 kB / 0.8226 GB, free: 14.24 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.725e-05/0.0104, allocations: 122.7 kB / 0.8227 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.0104, allocations: 0 / 0.8227 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001639/0.01056, allocations: 180.9 kB / 0.8229 GB, free: 13.9 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 4.53e-05/0.01061, allocations: 33.69 kB / 0.8229 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.01061, allocations: 4 kB / 0.823 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.024e-05/0.01062, allocations: 0 / 0.823 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.509e-05/0.01072, allocations: 19.98 kB / 0.823 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.978e-06/0.01072, allocations: 0 / 0.823 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.26e-05/0.01081, allocations: 27.94 kB / 0.823 GB, free: 13.81 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.499e-05/0.01082, allocations: 11.92 kB / 0.823 GB, free: 13.8 MB / 0.8073 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.11e-05/0.0109, allocations: 125.9 kB / 0.8231 GB, free: 13.66 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.226e-05/0.01091, allocations: 7.938 kB / 0.8231 GB, free: 13.66 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001216/0.01104, allocations: 70.39 kB / 0.8232 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.01104, allocations: 0 / 0.8232 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.01104, allocations: 3.984 kB / 0.8232 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.01105, allocations: 4 kB / 0.8232 GB, free: 13.57 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001721/0.01122, allocations: 202.8 kB / 0.8234 GB, free: 13.35 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.01122, allocations: 0 / 0.8234 GB, free: 13.35 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.057e-05/0.01127, allocations: 19.92 kB / 0.8234 GB, free: 13.33 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.281e-05/0.01128, allocations: 15.88 kB / 0.8234 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.01129, allocations: 4 kB / 0.8234 GB, free: 13.31 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.662e-06/0.01129, allocations: 0 / 0.8234 GB, free: 13.31 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.01129, allocations: 0 / 0.8234 GB, free: 13.31 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.0113, allocations: 4 kB / 0.8234 GB, free: 13.31 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001014/0.0114, allocations: 163.4 kB / 0.8236 GB, free: 13.13 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.235e-05/0.01141, allocations: 3.984 kB / 0.8236 GB, free: 13.13 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.59e-05/0.01146, allocations: 8 kB / 0.8236 GB, free: 13.12 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.255e-05/0.01149, allocations: 3.984 kB / 0.8236 GB, free: 13.12 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.159e-06/0.0115, allocations: 4 kB / 0.8236 GB, free: 13.11 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 1.954e-05/0.01151, allocations: 16.83 kB / 0.8236 GB, free: 13.09 MB / 0.8073 GB Notification: Performance of sort global known variables: time 4e-08/0.01151, allocations: 4 kB / 0.8236 GB, free: 13.09 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001532/0.01167, allocations: 28 kB / 0.8237 GB, free: 13.06 MB / 0.8073 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.000136/0.0118, allocations: 76.42 kB / 0.8237 GB, free: 12.98 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001919/0.012, allocations: 157.9 kB / 0.8239 GB, free: 12.8 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 6.352e-06/0.012, allocations: 0 / 0.8239 GB, free: 12.8 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 3.308e-05/0.01204, allocations: 28.77 kB / 0.8239 GB, free: 12.77 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001687/0.0122, allocations: 21.17 kB / 0.8239 GB, free: 12.75 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007605/0.01296, allocations: 184.6 kB / 0.8241 GB, free: 12.55 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.047e-05/0.013, allocations: 67.2 kB / 0.8242 GB, free: 12.46 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 3.017e-05/0.01304, allocations: 7.984 kB / 0.8242 GB, free: 12.45 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001047/0.01314, allocations: 71.36 kB / 0.8243 GB, free: 12.38 MB / 0.8073 GB Notification: Performance of SimCode: time 1.353e-06/0.01314, allocations: 0 / 0.8243 GB, free: 12.38 MB / 0.8073 GB Notification: Performance of Templates: time 0.003699/0.01684, allocations: 1.691 MB / 0.8259 GB, free: 10.73 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.ref.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.467647201381624]