Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.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.SampleTriggerNegativeStartTime,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.SampleTriggerNegativeStartTime") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime,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.SampleTriggerNegativeStartTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001422/0.001422, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001525/0.001525, allocations: 191.2 kB / 16.25 MB, free: 6.633 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.512/1.512, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.055/3.055, allocations: 461.9 MB / 0.7343 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001518/0.001518, allocations: 63.61 kB / 0.8986 GB, free: 37.17 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4108/0.4123, allocations: 157.4 MB / 1.052 GB, free: 8.742 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.002398/0.4148, allocations: 0.8181 MB / 1.053 GB, free: 7.922 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001611/0.4164, allocations: 1.077 MB / 1.054 GB, free: 6.832 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.271e-05/0.4165, allocations: 0 / 1.054 GB, free: 6.832 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.852e-05/0.4165, allocations: 7.938 kB / 1.054 GB, free: 6.824 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.491e-05/0.4167, allocations: 7.922 kB / 1.054 GB, free: 6.816 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003749/0.417, allocations: 51.89 kB / 1.054 GB, free: 6.766 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001139/0.4172, allocations: 67.78 kB / 1.054 GB, free: 6.699 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001428/0.4173, allocations: 20.17 kB / 1.054 GB, free: 6.676 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.825e-05/0.4174, allocations: 31.91 kB / 1.054 GB, free: 6.645 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.039e-05/0.4175, allocations: 31.84 kB / 1.054 GB, free: 6.613 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.937e-05/0.4175, allocations: 8 kB / 1.054 GB, free: 6.605 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.871e-05/0.4176, allocations: 19.98 kB / 1.054 GB, free: 6.586 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.497e-05/0.4176, allocations: 8 kB / 1.054 GB, free: 6.578 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.971e-05/0.4177, allocations: 39.78 kB / 1.054 GB, free: 6.539 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001793/0.4179, allocations: 75.75 kB / 1.055 GB, free: 6.465 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 1.127e-05/0.4179, allocations: 7.984 kB / 1.055 GB, free: 6.457 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.545e-06/0.4179, allocations: 3.938 kB / 1.055 GB, free: 6.453 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.514e-06/0.4179, allocations: 0 / 1.055 GB, free: 6.453 MB / 0.8106 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.0007205/0.4186, allocations: 377 kB / 1.055 GB, free: 6.039 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.4187, allocations: 16.62 kB / 1.055 GB, free: 6.023 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.529e-05/0.4187, allocations: 8.844 kB / 1.055 GB, free: 6.016 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000147/0.4189, allocations: 172.3 kB / 1.055 GB, free: 5.809 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.502e-05/0.4189, allocations: 384 / 1.055 GB, free: 5.809 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.743e-05/0.4189, allocations: 8.375 kB / 1.055 GB, free: 5.801 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002055/0.4192, allocations: 66.17 kB / 1.055 GB, free: 5.73 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.4192, allocations: 3.938 kB / 1.055 GB, free: 5.727 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.213e-05/0.4192, allocations: 0 / 1.055 GB, free: 5.727 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.4192, allocations: 4 kB / 1.055 GB, free: 5.723 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001667/0.4194, allocations: 47.95 kB / 1.055 GB, free: 5.676 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007252/0.4201, allocations: 324.6 kB / 1.055 GB, free: 5.309 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001699/0.4203, allocations: 54.55 kB / 1.056 GB, free: 5.246 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.459e-05/0.4204, allocations: 32.97 kB / 1.056 GB, free: 5.211 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.51e-05/0.4204, allocations: 3.938 kB / 1.056 GB, free: 5.207 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002187/0.4206, allocations: 79.36 kB / 1.056 GB, free: 5.117 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.573e-06/0.4207, allocations: 0 / 1.056 GB, free: 5.117 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004228/0.4211, allocations: 133.6 kB / 1.056 GB, free: 4.98 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.149e-05/0.4211, allocations: 55.41 kB / 1.056 GB, free: 4.914 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001154/0.4213, allocations: 125.8 kB / 1.056 GB, free: 4.781 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.92e-05/0.4213, allocations: 25.7 kB / 1.056 GB, free: 4.75 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.549e-05/0.4214, allocations: 96.05 kB / 1.056 GB, free: 4.652 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.108e-05/0.4214, allocations: 15.73 kB / 1.056 GB, free: 4.637 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.601e-05/0.4214, allocations: 29.72 kB / 1.056 GB, free: 4.602 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001276/0.4216, allocations: 326.8 kB / 1.056 GB, free: 4.273 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000109/0.4217, allocations: 31.91 kB / 1.056 GB, free: 4.242 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001292/0.4218, allocations: 69.98 kB / 1.057 GB, free: 4.152 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000231/0.4221, allocations: 113.8 kB / 1.057 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.4221, allocations: 4 kB / 1.057 GB, free: 4.016 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003079/0.4224, allocations: 129.4 kB / 1.057 GB, free: 3.883 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.864e-05/0.4224, allocations: 4 kB / 1.057 GB, free: 3.879 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.4224, allocations: 4 kB / 1.057 GB, free: 3.875 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.131e-05/0.4225, allocations: 3.984 kB / 1.057 GB, free: 3.871 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001396/0.4226, allocations: 20.14 kB / 1.057 GB, free: 3.852 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.32e-05/0.4226, allocations: 8 kB / 1.057 GB, free: 3.844 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.934e-05/0.4227, allocations: 7.984 kB / 1.057 GB, free: 3.836 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.942e-05/0.4227, allocations: 8 kB / 1.057 GB, free: 3.828 MB / 0.8106 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.0001347/0.4229, allocations: 121.8 kB / 1.057 GB, free: 3.699 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.674e-05/0.4229, allocations: 7.891 kB / 1.057 GB, free: 3.691 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.879e-05/0.4229, allocations: 16.31 kB / 1.057 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.423, allocations: 0 / 1.057 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/0.423, allocations: 0 / 1.057 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.423, allocations: 4 kB / 1.057 GB, free: 3.672 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005581/0.4235, allocations: 374.5 kB / 1.057 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.4236, allocations: 0 / 1.057 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.335e-05/0.4236, allocations: 11.92 kB / 1.057 GB, free: 3.238 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.496e-06/0.4236, allocations: 4 kB / 1.057 GB, free: 3.234 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.445e-05/0.4236, allocations: 0 / 1.057 GB, free: 3.234 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.4237, allocations: 3.938 kB / 1.057 GB, free: 3.23 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.4237, allocations: 4.391 kB / 1.057 GB, free: 3.227 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003588/0.424, allocations: 203.4 kB / 1.058 GB, free: 3.012 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.709e-05/0.4241, allocations: 88.95 kB / 1.058 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.45e-05/0.4241, allocations: 4 kB / 1.058 GB, free: 2.902 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.22e-05/0.4242, allocations: 11.92 kB / 1.058 GB, free: 2.891 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.632e-05/0.4243, allocations: 8 kB / 1.058 GB, free: 2.883 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.017e-05/0.4243, allocations: 0 / 1.058 GB, free: 2.883 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 8.431e-05/0.4244, allocations: 103.1 kB / 1.058 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of sort global known variables: time 9.1e-08/0.4244, allocations: 0 / 1.058 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000277/0.4247, allocations: 20 kB / 1.058 GB, free: 2.762 MB / 0.8106 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.0002764/0.425, allocations: 111.2 kB / 1.058 GB, free: 2.645 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003286/0.4253, allocations: 79.95 kB / 1.058 GB, free: 2.566 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.4253, allocations: 0 / 1.058 GB, free: 2.566 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001071/0.4254, allocations: 31.97 kB / 1.058 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002927/0.4257, allocations: 11.98 kB / 1.058 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004457/0.4262, allocations: 178.5 kB / 1.058 GB, free: 2.32 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003361/0.4265, allocations: 0.6885 MB / 1.059 GB, free: 1.605 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 4.075e-05/0.4266, allocations: 7.984 kB / 1.059 GB, free: 1.598 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.782e-05/0.4266, allocations: 11.44 kB / 1.059 GB, free: 1.586 MB / 0.8106 GB Notification: Performance of SimCode: time 2.11e-07/0.4266, allocations: 0 / 1.059 GB, free: 1.586 MB / 0.8106 GB Notification: Performance of Templates: time 0.004102/0.4307, allocations: 0.9102 MB / 1.06 GB, free: 0.7188 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.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