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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001927/0.001927, allocations: 112.6 kB / 16.37 MB, free: 6 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.002411/0.002411, allocations: 196 kB / 17.31 MB, free: 5.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.516/1.516, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.653/2.653, allocations: 442.6 MB / 0.7165 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001353/0.001353, allocations: 60.5 kB / 0.8774 GB, free: 10.94 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4096/0.411, allocations: 153 MB / 1.027 GB, free: 2.023 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.002189/0.4132, allocations: 0.7748 MB / 1.028 GB, free: 1.254 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001472/0.4147, allocations: 1.07 MB / 1.029 GB, free: 172 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.969e-05/0.4148, allocations: 4 kB / 1.029 GB, free: 168 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 4.278e-05/0.4149, allocations: 11.92 kB / 1.029 GB, free: 156 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 7.634e-05/0.415, allocations: 7.875 kB / 1.029 GB, free: 148 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004012/0.4154, allocations: 54.83 kB / 1.029 GB, free: 96 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.000168/0.4156, allocations: 75.77 kB / 1.029 GB, free: 20 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000175/0.4157, allocations: 24.22 kB / 1.029 GB, free: 15.99 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001072/0.4158, allocations: 23.92 kB / 1.029 GB, free: 15.96 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.523e-05/0.416, allocations: 35.84 kB / 1.029 GB, free: 15.93 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.102e-05/0.416, allocations: 4 kB / 1.029 GB, free: 15.93 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.622e-05/0.4161, allocations: 27.97 kB / 1.029 GB, free: 15.9 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.797e-05/0.4161, allocations: 11.98 kB / 1.029 GB, free: 15.89 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.425e-05/0.4162, allocations: 35.8 kB / 1.029 GB, free: 15.85 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001685/0.4163, allocations: 75.69 kB / 1.029 GB, free: 15.78 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 8.737e-06/0.4164, allocations: 4 kB / 1.029 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.767e-06/0.4164, allocations: 0 / 1.029 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.762e-06/0.4164, allocations: 0 / 1.029 GB, free: 15.77 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.0006481/0.417, allocations: 379.2 kB / 1.029 GB, free: 15.36 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.466e-05/0.4171, allocations: 12.03 kB / 1.029 GB, free: 15.34 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.206e-05/0.4171, allocations: 12.84 kB / 1.029 GB, free: 15.33 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001528/0.4173, allocations: 164.3 kB / 1.029 GB, free: 15.13 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.648e-05/0.4173, allocations: 4.375 kB / 1.029 GB, free: 15.13 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.202e-05/0.4174, allocations: 8.375 kB / 1.029 GB, free: 15.12 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002643/0.4176, allocations: 70.16 kB / 1.03 GB, free: 15.05 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.483e-05/0.4176, allocations: 3.938 kB / 1.03 GB, free: 15.04 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.518e-05/0.4177, allocations: 0 / 1.03 GB, free: 15.04 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.755e-06/0.4177, allocations: 0 / 1.03 GB, free: 15.04 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001797/0.4179, allocations: 47.95 kB / 1.03 GB, free: 15 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007315/0.4186, allocations: 328.6 kB / 1.03 GB, free: 14.62 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001922/0.4188, allocations: 50.56 kB / 1.03 GB, free: 14.57 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000121/0.4189, allocations: 36.95 kB / 1.03 GB, free: 14.53 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.681e-05/0.419, allocations: 7.938 kB / 1.03 GB, free: 14.52 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002477/0.4192, allocations: 71.47 kB / 1.03 GB, free: 14.44 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.683e-06/0.4193, allocations: 11.88 kB / 1.03 GB, free: 14.43 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004691/0.4197, allocations: 125.5 kB / 1.03 GB, free: 14.3 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.857e-05/0.4198, allocations: 59.41 kB / 1.03 GB, free: 14.23 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001027/0.4199, allocations: 117.8 kB / 1.03 GB, free: 14.1 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.08e-05/0.4199, allocations: 29.7 kB / 1.03 GB, free: 14.07 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.863e-05/0.42, allocations: 92.03 kB / 1.03 GB, free: 13.97 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.687e-05/0.42, allocations: 19.75 kB / 1.031 GB, free: 13.95 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.099e-05/0.4201, allocations: 29.7 kB / 1.031 GB, free: 13.92 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001131/0.4202, allocations: 326.8 kB / 1.031 GB, free: 13.59 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001026/0.4203, allocations: 31.97 kB / 1.031 GB, free: 13.56 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001215/0.4204, allocations: 73.92 kB / 1.031 GB, free: 13.46 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002099/0.4207, allocations: 101.9 kB / 1.031 GB, free: 13.34 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.4207, allocations: 0 / 1.031 GB, free: 13.34 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002974/0.421, allocations: 137.4 kB / 1.031 GB, free: 13.2 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.143e-05/0.421, allocations: 8 kB / 1.031 GB, free: 13.2 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.421, allocations: 3.938 kB / 1.031 GB, free: 13.19 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.763e-05/0.421, allocations: 4 kB / 1.031 GB, free: 13.19 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001216/0.4212, allocations: 15.98 kB / 1.031 GB, free: 13.17 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.937e-06/0.4212, allocations: 4 kB / 1.031 GB, free: 13.17 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.944e-05/0.4213, allocations: 12.2 kB / 1.031 GB, free: 13.16 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.589e-05/0.4213, allocations: 7.938 kB / 1.031 GB, free: 13.15 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.0001206/0.4214, allocations: 129.7 kB / 1.031 GB, free: 13.02 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.474e-05/0.4214, allocations: 7.906 kB / 1.031 GB, free: 13.01 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.136e-05/0.4215, allocations: 16.36 kB / 1.031 GB, free: 12.99 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.4215, allocations: 3.938 kB / 1.031 GB, free: 12.99 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.193e-06/0.4215, allocations: 0 / 1.031 GB, free: 12.99 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.249e-06/0.4215, allocations: 0 / 1.031 GB, free: 12.99 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005161/0.422, allocations: 378.4 kB / 1.032 GB, free: 12.56 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.422, allocations: 0 / 1.032 GB, free: 12.56 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.893e-05/0.4221, allocations: 4 kB / 1.032 GB, free: 12.56 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.4221, allocations: 0 / 1.032 GB, free: 12.56 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.41e-05/0.4221, allocations: 4 kB / 1.032 GB, free: 12.55 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.12e-06/0.4221, allocations: 7.922 kB / 1.032 GB, free: 12.55 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.4221, allocations: 0 / 1.032 GB, free: 12.55 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003046/0.4225, allocations: 195.4 kB / 1.032 GB, free: 12.34 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.028e-05/0.4225, allocations: 92.94 kB / 1.032 GB, free: 12.23 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.056e-05/0.4225, allocations: 3.984 kB / 1.032 GB, free: 12.23 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.456e-05/0.4226, allocations: 11.94 kB / 1.032 GB, free: 12.21 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.419e-05/0.4227, allocations: 11.92 kB / 1.032 GB, free: 12.2 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.871e-06/0.4227, allocations: 0 / 1.032 GB, free: 12.2 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.208e-05/0.4228, allocations: 91.27 kB / 1.032 GB, free: 12.11 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.61e-07/0.4228, allocations: 4 kB / 1.032 GB, free: 12.11 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002522/0.4231, allocations: 23.94 kB / 1.032 GB, free: 12.09 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.0002393/0.4233, allocations: 103.2 kB / 1.032 GB, free: 11.98 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003086/0.4236, allocations: 76.34 kB / 1.032 GB, free: 11.9 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.4236, allocations: 448 / 1.032 GB, free: 11.9 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001208/0.4238, allocations: 51.89 kB / 1.032 GB, free: 11.85 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002933/0.4241, allocations: 5.141 kB / 1.032 GB, free: 11.85 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004597/0.4245, allocations: 162.2 kB / 1.033 GB, free: 11.66 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003324/0.4249, allocations: 0.6885 MB / 1.033 GB, free: 10.94 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.961e-05/0.4249, allocations: 8 kB / 1.033 GB, free: 10.93 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.45e-05/0.425, allocations: 15.42 kB / 1.033 GB, free: 10.92 MB / 0.8106 GB Notification: Performance of SimCode: time 2.4e-07/0.425, allocations: 0 / 1.033 GB, free: 10.92 MB / 0.8106 GB Notification: Performance of Templates: time 0.003979/0.429, allocations: 0.9698 MB / 1.034 GB, free: 9.992 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 -s cvode -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/jenkins1/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