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.009701/0.0097, allocations: 102.1 kB / 15.73 MB, free: 6.055 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.001913/0.001913, allocations: 198.4 kB / 16.68 MB, free: 5.984 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.59/1.59, allocations: 222.9 MB / 240.4 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.113/3.113, allocations: 461.9 MB / 0.7347 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001454/0.001454, allocations: 63.91 kB / 1.054 GB, free: 7.16 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.361/0.3625, allocations: 157.4 MB / 1.208 GB, free: 9.652 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002413/0.3649, allocations: 0.7477 MB / 1.208 GB, free: 8.902 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001707/0.3667, allocations: 1.073 MB / 1.21 GB, free: 7.816 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.364e-05/0.3668, allocations: 0 / 1.21 GB, free: 7.816 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.495e-05/0.3668, allocations: 3.938 kB / 1.21 GB, free: 7.812 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001042/0.367, allocations: 19.86 kB / 1.21 GB, free: 7.793 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003994/0.3674, allocations: 51.81 kB / 1.21 GB, free: 7.742 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002268/0.3676, allocations: 71.78 kB / 1.21 GB, free: 7.672 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000146/0.3678, allocations: 20.17 kB / 1.21 GB, free: 7.648 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001003/0.3679, allocations: 27.92 kB / 1.21 GB, free: 7.621 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.5e-05/0.3679, allocations: 35.83 kB / 1.21 GB, free: 7.586 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.055e-05/0.368, allocations: 8 kB / 1.21 GB, free: 7.578 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 8.159e-05/0.3681, allocations: 23.92 kB / 1.21 GB, free: 7.555 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.927e-05/0.3681, allocations: 15.98 kB / 1.21 GB, free: 7.539 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.061e-05/0.3682, allocations: 31.75 kB / 1.21 GB, free: 7.508 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001725/0.3683, allocations: 83.72 kB / 1.21 GB, free: 7.426 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.3683, allocations: 0 / 1.21 GB, free: 7.426 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.014e-06/0.3683, allocations: 0 / 1.21 GB, free: 7.426 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.434e-06/0.3684, allocations: 4 kB / 1.21 GB, free: 7.422 MB / 0.9669 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.0005943/0.369, allocations: 375.2 kB / 1.21 GB, free: 7.008 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.369, allocations: 8.625 kB / 1.21 GB, free: 7 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.422e-05/0.3691, allocations: 8.844 kB / 1.21 GB, free: 6.992 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001613/0.3692, allocations: 176.2 kB / 1.21 GB, free: 6.781 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.553e-05/0.3693, allocations: 12.31 kB / 1.21 GB, free: 6.77 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.993e-05/0.3693, allocations: 4.375 kB / 1.21 GB, free: 6.766 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000215/0.3695, allocations: 70.72 kB / 1.211 GB, free: 6.691 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.3695, allocations: 3.938 kB / 1.211 GB, free: 6.688 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.379e-05/0.3695, allocations: 4 kB / 1.211 GB, free: 6.684 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.3695, allocations: 0 / 1.211 GB, free: 6.684 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001706/0.3697, allocations: 43.95 kB / 1.211 GB, free: 6.641 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007098/0.3704, allocations: 320.6 kB / 1.211 GB, free: 6.277 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001757/0.3706, allocations: 62.55 kB / 1.211 GB, free: 6.207 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.316e-05/0.3707, allocations: 24.97 kB / 1.211 GB, free: 6.18 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.648e-05/0.3708, allocations: 3.984 kB / 1.211 GB, free: 6.176 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000266/0.371, allocations: 79.41 kB / 1.211 GB, free: 6.086 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.924e-06/0.371, allocations: 4 kB / 1.211 GB, free: 6.082 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0004297/0.3715, allocations: 129.6 kB / 1.211 GB, free: 5.949 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.633e-05/0.3715, allocations: 51.41 kB / 1.211 GB, free: 5.887 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001213/0.3717, allocations: 125.7 kB / 1.211 GB, free: 5.754 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.016e-05/0.3717, allocations: 33.64 kB / 1.211 GB, free: 5.715 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.966e-05/0.3718, allocations: 88.14 kB / 1.211 GB, free: 5.625 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.403e-05/0.3718, allocations: 23.73 kB / 1.211 GB, free: 5.602 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.896e-05/0.3719, allocations: 29.7 kB / 1.212 GB, free: 5.566 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001291/0.372, allocations: 322.8 kB / 1.212 GB, free: 5.242 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001171/0.3721, allocations: 31.91 kB / 1.212 GB, free: 5.211 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001504/0.3723, allocations: 73.98 kB / 1.212 GB, free: 5.117 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000235/0.3725, allocations: 105.9 kB / 1.212 GB, free: 4.992 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.3725, allocations: 0 / 1.212 GB, free: 4.992 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003267/0.3729, allocations: 133.4 kB / 1.212 GB, free: 4.855 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.241e-05/0.3729, allocations: 11.94 kB / 1.212 GB, free: 4.844 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.3729, allocations: 224 / 1.212 GB, free: 4.844 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.419e-05/0.3729, allocations: 8 kB / 1.212 GB, free: 4.836 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001517/0.3731, allocations: 19.97 kB / 1.212 GB, free: 4.816 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.036e-06/0.3731, allocations: 0 / 1.212 GB, free: 4.816 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001103/0.3732, allocations: 15.91 kB / 1.212 GB, free: 4.801 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.036e-05/0.3733, allocations: 4 kB / 1.212 GB, free: 4.797 MB / 0.9669 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.0001679/0.3734, allocations: 125.7 kB / 1.212 GB, free: 4.664 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.416e-05/0.3735, allocations: 4 kB / 1.212 GB, free: 4.66 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.605e-05/0.3735, allocations: 8.375 kB / 1.212 GB, free: 4.648 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.162e-06/0.3735, allocations: 8 kB / 1.212 GB, free: 4.641 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/0.3735, allocations: 0 / 1.212 GB, free: 4.641 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.985e-06/0.3736, allocations: 0 / 1.212 GB, free: 4.641 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007034/0.3743, allocations: 374.3 kB / 1.213 GB, free: 4.219 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.3743, allocations: 0 / 1.213 GB, free: 4.219 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.238e-05/0.3743, allocations: 11.98 kB / 1.213 GB, free: 4.207 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.548e-06/0.3744, allocations: 0 / 1.213 GB, free: 4.207 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.107e-05/0.3744, allocations: 4 kB / 1.213 GB, free: 4.203 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.342e-06/0.3744, allocations: 3.938 kB / 1.213 GB, free: 4.199 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.3744, allocations: 3.938 kB / 1.213 GB, free: 4.195 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000306/0.3747, allocations: 211.3 kB / 1.213 GB, free: 3.973 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.831e-05/0.3748, allocations: 81.05 kB / 1.213 GB, free: 3.875 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.235e-05/0.3748, allocations: 8 kB / 1.213 GB, free: 3.867 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.636e-05/0.3749, allocations: 15.92 kB / 1.213 GB, free: 3.852 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.525e-05/0.3749, allocations: 0 / 1.213 GB, free: 3.852 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.867e-06/0.3749, allocations: 4 kB / 1.213 GB, free: 3.848 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.896e-05/0.375, allocations: 95.27 kB / 1.213 GB, free: 3.754 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.21e-07/0.375, allocations: 0 / 1.213 GB, free: 3.754 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003404/0.3754, allocations: 19.91 kB / 1.213 GB, free: 3.734 MB / 0.9669 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 (samTri1.y,samTri.y,$whenCondition2,$whenCondition1,triggeredSampler.y,triggeredSampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001846/0.3755, allocations: 107.2 kB / 1.213 GB, free: 3.621 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002877/0.3758, allocations: 83.88 kB / 1.213 GB, free: 3.539 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3759, allocations: 0 / 1.213 GB, free: 3.539 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001149/0.376, allocations: 31.92 kB / 1.213 GB, free: 3.508 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003005/0.3763, allocations: 14.42 kB / 1.213 GB, free: 3.496 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004101/0.3767, allocations: 157.7 kB / 1.214 GB, free: 3.316 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003489/0.3771, allocations: 0.6885 MB / 1.214 GB, free: 2.602 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 4.109e-05/0.3771, allocations: 11.98 kB / 1.214 GB, free: 2.59 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.464e-05/0.3772, allocations: 15.44 kB / 1.214 GB, free: 2.574 MB / 0.9669 GB Notification: Performance of SimCode: time 4e-07/0.3772, allocations: 3.938 kB / 1.214 GB, free: 2.57 MB / 0.9669 GB Notification: Performance of Templates: time 0.00435/0.3815, allocations: 0.9759 MB / 1.215 GB, free: 1.605 MB / 0.9669 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/jenkins/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