Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.SampleTriggerNegativeStartTime,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.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_10_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.000942/0.0009423, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.008947/0.008948, allocations: 169.5 kB / 16.26 MB, free: 6.613 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.484/1.484, allocations: 223.3 MB / 240.3 MB, free: 5.34 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.776/2.776, allocations: 437.8 MB / 0.7121 GB, free: 6.945 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004346/0.0004351, allocations: 11.94 kB / 0.8729 GB, free: 3.23 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8065/0.807, allocations: 153.8 MB / 1.023 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.001179/0.8082, allocations: 485.1 kB / 1.024 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001832/0.8101, allocations: 1.07 MB / 1.025 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.062e-05/0.8102, allocations: 4 kB / 1.025 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.753e-05/0.8102, allocations: 0 / 1.025 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001321/0.8104, allocations: 11.88 kB / 1.025 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004292/0.8108, allocations: 43.95 kB / 1.025 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001358/0.8109, allocations: 59.84 kB / 1.025 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001524/0.8111, allocations: 32.08 kB / 1.025 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001124/0.8112, allocations: 23.88 kB / 1.025 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 8.64e-05/0.8113, allocations: 23.91 kB / 1.025 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.168e-05/0.8114, allocations: 4 kB / 1.025 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 9.213e-05/0.8115, allocations: 15.98 kB / 1.025 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 3.369e-05/0.8115, allocations: 23.91 kB / 1.025 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.399e-05/0.8116, allocations: 49.55 kB / 1.025 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001757/0.8118, allocations: 75.73 kB / 1.025 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.191e-06/0.8118, allocations: 0 / 1.025 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.214e-06/0.8118, allocations: 0 / 1.025 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.941e-06/0.8118, allocations: 0 / 1.025 GB, free: 13.89 MB / 0.7794 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.000722/0.8125, allocations: 369.3 kB / 1.025 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/0.8126, allocations: 16.03 kB / 1.025 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.284e-05/0.8126, allocations: 8.844 kB / 1.025 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001443/0.8128, allocations: 176.2 kB / 1.025 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.869e-05/0.8128, allocations: 4.312 kB / 1.025 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.819e-05/0.8128, allocations: 4.375 kB / 1.025 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002259/0.8131, allocations: 78.22 kB / 1.026 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.8131, allocations: 3.938 kB / 1.026 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.412e-05/0.8131, allocations: 4 kB / 1.026 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.8131, allocations: 4 kB / 1.026 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002098/0.8133, allocations: 55.89 kB / 1.026 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000678/0.814, allocations: 336.6 kB / 1.026 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001738/0.8142, allocations: 58.56 kB / 1.026 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001123/0.8143, allocations: 41.05 kB / 1.026 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.117e-05/0.8144, allocations: 3.938 kB / 1.026 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002189/0.8146, allocations: 79.38 kB / 1.026 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.743e-06/0.8146, allocations: 0 / 1.026 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004465/0.8151, allocations: 145.6 kB / 1.026 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.377e-05/0.8151, allocations: 59.34 kB / 1.026 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001132/0.8152, allocations: 125.8 kB / 1.026 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.287e-05/0.8153, allocations: 29.7 kB / 1.026 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.876e-05/0.8153, allocations: 96.05 kB / 1.027 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.518e-05/0.8154, allocations: 15.81 kB / 1.027 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.234e-05/0.8154, allocations: 21.7 kB / 1.027 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000127/0.8155, allocations: 322.8 kB / 1.027 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000117/0.8157, allocations: 31.97 kB / 1.027 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001372/0.8158, allocations: 77.98 kB / 1.027 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002633/0.8161, allocations: 121.9 kB / 1.027 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.8161, allocations: 0 / 1.027 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003419/0.8164, allocations: 145.5 kB / 1.027 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.026e-05/0.8165, allocations: 8 kB / 1.027 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.8165, allocations: 3.938 kB / 1.027 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.157e-05/0.8165, allocations: 4 kB / 1.027 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001389/0.8167, allocations: 23.97 kB / 1.027 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.021e-05/0.8167, allocations: 3.938 kB / 1.027 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.021e-05/0.8168, allocations: 11.94 kB / 1.027 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.698e-05/0.8168, allocations: 4 kB / 1.027 GB, free: 11.19 MB / 0.7794 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.0001128/0.8169, allocations: 136.5 kB / 1.027 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.507e-05/0.8169, allocations: 3.906 kB / 1.027 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.282e-05/0.817, allocations: 8.375 kB / 1.027 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/0.817, allocations: 0 / 1.027 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.817, allocations: 0 / 1.027 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.817, allocations: 0 / 1.027 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005322/0.8175, allocations: 394.3 kB / 1.028 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.8176, allocations: 0 / 1.028 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.713e-05/0.8176, allocations: 11.98 kB / 1.028 GB, free: 10.58 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.889e-06/0.8176, allocations: 4 kB / 1.028 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.065e-06/0.8177, allocations: 0 / 1.028 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.466e-06/0.8177, allocations: 3.938 kB / 1.028 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.8177, allocations: 4 kB / 1.028 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003096/0.818, allocations: 211.4 kB / 1.028 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.179e-05/0.818, allocations: 81.09 kB / 1.028 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.705e-05/0.8181, allocations: 8 kB / 1.028 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.745e-05/0.8181, allocations: 15.92 kB / 1.028 GB, free: 10.22 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.946e-05/0.8182, allocations: 4 kB / 1.028 GB, free: 10.22 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.674e-06/0.8182, allocations: 4 kB / 1.028 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.576e-05/0.8183, allocations: 99.86 kB / 1.028 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.8183, allocations: 0 / 1.028 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002588/0.8185, allocations: 19.91 kB / 1.028 GB, free: 10.1 MB / 0.7794 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.0001818/0.8187, allocations: 115.2 kB / 1.028 GB, free: 9.977 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000295/0.819, allocations: 87.81 kB / 1.028 GB, free: 9.891 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.819, allocations: 448 / 1.028 GB, free: 9.891 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001304/0.8192, allocations: 51.91 kB / 1.028 GB, free: 9.84 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002846/0.8195, allocations: 13.89 kB / 1.029 GB, free: 9.828 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004148/0.8199, allocations: 173.4 kB / 1.029 GB, free: 9.637 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003845/0.8203, allocations: 0.6917 MB / 1.029 GB, free: 8.922 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.505e-05/0.8203, allocations: 11.98 kB / 1.029 GB, free: 8.91 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.938e-05/0.8204, allocations: 7.438 kB / 1.029 GB, free: 8.902 MB / 0.7794 GB Notification: Performance of SimCode: time 2.6e-07/0.8204, allocations: 4 kB / 1.029 GB, free: 8.898 MB / 0.7794 GB Notification: Performance of Templates: time 0.003767/0.8242, allocations: 0.8584 MB / 1.03 GB, free: 8.078 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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