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.001671/0.001671, allocations: 115.7 kB / 16.42 MB, free: 6.516 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.001718/0.001718, allocations: 190.7 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 2.047/2.047, 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 11.0.1-master/package.mo): time 2.768/2.768, allocations: 461.9 MB / 0.7355 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001613/0.001613, allocations: 67.89 kB / 1.055 GB, free: 7.684 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.233/1.234, allocations: 157.4 MB / 1.208 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002635/1.237, allocations: 0.7443 MB / 1.209 GB, free: 12.91 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002103/1.239, allocations: 1.084 MB / 1.21 GB, free: 11.81 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.43e-05/1.239, allocations: 0 / 1.21 GB, free: 11.81 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 4.281e-05/1.239, allocations: 3.938 kB / 1.21 GB, free: 11.8 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 9.781e-05/1.24, allocations: 7.875 kB / 1.21 GB, free: 11.8 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.000442/1.24, allocations: 55.81 kB / 1.21 GB, free: 11.74 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001683/1.24, allocations: 71.78 kB / 1.21 GB, free: 11.67 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001576/1.24, allocations: 20.17 kB / 1.21 GB, free: 11.65 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001241/1.24, allocations: 35.84 kB / 1.21 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.943e-05/1.241, allocations: 31.84 kB / 1.21 GB, free: 11.58 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.131e-05/1.241, allocations: 4 kB / 1.21 GB, free: 11.58 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 9.153e-05/1.241, allocations: 19.98 kB / 1.21 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.069e-05/1.241, allocations: 19.92 kB / 1.21 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 6.773e-05/1.241, allocations: 27.86 kB / 1.211 GB, free: 11.51 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001914/1.241, allocations: 79.75 kB / 1.211 GB, free: 11.43 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/1.241, allocations: 3.984 kB / 1.211 GB, free: 11.43 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.603e-06/1.241, allocations: 0 / 1.211 GB, free: 11.43 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.086e-05/1.241, allocations: 0 / 1.211 GB, free: 11.43 MB / 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.0006741/1.242, allocations: 377 kB / 1.211 GB, free: 11.02 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.312e-05/1.242, allocations: 8.031 kB / 1.211 GB, free: 11.01 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.8e-05/1.242, allocations: 8.844 kB / 1.211 GB, free: 11 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001582/1.242, allocations: 188 kB / 1.211 GB, free: 10.78 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.629e-05/1.242, allocations: 4.375 kB / 1.211 GB, free: 10.78 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.151e-05/1.242, allocations: 4.375 kB / 1.211 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002377/1.242, allocations: 62.23 kB / 1.211 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/1.242, allocations: 7.938 kB / 1.211 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.382e-05/1.242, allocations: 0 / 1.211 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.695e-06/1.242, allocations: 4 kB / 1.211 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002006/1.243, allocations: 47.89 kB / 1.211 GB, free: 10.65 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007401/1.243, allocations: 320.7 kB / 1.212 GB, free: 10.29 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001794/1.244, allocations: 58.55 kB / 1.212 GB, free: 10.22 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001036/1.244, allocations: 28.97 kB / 1.212 GB, free: 10.19 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 3.118e-05/1.244, allocations: 4.031 kB / 1.212 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002747/1.244, allocations: 83.27 kB / 1.212 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 2.575e-06/1.244, allocations: 4 kB / 1.212 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7): time 0.0004628/1.244, allocations: 121.6 kB / 1.212 GB, free: 9.961 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.785e-05/1.245, allocations: 55.41 kB / 1.212 GB, free: 9.895 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001207/1.245, allocations: 125.7 kB / 1.212 GB, free: 9.762 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.441e-05/1.245, allocations: 29.7 kB / 1.212 GB, free: 9.727 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.166e-05/1.245, allocations: 88.14 kB / 1.212 GB, free: 9.637 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.766e-05/1.245, allocations: 15.78 kB / 1.212 GB, free: 9.621 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.993e-05/1.245, allocations: 37.66 kB / 1.212 GB, free: 9.578 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001415/1.245, allocations: 326.8 kB / 1.213 GB, free: 9.25 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001129/1.245, allocations: 27.97 kB / 1.213 GB, free: 9.223 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001519/1.245, allocations: 78.36 kB / 1.213 GB, free: 9.125 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002434/1.246, allocations: 113.8 kB / 1.213 GB, free: 8.992 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/1.246, allocations: 4 kB / 1.213 GB, free: 8.988 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003402/1.246, allocations: 129.4 kB / 1.213 GB, free: 8.855 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.911e-05/1.246, allocations: 4 kB / 1.213 GB, free: 8.852 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/1.246, allocations: 0 / 1.213 GB, free: 8.852 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.735e-05/1.246, allocations: 4.219 kB / 1.213 GB, free: 8.848 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001433/1.246, allocations: 19.98 kB / 1.213 GB, free: 8.828 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.413e-05/1.246, allocations: 4 kB / 1.213 GB, free: 8.824 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.442e-05/1.246, allocations: 19.86 kB / 1.213 GB, free: 8.805 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.534e-05/1.246, allocations: 4 kB / 1.213 GB, free: 8.801 MB / 0.9356 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.0001084/1.246, allocations: 125.8 kB / 1.213 GB, free: 8.668 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.094e-05/1.246, allocations: 7.891 kB / 1.213 GB, free: 8.66 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.696e-05/1.246, allocations: 16.31 kB / 1.213 GB, free: 8.641 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/1.246, allocations: 4 kB / 1.213 GB, free: 8.637 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/1.246, allocations: 0 / 1.213 GB, free: 8.637 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.41e-05/1.247, allocations: 81.02 kB / 1.213 GB, free: 8.539 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.545e-05/1.247, allocations: 8 kB / 1.213 GB, free: 8.531 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.078e-05/1.247, allocations: 11.92 kB / 1.213 GB, free: 8.52 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.038e-05/1.247, allocations: 7.984 kB / 1.213 GB, free: 8.512 MB / 0.9356 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003207/1.247, allocations: 184.9 kB / 1.213 GB, free: 8.324 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003065/1.247, allocations: 278.7 kB / 1.214 GB, free: 8.035 MB / 0.9356 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001064/1.247, allocations: 27.97 kB / 1.214 GB, free: 8.008 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.961e-05/1.248, allocations: 95.27 kB / 1.214 GB, free: 7.914 MB / 0.9356 GB Notification: Performance of Backend: time 7.01e-07/1.248, allocations: 0 / 1.214 GB, free: 7.914 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0005487/1.248, allocations: 132.2 kB / 1.214 GB, free: 7.781 MB / 0.9356 GB Notification: Performance of SimCode: time 0.0006651/1.249, allocations: 0.6152 MB / 1.214 GB, free: 7.121 MB / 0.9356 GB Notification: Performance of Templates: time 0.00442/1.253, allocations: 1.087 MB / 1.215 GB, free: 6.047 MB / 0.9356 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