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.0009268/0.0009268, allocations: 92.78 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.009132/0.009132, allocations: 173 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.492/1.492, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Experimental/DHC/UsersGuide/package.mo:2:1-389:15:writable] Warning: UsersGuide was referenced in the package.order file, but was not found in package.mo, UsersGuide/package.mo or UsersGuide.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.791/2.791, allocations: 443.3 MB / 0.7175 GB, free: 1.43 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003743/0.0003743, allocations: 9 kB / 0.8796 GB, free: 42.01 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4206/0.421, allocations: 155.2 MB / 1.031 GB, free: 4.43 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.001244/0.4223, allocations: 479.4 kB / 1.032 GB, free: 3.965 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001748/0.424, allocations: 1.07 MB / 1.033 GB, free: 2.879 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.974e-05/0.4241, allocations: 0 / 1.033 GB, free: 2.879 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.38e-05/0.4241, allocations: 11.92 kB / 1.033 GB, free: 2.867 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 9.988e-05/0.4242, allocations: 11.92 kB / 1.033 GB, free: 2.855 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002886/0.4245, allocations: 43.95 kB / 1.033 GB, free: 2.812 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001103/0.4246, allocations: 63.78 kB / 1.033 GB, free: 2.75 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001156/0.4248, allocations: 20.12 kB / 1.033 GB, free: 2.727 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 7.625e-05/0.4248, allocations: 19.92 kB / 1.033 GB, free: 2.707 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.066e-05/0.4249, allocations: 31.83 kB / 1.033 GB, free: 2.676 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.581e-05/0.425, allocations: 4 kB / 1.033 GB, free: 2.672 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.053e-05/0.425, allocations: 19.98 kB / 1.033 GB, free: 2.652 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.98e-05/0.4251, allocations: 11.98 kB / 1.033 GB, free: 2.641 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.04e-05/0.4251, allocations: 49.52 kB / 1.033 GB, free: 2.586 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001332/0.4253, allocations: 68.08 kB / 1.033 GB, free: 2.52 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.4253, allocations: 0 / 1.033 GB, free: 2.52 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.184e-06/0.4253, allocations: 0 / 1.033 GB, free: 2.52 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.33e-06/0.4253, allocations: 0 / 1.033 GB, free: 2.52 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.0005755/0.4259, allocations: 383.2 kB / 1.033 GB, free: 2.098 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.856e-05/0.4259, allocations: 8.031 kB / 1.033 GB, free: 2.09 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.172e-05/0.426, allocations: 8.844 kB / 1.033 GB, free: 2.082 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001437/0.4261, allocations: 184.1 kB / 1.034 GB, free: 1.863 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.906e-05/0.4262, allocations: 4.375 kB / 1.034 GB, free: 1.859 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.628e-05/0.4262, allocations: 4.375 kB / 1.034 GB, free: 1.855 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002282/0.4264, allocations: 74.22 kB / 1.034 GB, free: 1.777 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.4264, allocations: 11.88 kB / 1.034 GB, free: 1.766 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.253e-05/0.4265, allocations: 0 / 1.034 GB, free: 1.766 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.4265, allocations: 0 / 1.034 GB, free: 1.766 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001923/0.4267, allocations: 59.89 kB / 1.034 GB, free: 1.707 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007842/0.4275, allocations: 328.7 kB / 1.034 GB, free: 1.336 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001921/0.4277, allocations: 62.58 kB / 1.034 GB, free: 1.266 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001073/0.4278, allocations: 36.97 kB / 1.034 GB, free: 1.227 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.118e-05/0.4278, allocations: 3.984 kB / 1.034 GB, free: 1.223 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002313/0.4281, allocations: 79.39 kB / 1.034 GB, free: 1.133 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.783e-06/0.4281, allocations: 0 / 1.034 GB, free: 1.133 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0005037/0.4286, allocations: 149.5 kB / 1.034 GB, free: 0.9805 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.506e-05/0.4286, allocations: 59.34 kB / 1.034 GB, free: 0.9102 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001409/0.4288, allocations: 125.8 kB / 1.034 GB, free: 0.7773 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.432e-05/0.4288, allocations: 25.7 kB / 1.035 GB, free: 0.7461 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.471e-05/0.4289, allocations: 92.12 kB / 1.035 GB, free: 0.6523 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.35e-05/0.4289, allocations: 15.75 kB / 1.035 GB, free: 0.6367 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.153e-05/0.429, allocations: 17.72 kB / 1.035 GB, free: 0.6133 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001502/0.4291, allocations: 326.8 kB / 1.035 GB, free: 292 kB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001117/0.4292, allocations: 35.97 kB / 1.035 GB, free: 256 kB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002196/0.4295, allocations: 77.92 kB / 1.035 GB, free: 156 kB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002598/0.4297, allocations: 125.8 kB / 1.035 GB, free: 8 kB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.4298, allocations: 0 / 1.035 GB, free: 8 kB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000341/0.4301, allocations: 145.7 kB / 1.035 GB, free: 15.86 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.666e-05/0.4301, allocations: 4 kB / 1.035 GB, free: 15.85 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.333e-06/0.4301, allocations: 4.312 kB / 1.035 GB, free: 15.85 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.309e-05/0.4302, allocations: 0 / 1.035 GB, free: 15.85 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001353/0.4303, allocations: 19.98 kB / 1.035 GB, free: 15.83 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.087e-06/0.4303, allocations: 7.938 kB / 1.035 GB, free: 15.82 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.52e-05/0.4304, allocations: 15.89 kB / 1.035 GB, free: 15.8 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.647e-05/0.4304, allocations: 12.05 kB / 1.035 GB, free: 15.79 MB / 0.795 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.0001351/0.4306, allocations: 127.2 kB / 1.035 GB, free: 15.66 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.391e-05/0.4306, allocations: 4 kB / 1.035 GB, free: 15.66 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.981e-05/0.4306, allocations: 8.359 kB / 1.035 GB, free: 15.65 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.4306, allocations: 0 / 1.035 GB, free: 15.65 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.051e-05/0.4306, allocations: 8 kB / 1.036 GB, free: 15.64 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.4307, allocations: 0 / 1.036 GB, free: 15.64 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005495/0.4312, allocations: 398.2 kB / 1.036 GB, free: 15.2 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.4312, allocations: 0 / 1.036 GB, free: 15.2 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.403e-05/0.4313, allocations: 8 kB / 1.036 GB, free: 15.19 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.4313, allocations: 0 / 1.036 GB, free: 15.19 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.172e-05/0.4313, allocations: 7.984 kB / 1.036 GB, free: 15.18 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.847e-06/0.4313, allocations: 7.875 kB / 1.036 GB, free: 15.18 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.4313, allocations: 0 / 1.036 GB, free: 15.18 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003184/0.4317, allocations: 211.3 kB / 1.036 GB, free: 14.95 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.796e-05/0.4317, allocations: 89.09 kB / 1.036 GB, free: 14.85 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.623e-05/0.4317, allocations: 0 / 1.036 GB, free: 14.85 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.735e-05/0.4318, allocations: 15.94 kB / 1.036 GB, free: 14.83 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.688e-05/0.4319, allocations: 3.984 kB / 1.036 GB, free: 14.83 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.057e-06/0.4319, allocations: 4 kB / 1.036 GB, free: 14.82 MB / 0.795 GB Notification: Performance of sorting global known variables: time 6.598e-05/0.432, allocations: 91.92 kB / 1.036 GB, free: 14.73 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.3e-07/0.432, allocations: 3.938 kB / 1.036 GB, free: 14.73 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002584/0.4322, allocations: 19.91 kB / 1.036 GB, free: 14.71 MB / 0.795 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.0001821/0.4324, allocations: 111.6 kB / 1.036 GB, free: 14.59 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0003014/0.4327, allocations: 84.2 kB / 1.037 GB, free: 14.51 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.4327, allocations: 8.062 kB / 1.037 GB, free: 14.5 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.000121/0.4329, allocations: 39.97 kB / 1.037 GB, free: 14.46 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002791/0.4331, allocations: 4 kB / 1.037 GB, free: 14.46 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004127/0.4336, allocations: 173.4 kB / 1.037 GB, free: 14.26 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003208/0.4339, allocations: 0.6926 MB / 1.037 GB, free: 13.54 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 3.729e-05/0.4339, allocations: 4 kB / 1.037 GB, free: 13.54 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.946e-05/0.434, allocations: 15.42 kB / 1.037 GB, free: 13.53 MB / 0.795 GB Notification: Performance of SimCode: time 5.51e-07/0.434, allocations: 0 / 1.037 GB, free: 13.53 MB / 0.795 GB Notification: Performance of Templates: time 0.004092/0.4381, allocations: 0.8757 MB / 1.038 GB, free: 12.69 MB / 0.795 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