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.00117/0.00117, allocations: 92.16 kB / 15.06 MB, free: 1.098 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.001583/0.001583, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.625/1.625, allocations: 223.3 MB / 240 MB, free: 5.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.947/2.947, allocations: 462.6 MB / 0.736 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003554/0.0003554, allocations: 12 kB / 0.9022 GB, free: 36.61 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3486/0.349, allocations: 159.6 MB / 1.058 GB, free: 5.352 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.001068/0.3501, allocations: 467 kB / 1.058 GB, free: 4.898 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001568/0.3517, allocations: 1.065 MB / 1.06 GB, free: 3.82 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.971e-05/0.3518, allocations: 3.938 kB / 1.06 GB, free: 3.816 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.075e-05/0.3518, allocations: 0 / 1.06 GB, free: 3.816 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.044e-05/0.3519, allocations: 7.938 kB / 1.06 GB, free: 3.809 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003567/0.3523, allocations: 43.89 kB / 1.06 GB, free: 3.766 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001114/0.3524, allocations: 63.78 kB / 1.06 GB, free: 3.703 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001184/0.3525, allocations: 20.14 kB / 1.06 GB, free: 3.68 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.967e-05/0.3526, allocations: 23.92 kB / 1.06 GB, free: 3.656 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.06e-05/0.3527, allocations: 23.86 kB / 1.06 GB, free: 3.633 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.75e-05/0.3527, allocations: 4 kB / 1.06 GB, free: 3.629 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.058e-05/0.3528, allocations: 15.98 kB / 1.06 GB, free: 3.613 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.415e-05/0.3529, allocations: 19.97 kB / 1.06 GB, free: 3.594 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.483e-05/0.3529, allocations: 37.64 kB / 1.06 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001237/0.353, allocations: 47.89 kB / 1.06 GB, free: 3.504 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.3531, allocations: 0 / 1.06 GB, free: 3.504 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.704e-06/0.3531, allocations: 0 / 1.06 GB, free: 3.504 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.4e-06/0.3531, allocations: 0 / 1.06 GB, free: 3.504 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.0005513/0.3536, allocations: 371.4 kB / 1.06 GB, free: 3.094 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.821e-05/0.3537, allocations: 11.97 kB / 1.06 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.367e-05/0.3537, allocations: 11.91 kB / 1.06 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001389/0.3539, allocations: 178.9 kB / 1.06 GB, free: 2.855 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.214e-05/0.3539, allocations: 8 kB / 1.06 GB, free: 2.848 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.119e-05/0.3539, allocations: 11.89 kB / 1.06 GB, free: 2.836 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002137/0.3542, allocations: 69.66 kB / 1.06 GB, free: 2.762 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.3542, allocations: 0 / 1.06 GB, free: 2.762 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.137e-05/0.3542, allocations: 0 / 1.06 GB, free: 2.762 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.3542, allocations: 4 kB / 1.06 GB, free: 2.758 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001758/0.3544, allocations: 55.95 kB / 1.061 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007528/0.3551, allocations: 324.7 kB / 1.061 GB, free: 2.336 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00018/0.3553, allocations: 62.55 kB / 1.061 GB, free: 2.266 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000101/0.3555, allocations: 36.97 kB / 1.061 GB, free: 2.227 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.969e-05/0.3555, allocations: 3.984 kB / 1.061 GB, free: 2.223 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000231/0.3557, allocations: 79.42 kB / 1.061 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.543e-06/0.3557, allocations: 3.938 kB / 1.061 GB, free: 2.129 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004347/0.3562, allocations: 153.5 kB / 1.061 GB, free: 1.973 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.504e-05/0.3562, allocations: 51.41 kB / 1.061 GB, free: 1.91 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001067/0.3564, allocations: 129.7 kB / 1.061 GB, free: 1.773 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.876e-05/0.3564, allocations: 29.7 kB / 1.061 GB, free: 1.738 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.932e-05/0.3565, allocations: 92.12 kB / 1.061 GB, free: 1.645 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.722e-05/0.3565, allocations: 15.75 kB / 1.061 GB, free: 1.629 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.336e-06/0.3565, allocations: 4 kB / 1.061 GB, free: 1.625 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001381/0.3566, allocations: 318.8 kB / 1.062 GB, free: 1.305 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001076/0.3568, allocations: 35.97 kB / 1.062 GB, free: 1.27 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001427/0.3569, allocations: 86.3 kB / 1.062 GB, free: 1.164 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001293/0.357, allocations: 43.97 kB / 1.062 GB, free: 1.121 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.3571, allocations: 0 / 1.062 GB, free: 1.121 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003443/0.3574, allocations: 145.4 kB / 1.062 GB, free: 0.9727 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.453e-05/0.3574, allocations: 8 kB / 1.062 GB, free: 0.9648 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/0.3575, allocations: 0 / 1.062 GB, free: 0.9648 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.162e-05/0.3575, allocations: 7.938 kB / 1.062 GB, free: 0.957 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001358/0.3576, allocations: 19.98 kB / 1.062 GB, free: 0.9375 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.011e-05/0.3576, allocations: 224 / 1.062 GB, free: 0.9375 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.63e-05/0.3577, allocations: 15.98 kB / 1.062 GB, free: 0.9219 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.875e-05/0.3578, allocations: 4 kB / 1.062 GB, free: 0.918 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 ($PRE.triggeredSampler1.y,triggeredSampler1.y,$PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,samTri.y,$whenCondition2,samTri1.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001284/0.3579, allocations: 129.7 kB / 1.062 GB, free: 0.7812 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.84e-05/0.3579, allocations: 7.891 kB / 1.062 GB, free: 0.7734 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.525e-05/0.358, allocations: 8.375 kB / 1.062 GB, free: 0.7656 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.358, allocations: 0 / 1.062 GB, free: 0.7656 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.358, allocations: 0 / 1.062 GB, free: 0.7656 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.798e-06/0.358, allocations: 4 kB / 1.062 GB, free: 0.7617 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005206/0.3585, allocations: 390.3 kB / 1.063 GB, free: 332 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.3585, allocations: 0 / 1.063 GB, free: 332 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.085e-05/0.3586, allocations: 15.98 kB / 1.063 GB, free: 316 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.556e-06/0.3586, allocations: 0 / 1.063 GB, free: 316 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.018e-05/0.3586, allocations: 4 kB / 1.063 GB, free: 312 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.3586, allocations: 0 / 1.063 GB, free: 312 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3586, allocations: 0 / 1.063 GB, free: 312 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003308/0.359, allocations: 215.4 kB / 1.063 GB, free: 80 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 8.32e-05/0.3591, allocations: 84.95 kB / 1.063 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.947e-05/0.3591, allocations: 0 / 1.063 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.942e-05/0.3592, allocations: 15.98 kB / 1.063 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.895e-05/0.3593, allocations: 4 kB / 1.063 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.195e-06/0.3593, allocations: 0 / 1.063 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.748e-05/0.3594, allocations: 99.36 kB / 1.063 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.024e-06/0.3594, allocations: 4 kB / 1.063 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002735/0.3596, allocations: 27.88 kB / 1.063 GB, free: 15.83 MB / 0.8262 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002371/0.3599, allocations: 111.2 kB / 1.063 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002969/0.3602, allocations: 87.95 kB / 1.063 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.3602, allocations: 0 / 1.063 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001238/0.3603, allocations: 39.97 kB / 1.063 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002982/0.3606, allocations: 14.61 kB / 1.063 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000511/0.3612, allocations: 173.6 kB / 1.063 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003791/0.3616, allocations: 0.6887 MB / 1.064 GB, free: 14.65 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.031e-05/0.3616, allocations: 11.98 kB / 1.064 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.371e-05/0.3617, allocations: 11.44 kB / 1.064 GB, free: 14.63 MB / 0.8262 GB Notification: Performance of SimCode: time 4.61e-07/0.3617, allocations: 4 kB / 1.064 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of Templates: time 0.004765/0.3664, allocations: 0.8304 MB / 1.065 GB, free: 13.84 MB / 0.8262 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