Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.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_10_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_10_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.01224/0.01224, allocations: 95.42 kB / 15.73 MB, free: 6.039 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.00292/0.002919, allocations: 203.8 kB / 16.68 MB, free: 5.969 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.57/1.57, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.96/2.96, allocations: 437 MB / 0.7105 GB, free: 5.031 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001836/0.001836, allocations: 63.91 kB / 1.019 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4068/0.4087, allocations: 151.6 MB / 1.167 GB, free: 6.797 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002227/0.4109, allocations: 0.7486 MB / 1.167 GB, free: 6.043 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001682/0.4127, allocations: 1.081 MB / 1.168 GB, free: 4.945 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.372e-05/0.4127, allocations: 0 / 1.168 GB, free: 4.945 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 4.135e-05/0.4128, allocations: 3.938 kB / 1.168 GB, free: 4.941 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 8.402e-05/0.4129, allocations: 11.86 kB / 1.168 GB, free: 4.93 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003804/0.4133, allocations: 55.33 kB / 1.168 GB, free: 4.879 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001404/0.4134, allocations: 75.77 kB / 1.169 GB, free: 4.805 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001293/0.4136, allocations: 24.17 kB / 1.169 GB, free: 4.777 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 9.226e-05/0.4137, allocations: 23.92 kB / 1.169 GB, free: 4.754 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 7.057e-05/0.4138, allocations: 35.84 kB / 1.169 GB, free: 4.719 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.014e-05/0.4138, allocations: 4 kB / 1.169 GB, free: 4.715 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001025/0.4139, allocations: 19.98 kB / 1.169 GB, free: 4.695 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.648e-05/0.4139, allocations: 23.84 kB / 1.169 GB, free: 4.672 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 4.94e-05/0.414, allocations: 31.86 kB / 1.169 GB, free: 4.641 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001761/0.4142, allocations: 75.62 kB / 1.169 GB, free: 4.566 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.4142, allocations: 4 kB / 1.169 GB, free: 4.562 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.254e-06/0.4142, allocations: 0 / 1.169 GB, free: 4.562 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.103e-05/0.4142, allocations: 0 / 1.169 GB, free: 4.562 MB / 0.92 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.0005883/0.4148, allocations: 391.1 kB / 1.169 GB, free: 4.133 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.4148, allocations: 15.98 kB / 1.169 GB, free: 4.117 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.758e-05/0.4149, allocations: 8.891 kB / 1.169 GB, free: 4.109 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001435/0.4151, allocations: 168.3 kB / 1.169 GB, free: 3.906 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.42e-05/0.4151, allocations: 4.375 kB / 1.169 GB, free: 3.902 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.14e-05/0.4151, allocations: 8.375 kB / 1.169 GB, free: 3.895 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002274/0.4153, allocations: 70.16 kB / 1.169 GB, free: 3.82 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.283e-05/0.4154, allocations: 11.92 kB / 1.169 GB, free: 3.809 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.176e-05/0.4154, allocations: 0 / 1.169 GB, free: 3.809 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.238e-06/0.4154, allocations: 0 / 1.169 GB, free: 3.809 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001833/0.4156, allocations: 47.95 kB / 1.169 GB, free: 3.762 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007333/0.4163, allocations: 328.6 kB / 1.17 GB, free: 3.391 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001917/0.4165, allocations: 54.55 kB / 1.17 GB, free: 3.328 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00011/0.4167, allocations: 36.89 kB / 1.17 GB, free: 3.289 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 3.255e-05/0.4167, allocations: 4 kB / 1.17 GB, free: 3.285 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002483/0.417, allocations: 79.33 kB / 1.17 GB, free: 3.195 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 4.689e-06/0.417, allocations: 4 kB / 1.17 GB, free: 3.191 MB / 0.92 GB Notification: Performance of matching and sorting (n=7): time 0.0004637/0.4174, allocations: 121.7 kB / 1.17 GB, free: 3.066 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.572e-05/0.4175, allocations: 59.41 kB / 1.17 GB, free: 2.996 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001197/0.4176, allocations: 117.8 kB / 1.17 GB, free: 2.871 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.346e-05/0.4177, allocations: 29.7 kB / 1.17 GB, free: 2.836 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 9.017e-05/0.4178, allocations: 92.11 kB / 1.17 GB, free: 2.742 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.934e-05/0.4178, allocations: 15.91 kB / 1.17 GB, free: 2.727 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.852e-05/0.4179, allocations: 33.7 kB / 1.17 GB, free: 2.688 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001295/0.418, allocations: 326.8 kB / 1.171 GB, free: 2.359 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001152/0.4181, allocations: 23.98 kB / 1.171 GB, free: 2.336 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001588/0.4183, allocations: 69.98 kB / 1.171 GB, free: 2.246 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002385/0.4186, allocations: 113.8 kB / 1.171 GB, free: 2.113 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.4186, allocations: 0 / 1.171 GB, free: 2.113 MB / 0.92 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000367/0.419, allocations: 133.4 kB / 1.171 GB, free: 1.977 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.187e-05/0.419, allocations: 11.98 kB / 1.171 GB, free: 1.965 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.827e-06/0.419, allocations: 0 / 1.171 GB, free: 1.965 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.462e-05/0.419, allocations: 4.219 kB / 1.171 GB, free: 1.961 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001441/0.4192, allocations: 23.92 kB / 1.171 GB, free: 1.938 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.287e-05/0.4192, allocations: 4 kB / 1.171 GB, free: 1.934 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.18e-05/0.4193, allocations: 15.88 kB / 1.171 GB, free: 1.918 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.66e-05/0.4193, allocations: 4 kB / 1.171 GB, free: 1.914 MB / 0.92 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.0001327/0.4195, allocations: 125.7 kB / 1.171 GB, free: 1.781 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.061e-05/0.4195, allocations: 7.953 kB / 1.171 GB, free: 1.773 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.987e-05/0.4195, allocations: 16.31 kB / 1.171 GB, free: 1.758 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.4195, allocations: 0 / 1.171 GB, free: 1.758 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.4196, allocations: 4 kB / 1.171 GB, free: 1.754 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.012e-05/0.4196, allocations: 3.984 kB / 1.171 GB, free: 1.75 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005767/0.4202, allocations: 370.4 kB / 1.172 GB, free: 1.332 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.115e-06/0.4202, allocations: 0 / 1.172 GB, free: 1.332 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.659e-05/0.4202, allocations: 7.984 kB / 1.172 GB, free: 1.324 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.4202, allocations: 0 / 1.172 GB, free: 1.324 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.255e-05/0.4203, allocations: 4 kB / 1.172 GB, free: 1.32 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.4203, allocations: 7.938 kB / 1.172 GB, free: 1.312 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.4203, allocations: 0 / 1.172 GB, free: 1.312 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003201/0.4206, allocations: 195.5 kB / 1.172 GB, free: 1.105 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.077e-05/0.4207, allocations: 85.06 kB / 1.172 GB, free: 1.004 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.652e-05/0.4207, allocations: 0 / 1.172 GB, free: 1.004 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.835e-05/0.4208, allocations: 19.92 kB / 1.172 GB, free: 0.9844 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.929e-05/0.4208, allocations: 11.98 kB / 1.172 GB, free: 0.9727 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.415e-06/0.4208, allocations: 0 / 1.172 GB, free: 0.9727 MB / 0.92 GB Notification: Performance of sorting global known variables: time 6.485e-05/0.4209, allocations: 95.2 kB / 1.172 GB, free: 0.8789 MB / 0.92 GB Notification: Performance of sort global known variables: time 9e-08/0.4209, allocations: 0 / 1.172 GB, free: 0.8789 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002754/0.4212, allocations: 23.94 kB / 1.172 GB, free: 0.8555 MB / 0.92 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.0001855/0.4214, allocations: 100.2 kB / 1.172 GB, free: 0.75 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002887/0.4217, allocations: 79.94 kB / 1.172 GB, free: 0.6719 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.4217, allocations: 0 / 1.172 GB, free: 0.6719 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001346/0.4218, allocations: 35.92 kB / 1.172 GB, free: 0.6367 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002825/0.4221, allocations: 16.59 kB / 1.172 GB, free: 0.6211 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003739/0.4225, allocations: 154 kB / 1.172 GB, free: 452 kB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002699/0.4228, allocations: 0.6927 MB / 1.173 GB, free: 15.72 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.859e-05/0.4228, allocations: 4 kB / 1.173 GB, free: 15.72 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.888e-05/0.4229, allocations: 15.38 kB / 1.173 GB, free: 15.7 MB / 0.9356 GB Notification: Performance of SimCode: time 2.21e-07/0.4229, allocations: 0 / 1.173 GB, free: 15.7 MB / 0.9356 GB Notification: Performance of Templates: time 0.003791/0.4267, allocations: 0.9757 MB / 1.174 GB, free: 14.73 MB / 0.9356 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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