Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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.Examples.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001462/0.001462, allocations: 112.2 kB / 16.42 MB, free: 6.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001314/0.001314, allocations: 189.4 kB / 17.35 MB, free: 5.703 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.478/1.478, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.231/2.231, allocations: 390.2 MB / 0.6655 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001668/0.001668, allocations: 71.91 kB / 0.9515 GB, free: 7.676 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9626/0.9643, allocations: 140.4 MB / 1.089 GB, free: 5.527 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.002046/0.9664, allocations: 0.6612 MB / 1.089 GB, free: 5.109 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001329/0.9677, allocations: 1.052 MB / 1.09 GB, free: 4.332 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.217e-05/0.9678, allocations: 1.062 kB / 1.09 GB, free: 4.332 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.813e-05/0.9678, allocations: 4.688 kB / 1.09 GB, free: 4.328 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.742e-05/0.9679, allocations: 5.766 kB / 1.09 GB, free: 4.324 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002919/0.9682, allocations: 41 kB / 1.09 GB, free: 4.301 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001038/0.9683, allocations: 48.92 kB / 1.09 GB, free: 4.277 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001053/0.9684, allocations: 11 kB / 1.09 GB, free: 4.273 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.457e-05/0.9685, allocations: 23.48 kB / 1.09 GB, free: 4.262 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001238/0.9686, allocations: 23.27 kB / 1.09 GB, free: 4.25 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.822e-05/0.9686, allocations: 3.156 kB / 1.09 GB, free: 4.25 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.676e-05/0.9687, allocations: 18.33 kB / 1.09 GB, free: 4.246 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.294e-05/0.9688, allocations: 12.5 kB / 1.09 GB, free: 4.238 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.924e-05/0.9688, allocations: 19.42 kB / 1.09 GB, free: 4.227 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001493/0.969, allocations: 57.75 kB / 1.091 GB, free: 4.203 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.969, allocations: 0 / 1.091 GB, free: 4.203 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.575e-06/0.969, allocations: 4.75 kB / 1.091 GB, free: 4.199 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.839e-06/0.969, allocations: 0 / 1.091 GB, free: 4.199 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005856/0.9696, allocations: 363.6 kB / 1.091 GB, free: 3.836 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.877e-05/0.9696, allocations: 13.25 kB / 1.091 GB, free: 3.832 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.88e-05/0.9697, allocations: 3.812 kB / 1.091 GB, free: 3.832 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.448e-05/0.9698, allocations: 167.5 kB / 1.091 GB, free: 3.633 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.431e-05/0.9698, allocations: 10.41 kB / 1.091 GB, free: 3.625 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.844e-05/0.9698, allocations: 2.75 kB / 1.091 GB, free: 3.625 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002027/0.97, allocations: 62.7 kB / 1.091 GB, free: 3.586 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.97, allocations: 1.281 kB / 1.091 GB, free: 3.586 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.108e-05/0.9701, allocations: 3.938 kB / 1.091 GB, free: 3.582 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.9701, allocations: 1.5 kB / 1.091 GB, free: 3.582 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001899/0.9703, allocations: 42.31 kB / 1.091 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003919/0.9707, allocations: 278.4 kB / 1.091 GB, free: 3.289 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001644/0.9708, allocations: 60.7 kB / 1.092 GB, free: 3.25 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001013/0.9709, allocations: 29.09 kB / 1.092 GB, free: 3.238 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.243e-05/0.971, allocations: 1.062 kB / 1.092 GB, free: 3.238 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001938/0.9712, allocations: 80.58 kB / 1.092 GB, free: 3.176 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=6): time 1.432e-06/0.9712, allocations: 0 / 1.092 GB, free: 3.176 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0004211/0.9716, allocations: 119.1 kB / 1.092 GB, free: 3.125 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.495e-05/0.9716, allocations: 52.62 kB / 1.092 GB, free: 3.062 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.289e-05/0.9717, allocations: 104.3 kB / 1.092 GB, free: 2.961 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.282e-05/0.9717, allocations: 34.86 kB / 1.092 GB, free: 2.922 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.965e-05/0.9718, allocations: 82.83 kB / 1.092 GB, free: 2.84 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.898e-05/0.9718, allocations: 19.47 kB / 1.092 GB, free: 2.824 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.127e-05/0.9718, allocations: 22.27 kB / 1.092 GB, free: 2.805 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.509e-05/0.9719, allocations: 317.6 kB / 1.092 GB, free: 2.488 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001024/0.972, allocations: 23.36 kB / 1.092 GB, free: 2.484 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001107/0.9721, allocations: 54.28 kB / 1.092 GB, free: 2.441 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002004/0.9723, allocations: 77.41 kB / 1.092 GB, free: 2.395 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.9723, allocations: 4.438 kB / 1.092 GB, free: 2.391 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002765/0.9726, allocations: 110.3 kB / 1.093 GB, free: 2.332 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.752e-05/0.9726, allocations: 6.375 kB / 1.093 GB, free: 2.332 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.9727, allocations: 0.7812 kB / 1.093 GB, free: 2.332 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.679e-05/0.9727, allocations: 5.906 kB / 1.093 GB, free: 2.328 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001106/0.9728, allocations: 25.61 kB / 1.093 GB, free: 2.316 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.294e-06/0.9728, allocations: 1.125 kB / 1.093 GB, free: 2.316 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.684e-05/0.9729, allocations: 8.438 kB / 1.093 GB, free: 2.316 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.186e-05/0.9729, allocations: 10.52 kB / 1.093 GB, free: 2.309 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 (sampler1.firstTrigger,$PRE.sampler1.firstTrigger,sampler1.sampleTrigger,$whenCondition1,sampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * 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.247e-05/0.973, allocations: 122.7 kB / 1.093 GB, free: 2.184 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.513e-05/0.973, allocations: 2.906 kB / 1.093 GB, free: 2.184 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002892/0.9733, allocations: 100.1 kB / 1.093 GB, free: 2.133 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.102e-06/0.9733, allocations: 1.469 kB / 1.093 GB, free: 2.133 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.9733, allocations: 0 / 1.093 GB, free: 2.133 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.271e-05/0.9733, allocations: 83.34 kB / 1.093 GB, free: 2.035 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.721e-05/0.9734, allocations: 5.734 kB / 1.093 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.113e-05/0.9734, allocations: 8.719 kB / 1.093 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.639e-05/0.9735, allocations: 11.86 kB / 1.093 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003081/0.9738, allocations: 179.7 kB / 1.093 GB, free: 1.898 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002777/0.9741, allocations: 267.6 kB / 1.093 GB, free: 1.676 MB / 0.8575 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001098/0.9742, allocations: 30.58 kB / 1.093 GB, free: 1.668 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.004e-05/0.9742, allocations: 86.45 kB / 1.094 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of Backend: time 3.41e-07/0.9742, allocations: 0 / 1.094 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004805/0.9747, allocations: 115.8 kB / 1.094 GB, free: 1.52 MB / 0.8575 GB Notification: Performance of SimCode: time 0.0003946/0.9751, allocations: 0.5842 MB / 1.094 GB, free: 0.9141 MB / 0.8575 GB Notification: Performance of Templates: time 0.003614/0.9788, allocations: 0.8901 MB / 1.095 GB, free: 0.8242 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches