Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001571/0.00157, allocations: 109.5 kB / 16.42 MB, free: 6.496 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.001697/0.001697, allocations: 189.5 kB / 17.35 MB, free: 5.73 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.4/1.4, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.368/2.368, allocations: 390.3 MB / 0.6655 GB, free: 0.6875 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001424/0.001424, allocations: 67.89 kB / 0.9516 GB, free: 7.652 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9328/0.9342, allocations: 140.4 MB / 1.089 GB, free: 5.535 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.001866/0.9361, allocations: 0.7517 MB / 1.089 GB, free: 5.055 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001271/0.9374, allocations: 1.07 MB / 1.09 GB, free: 4.266 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.503e-05/0.9375, allocations: 0.875 kB / 1.09 GB, free: 4.266 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.343e-05/0.9375, allocations: 4.594 kB / 1.09 GB, free: 4.262 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.909e-05/0.9376, allocations: 19.73 kB / 1.09 GB, free: 4.246 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000282/0.9379, allocations: 54.42 kB / 1.09 GB, free: 4.215 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001053/0.938, allocations: 77.45 kB / 1.091 GB, free: 4.176 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 9.823e-05/0.9381, allocations: 15.06 kB / 1.091 GB, free: 4.168 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.261e-05/0.9382, allocations: 27.28 kB / 1.091 GB, free: 4.156 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.581e-05/0.9383, allocations: 37.73 kB / 1.091 GB, free: 4.137 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.812e-05/0.9383, allocations: 5.344 kB / 1.091 GB, free: 4.137 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 6.699e-05/0.9383, allocations: 23.28 kB / 1.091 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.178e-05/0.9384, allocations: 14.75 kB / 1.091 GB, free: 4.121 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.624e-05/0.9384, allocations: 38.52 kB / 1.091 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001605/0.9386, allocations: 79.12 kB / 1.091 GB, free: 4.062 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.9386, allocations: 0 / 1.091 GB, free: 4.062 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.543e-06/0.9386, allocations: 1.094 kB / 1.091 GB, free: 4.062 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.272e-06/0.9386, allocations: 0 / 1.091 GB, free: 4.062 MB / 0.8575 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.0004735/0.9391, allocations: 373.3 kB / 1.091 GB, free: 3.695 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/0.9392, allocations: 9.953 kB / 1.091 GB, free: 3.695 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.415e-05/0.9392, allocations: 7.875 kB / 1.091 GB, free: 3.691 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.732e-05/0.9393, allocations: 169.7 kB / 1.091 GB, free: 3.492 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.642e-05/0.9393, allocations: 11.52 kB / 1.091 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.787e-05/0.9393, allocations: 4.344 kB / 1.091 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002014/0.9395, allocations: 68.62 kB / 1.091 GB, free: 3.441 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.9396, allocations: 7.922 kB / 1.091 GB, free: 3.434 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.08e-05/0.9396, allocations: 0.7969 kB / 1.091 GB, free: 3.434 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.9396, allocations: 1.156 kB / 1.091 GB, free: 3.434 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001893/0.9398, allocations: 44.09 kB / 1.091 GB, free: 3.426 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000604/0.9404, allocations: 330.9 kB / 1.092 GB, free: 3.121 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001728/0.9406, allocations: 59.5 kB / 1.092 GB, free: 3.082 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001004/0.9407, allocations: 28.19 kB / 1.092 GB, free: 3.07 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.644e-05/0.9407, allocations: 1.625 kB / 1.092 GB, free: 3.07 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001872/0.9409, allocations: 90.33 kB / 1.092 GB, free: 3 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.914e-06/0.9409, allocations: 0 / 1.092 GB, free: 3 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.000426/0.9413, allocations: 132.6 kB / 1.092 GB, free: 2.941 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.625e-05/0.9414, allocations: 52.38 kB / 1.092 GB, free: 2.879 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.424e-05/0.9415, allocations: 123.7 kB / 1.092 GB, free: 2.77 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.392e-05/0.9415, allocations: 30.77 kB / 1.092 GB, free: 2.734 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.572e-05/0.9415, allocations: 92.69 kB / 1.092 GB, free: 2.645 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.736e-05/0.9416, allocations: 11.91 kB / 1.092 GB, free: 2.637 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.204e-05/0.9416, allocations: 34.38 kB / 1.092 GB, free: 2.609 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.715e-05/0.9417, allocations: 327.2 kB / 1.093 GB, free: 2.285 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001214/0.9418, allocations: 27.03 kB / 1.093 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001326/0.9419, allocations: 78 kB / 1.093 GB, free: 2.211 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002346/0.9422, allocations: 110.4 kB / 1.093 GB, free: 2.129 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.9422, allocations: 0.7188 kB / 1.093 GB, free: 2.129 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003357/0.9425, allocations: 135.4 kB / 1.093 GB, free: 2.062 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.9426, allocations: 5.969 kB / 1.093 GB, free: 2.062 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/0.9426, allocations: 1.344 kB / 1.093 GB, free: 2.062 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.9426, allocations: 3.375 kB / 1.093 GB, free: 2.062 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000131/0.9427, allocations: 16.3 kB / 1.093 GB, free: 2.062 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.289e-05/0.9428, allocations: 3.547 kB / 1.093 GB, free: 2.062 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.914e-05/0.9428, allocations: 15.56 kB / 1.093 GB, free: 2.055 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.653e-05/0.9429, allocations: 5.359 kB / 1.093 GB, free: 2.055 MB / 0.8575 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 7.701e-05/0.9429, allocations: 127.5 kB / 1.093 GB, free: 1.926 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.538e-05/0.943, allocations: 7.844 kB / 1.093 GB, free: 1.922 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.934e-05/0.943, allocations: 10.7 kB / 1.093 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.943, allocations: 0.7969 kB / 1.093 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.011e-06/0.943, allocations: 4.781 kB / 1.093 GB, free: 1.91 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.282e-05/0.943, allocations: 83.66 kB / 1.093 GB, free: 1.812 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.849e-05/0.9431, allocations: 1.531 kB / 1.093 GB, free: 1.812 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.156e-05/0.9431, allocations: 10.45 kB / 1.093 GB, free: 1.809 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.917e-05/0.9432, allocations: 8.844 kB / 1.093 GB, free: 1.805 MB / 0.8575 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003059/0.9435, allocations: 187.5 kB / 1.094 GB, free: 1.676 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002829/0.9438, allocations: 271 kB / 1.094 GB, free: 1.453 MB / 0.8575 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001095/0.9439, allocations: 36.78 kB / 1.094 GB, free: 1.441 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.438e-05/0.944, allocations: 95.95 kB / 1.094 GB, free: 1.359 MB / 0.8575 GB Notification: Performance of Backend: time 3.7e-07/0.944, allocations: 0 / 1.094 GB, free: 1.359 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004845/0.9445, allocations: 132.5 kB / 1.094 GB, free: 1.285 MB / 0.8575 GB Notification: Performance of SimCode: time 0.0004241/0.9449, allocations: 0.6133 MB / 1.095 GB, free: 0.6641 MB / 0.8575 GB Notification: Performance of Templates: time 0.003685/0.9486, allocations: 1.073 MB / 1.096 GB, free: 0.582 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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