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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001375/0.001375, allocations: 110.2 kB / 18.93 MB, free: 2.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001384/0.001384, allocations: 192 kB / 22.23 MB, free: 5.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.436/1.436, allocations: 225.6 MB / 251 MB, free: 13 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo): time 3.312/3.312, allocations: 0.4893 GB / 0.7884 GB, free: 33.18 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.001957/0.001957, allocations: 65.11 kB / 1.145 GB, free: 30.62 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4076/0.4096, allocations: 174.9 MB / 1.316 GB, free: 9.73 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.002119/0.4117, allocations: 0.7634 MB / 1.317 GB, free: 8.969 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001564/0.4133, allocations: 1.174 MB / 1.318 GB, free: 7.781 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.264e-05/0.4133, allocations: 3.938 kB / 1.318 GB, free: 7.777 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.312e-05/0.4134, allocations: 7.922 kB / 1.318 GB, free: 7.77 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 8.467e-05/0.4134, allocations: 11.88 kB / 1.318 GB, free: 7.758 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.000546/0.414, allocations: 139 kB / 1.318 GB, free: 7.625 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002093/0.4142, allocations: 127.8 kB / 1.318 GB, free: 7.5 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001284/0.4143, allocations: 12.17 kB / 1.318 GB, free: 7.484 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001172/0.4144, allocations: 55.84 kB / 1.318 GB, free: 7.43 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001094/0.4145, allocations: 51.86 kB / 1.318 GB, free: 7.379 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.276e-05/0.4146, allocations: 12 kB / 1.318 GB, free: 7.367 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 7.15e-05/0.4146, allocations: 31.92 kB / 1.318 GB, free: 7.336 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.412e-05/0.4147, allocations: 8 kB / 1.318 GB, free: 7.328 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 6.838e-05/0.4147, allocations: 43.84 kB / 1.318 GB, free: 7.285 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0002376/0.415, allocations: 135.4 kB / 1.319 GB, free: 7.152 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.415, allocations: 0 / 1.319 GB, free: 7.152 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.014e-06/0.415, allocations: 0 / 1.319 GB, free: 7.152 MB / 1.014 GB Notification: Performance of Transformations before backend: time 5.841e-06/0.415, allocations: 0 / 1.319 GB, free: 7.152 MB / 1.014 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.0006583/0.4156, allocations: 343.8 kB / 1.319 GB, free: 6.781 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.4157, allocations: 12.03 kB / 1.319 GB, free: 6.77 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.226e-05/0.4157, allocations: 12.89 kB / 1.319 GB, free: 6.758 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001076/0.4159, allocations: 110.5 kB / 1.319 GB, free: 6.625 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.923e-05/0.4159, allocations: 8.375 kB / 1.319 GB, free: 6.617 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.624e-05/0.4159, allocations: 8.375 kB / 1.319 GB, free: 6.609 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002435/0.4161, allocations: 74.16 kB / 1.319 GB, free: 6.531 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.335e-05/0.4162, allocations: 3.938 kB / 1.319 GB, free: 6.527 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.47e-05/0.4162, allocations: 3.984 kB / 1.319 GB, free: 6.523 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.816e-06/0.4162, allocations: 4 kB / 1.319 GB, free: 6.52 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001896/0.4164, allocations: 51.89 kB / 1.319 GB, free: 6.469 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006342/0.417, allocations: 315.6 kB / 1.319 GB, free: 6.117 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001707/0.4172, allocations: 54.55 kB / 1.319 GB, free: 6.055 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.012e-05/0.4173, allocations: 28.97 kB / 1.319 GB, free: 6.023 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 2.616e-05/0.4173, allocations: 7.984 kB / 1.319 GB, free: 6.016 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000205/0.4175, allocations: 91.38 kB / 1.32 GB, free: 5.914 MB / 1.014 GB Notification: Performance of pre-optimization done (n=8): time 1.643e-06/0.4175, allocations: 4 kB / 1.32 GB, free: 5.91 MB / 1.014 GB Notification: Performance of matching and sorting (n=8): time 0.0004394/0.4179, allocations: 145.8 kB / 1.32 GB, free: 5.762 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.558e-05/0.418, allocations: 55.41 kB / 1.32 GB, free: 5.695 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001039/0.4181, allocations: 117.8 kB / 1.32 GB, free: 5.57 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.978e-05/0.4181, allocations: 29.7 kB / 1.32 GB, free: 5.535 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 6.857e-05/0.4182, allocations: 96.09 kB / 1.32 GB, free: 5.438 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 2.761e-05/0.4182, allocations: 23.81 kB / 1.32 GB, free: 5.414 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.266e-05/0.4183, allocations: 41.64 kB / 1.32 GB, free: 5.367 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.000146/0.4184, allocations: 326.8 kB / 1.32 GB, free: 5.039 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001618/0.4186, allocations: 47.97 kB / 1.32 GB, free: 4.992 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001774/0.4188, allocations: 96.17 kB / 1.321 GB, free: 4.883 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002693/0.419, allocations: 154.8 kB / 1.321 GB, free: 4.707 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.419, allocations: 0 / 1.321 GB, free: 4.707 MB / 1.014 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004268/0.4195, allocations: 215.2 kB / 1.321 GB, free: 4.484 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 4.042e-05/0.4195, allocations: 37.69 kB / 1.321 GB, free: 4.441 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.483e-06/0.4195, allocations: 4.078 kB / 1.321 GB, free: 4.438 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.364e-05/0.4195, allocations: 48 / 1.321 GB, free: 4.438 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000105/0.4196, allocations: 19.97 kB / 1.321 GB, free: 4.418 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.899e-06/0.4197, allocations: 7.922 kB / 1.321 GB, free: 4.41 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001836/0.4198, allocations: 39.91 kB / 1.321 GB, free: 4.371 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.975e-05/0.4199, allocations: 12.06 kB / 1.321 GB, free: 4.359 MB / 1.014 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 0.0001069/0.42, allocations: 128.2 kB / 1.321 GB, free: 4.227 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.495e-05/0.42, allocations: 7.953 kB / 1.321 GB, free: 4.219 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003041/0.4203, allocations: 125.9 kB / 1.321 GB, free: 4.086 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.4203, allocations: 4 kB / 1.321 GB, free: 4.082 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.4203, allocations: 0 / 1.321 GB, free: 4.082 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.4203, allocations: 0 / 1.321 GB, free: 4.082 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004386/0.4207, allocations: 349.5 kB / 1.322 GB, free: 3.691 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.4207, allocations: 0 / 1.322 GB, free: 3.691 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.391e-05/0.4208, allocations: 8 kB / 1.322 GB, free: 3.684 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.397e-06/0.4208, allocations: 3.984 kB / 1.322 GB, free: 3.68 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.076e-05/0.4208, allocations: 4 kB / 1.322 GB, free: 3.676 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.4208, allocations: 0 / 1.322 GB, free: 3.676 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/0.4208, allocations: 7.875 kB / 1.322 GB, free: 3.668 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002887/0.4211, allocations: 215.5 kB / 1.322 GB, free: 3.441 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 1.017e-05/0.4211, allocations: 7.875 kB / 1.322 GB, free: 3.434 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.1e-05/0.4211, allocations: 4 kB / 1.322 GB, free: 3.43 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.862e-05/0.4212, allocations: 7.984 kB / 1.322 GB, free: 3.422 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.8e-05/0.4212, allocations: 11.92 kB / 1.322 GB, free: 3.41 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.679e-06/0.4213, allocations: 11.94 kB / 1.322 GB, free: 3.398 MB / 1.014 GB Notification: Performance of sorting global known variables: time 5.44e-05/0.4213, allocations: 95.27 kB / 1.322 GB, free: 3.305 MB / 1.014 GB Notification: Performance of sort global known variables: time 6e-08/0.4213, allocations: 0 / 1.322 GB, free: 3.305 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002504/0.4216, allocations: 23.95 kB / 1.322 GB, free: 3.281 MB / 1.014 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.0001479/0.4217, allocations: 111.8 kB / 1.322 GB, free: 3.164 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0003752/0.4221, allocations: 159.2 kB / 1.322 GB, free: 2.996 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.4221, allocations: 4.312 kB / 1.322 GB, free: 2.992 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0001147/0.4222, allocations: 35.97 kB / 1.322 GB, free: 2.957 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002871/0.4225, allocations: 11.98 kB / 1.322 GB, free: 2.945 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004134/0.4229, allocations: 183 kB / 1.322 GB, free: 2.742 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003585/0.4233, allocations: 0.6906 MB / 1.323 GB, free: 2.027 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 4.004e-05/0.4233, allocations: 11.98 kB / 1.323 GB, free: 2.016 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.56e-05/0.4233, allocations: 11.44 kB / 1.323 GB, free: 2.004 MB / 1.014 GB Notification: Performance of SimCode: time 3.11e-07/0.4233, allocations: 3.938 kB / 1.323 GB, free: 2 MB / 1.014 GB Notification: Performance of Templates: time 0.00467/0.428, allocations: 1.471 MB / 1.325 GB, free: 0.5469 MB / 1.014 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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 9.263359817676246]