Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.Logical.Sources.Validation.SampleTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001975/0.001975, allocations: 107.4 kB / 16.41 MB, free: 6.504 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.001938/0.001938, allocations: 188.3 kB / 17.35 MB, free: 5.738 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.515/1.515, allocations: 222.9 MB / 241 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.654/2.654, allocations: 469.4 MB / 0.7428 GB, free: 3.574 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001583/0.001583, allocations: 71.89 kB / 1.066 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9953/0.9969, allocations: 159.1 MB / 1.221 GB, free: 2.383 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002353/0.9994, allocations: 0.7444 MB / 1.222 GB, free: 1.641 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001744/1.001, allocations: 1.077 MB / 1.223 GB, free: 0.5508 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.054e-05/1.001, allocations: 0 / 1.223 GB, free: 0.5508 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 4.524e-05/1.001, allocations: 3.938 kB / 1.223 GB, free: 0.5469 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001132/1.001, allocations: 19.86 kB / 1.223 GB, free: 0.5273 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.000476/1.002, allocations: 55.81 kB / 1.223 GB, free: 484 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001413/1.002, allocations: 67.78 kB / 1.223 GB, free: 416 kB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001279/1.002, allocations: 16.17 kB / 1.223 GB, free: 396 kB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001004/1.002, allocations: 27.92 kB / 1.223 GB, free: 368 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.98e-05/1.002, allocations: 35.83 kB / 1.223 GB, free: 332 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.15e-05/1.002, allocations: 8 kB / 1.223 GB, free: 324 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 8.379e-05/1.003, allocations: 19.98 kB / 1.223 GB, free: 304 kB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.792e-05/1.003, allocations: 19.92 kB / 1.223 GB, free: 284 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 7.149e-05/1.003, allocations: 27.88 kB / 1.223 GB, free: 256 kB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002096/1.003, allocations: 83.67 kB / 1.223 GB, free: 172 kB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/1.003, allocations: 0 / 1.223 GB, free: 172 kB / 0.9356 GB Notification: Performance of FrontEnd: time 3.677e-06/1.003, allocations: 0 / 1.223 GB, free: 172 kB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.453e-05/1.003, allocations: 3.938 kB / 1.223 GB, free: 168 kB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0007106/1.004, allocations: 373 kB / 1.223 GB, free: 15.76 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.84e-05/1.004, allocations: 8.625 kB / 1.223 GB, free: 15.75 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.366e-05/1.004, allocations: 8.844 kB / 1.223 GB, free: 15.74 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001657/1.004, allocations: 192.1 kB / 1.224 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.714e-05/1.004, allocations: 4.375 kB / 1.224 GB, free: 15.51 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.22e-05/1.004, allocations: 4.375 kB / 1.224 GB, free: 15.51 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002382/1.004, allocations: 66.16 kB / 1.224 GB, free: 15.44 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/1.004, allocations: 7.938 kB / 1.224 GB, free: 15.43 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.543e-05/1.004, allocations: 4 kB / 1.224 GB, free: 15.43 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/1.004, allocations: 0 / 1.224 GB, free: 15.43 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001946/1.005, allocations: 43.95 kB / 1.224 GB, free: 15.38 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008072/1.005, allocations: 324.6 kB / 1.224 GB, free: 15.02 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002189/1.006, allocations: 62.53 kB / 1.224 GB, free: 14.95 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000105/1.006, allocations: 28.97 kB / 1.224 GB, free: 14.91 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 3.073e-05/1.006, allocations: 7.984 kB / 1.224 GB, free: 14.91 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002604/1.006, allocations: 71.39 kB / 1.224 GB, free: 14.82 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 1.954e-06/1.006, allocations: 0 / 1.224 GB, free: 14.82 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7): time 0.0004946/1.006, allocations: 137.5 kB / 1.224 GB, free: 14.68 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.886e-05/1.007, allocations: 51.41 kB / 1.224 GB, free: 14.62 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001649/1.007, allocations: 125.8 kB / 1.225 GB, free: 14.49 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.664e-05/1.007, allocations: 29.7 kB / 1.225 GB, free: 14.45 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 7.799e-05/1.007, allocations: 88.14 kB / 1.225 GB, free: 14.36 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.621e-05/1.007, allocations: 19.8 kB / 1.225 GB, free: 14.34 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.258e-05/1.007, allocations: 29.7 kB / 1.225 GB, free: 14.31 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001694/1.007, allocations: 318.8 kB / 1.225 GB, free: 13.99 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001166/1.007, allocations: 31.97 kB / 1.225 GB, free: 13.96 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001611/1.007, allocations: 73.98 kB / 1.225 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002659/1.008, allocations: 117.8 kB / 1.225 GB, free: 13.73 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/1.008, allocations: 0 / 1.225 GB, free: 13.73 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003559/1.008, allocations: 129.5 kB / 1.225 GB, free: 13.59 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.217e-05/1.008, allocations: 5.562 kB / 1.225 GB, free: 13.59 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.422e-05/1.008, allocations: 4 kB / 1.225 GB, free: 13.59 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.163e-05/1.008, allocations: 0 / 1.225 GB, free: 13.59 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001601/1.008, allocations: 31.91 kB / 1.225 GB, free: 13.55 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.02e-05/1.008, allocations: 0 / 1.225 GB, free: 13.55 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.354e-05/1.008, allocations: 19.78 kB / 1.225 GB, free: 13.54 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.669e-05/1.009, allocations: 4 kB / 1.225 GB, free: 13.53 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 8 (triggeredSampler1.y,$PRE.triggeredSampler1.y,triggeredSampler.y,$PRE.triggeredSampler.y,samTri.y,$whenCondition1,samTri1.y,$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): 11 * 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 0.0001171/1.009, allocations: 130.4 kB / 1.225 GB, free: 13.39 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.636e-05/1.009, allocations: 4 kB / 1.226 GB, free: 13.39 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.431e-05/1.009, allocations: 8.375 kB / 1.226 GB, free: 13.38 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/1.009, allocations: 0 / 1.226 GB, free: 13.38 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/1.009, allocations: 0 / 1.226 GB, free: 13.38 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.301e-05/1.009, allocations: 85.02 kB / 1.226 GB, free: 13.27 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.854e-05/1.009, allocations: 3.984 kB / 1.226 GB, free: 13.27 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.887e-05/1.009, allocations: 11.94 kB / 1.226 GB, free: 13.26 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.087e-05/1.009, allocations: 11.98 kB / 1.226 GB, free: 13.25 MB / 0.9512 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003318/1.009, allocations: 180.9 kB / 1.226 GB, free: 13.06 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003367/1.01, allocations: 274.6 kB / 1.226 GB, free: 12.78 MB / 0.9512 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001156/1.01, allocations: 35.97 kB / 1.226 GB, free: 12.74 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 6.241e-05/1.01, allocations: 99.86 kB / 1.226 GB, free: 12.64 MB / 0.9512 GB Notification: Performance of Backend: time 3.51e-07/1.01, allocations: 0 / 1.226 GB, free: 12.64 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0005816/1.01, allocations: 134.3 kB / 1.226 GB, free: 12.51 MB / 0.9512 GB Notification: Performance of SimCode: time 0.0006907/1.011, allocations: 0.6043 MB / 1.227 GB, free: 11.86 MB / 0.9512 GB Notification: Performance of Templates: time 0.00456/1.016, allocations: 1.066 MB / 1.228 GB, free: 10.81 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,samTri.y,triggeredSampler.u,triggeredSampler.y,samTri1.y,triggeredSampler1.u,triggeredSampler1.y Variables in the result:ramp.duration,ramp.height,ramp.offset,ramp.startTime,samTri.period,samTri.shift,samTri.t0,samTri.y,samTri1.period,samTri1.shift,samTri1.t0,samTri1.y,time,triggeredSampler.u,triggeredSampler.y,triggeredSampler.y_start,triggeredSampler1.u,triggeredSampler1.y,triggeredSampler1.y_start