Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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.SampleTrigger,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.SampleTrigger") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,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.SampleTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009635/0.0009635, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.008572/0.008572, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.547/1.547, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 3.005/3.005, allocations: 462.6 MB / 0.7363 GB, free: 15.6 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003969/0.0003969, allocations: 15.73 kB / 0.9027 GB, free: 36.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4409/0.4413, allocations: 159.6 MB / 1.059 GB, free: 4.91 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.001061/0.4424, allocations: 474.8 kB / 1.059 GB, free: 4.449 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001349/0.4438, allocations: 1.081 MB / 1.06 GB, free: 3.355 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.701e-05/0.4438, allocations: 0 / 1.06 GB, free: 3.355 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.933e-05/0.4439, allocations: 4 kB / 1.06 GB, free: 3.352 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.766e-05/0.444, allocations: 15.86 kB / 1.06 GB, free: 3.336 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002693/0.4442, allocations: 39.95 kB / 1.06 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001017/0.4443, allocations: 63.84 kB / 1.06 GB, free: 3.234 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001119/0.4445, allocations: 12.19 kB / 1.06 GB, free: 3.219 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.88e-05/0.4445, allocations: 27.8 kB / 1.06 GB, free: 3.191 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.91e-05/0.4446, allocations: 31.89 kB / 1.06 GB, free: 3.16 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.626e-05/0.4446, allocations: 4 kB / 1.06 GB, free: 3.156 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.735e-05/0.4447, allocations: 15.98 kB / 1.06 GB, free: 3.141 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.064e-05/0.4447, allocations: 15.92 kB / 1.06 GB, free: 3.125 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.399e-05/0.4448, allocations: 53.55 kB / 1.06 GB, free: 3.066 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001387/0.445, allocations: 75.73 kB / 1.06 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.445, allocations: 0 / 1.06 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.783e-06/0.445, allocations: 4 kB / 1.06 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.659e-06/0.445, allocations: 0 / 1.06 GB, free: 2.988 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.0005534/0.4455, allocations: 371.5 kB / 1.061 GB, free: 2.578 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.299e-05/0.4456, allocations: 11.97 kB / 1.061 GB, free: 2.566 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.062e-05/0.4456, allocations: 12.78 kB / 1.061 GB, free: 2.555 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001464/0.4458, allocations: 184.1 kB / 1.061 GB, free: 2.336 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.964e-05/0.4458, allocations: 4.375 kB / 1.061 GB, free: 2.332 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.059e-05/0.4458, allocations: 8.375 kB / 1.061 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000224/0.4461, allocations: 70.22 kB / 1.061 GB, free: 2.25 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-06/0.4461, allocations: 7.938 kB / 1.061 GB, free: 2.242 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.133e-05/0.4461, allocations: 0 / 1.061 GB, free: 2.242 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.4461, allocations: 0 / 1.061 GB, free: 2.242 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001915/0.4463, allocations: 55.95 kB / 1.061 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000671/0.447, allocations: 332.6 kB / 1.062 GB, free: 1.812 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001785/0.4472, allocations: 58.55 kB / 1.062 GB, free: 1.746 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001165/0.4473, allocations: 40.95 kB / 1.062 GB, free: 1.703 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.455e-05/0.4473, allocations: 0 / 1.062 GB, free: 1.703 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002411/0.4476, allocations: 91.41 kB / 1.062 GB, free: 1.602 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.473e-06/0.4476, allocations: 0 / 1.062 GB, free: 1.602 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.00047/0.4481, allocations: 149.5 kB / 1.062 GB, free: 1.449 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.007e-05/0.4481, allocations: 55.41 kB / 1.062 GB, free: 1.383 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001139/0.4483, allocations: 121.8 kB / 1.062 GB, free: 1.254 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.357e-05/0.4483, allocations: 25.7 kB / 1.062 GB, free: 1.223 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.893e-05/0.4484, allocations: 96.12 kB / 1.062 GB, free: 1.125 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.142e-05/0.4484, allocations: 15.75 kB / 1.062 GB, free: 1.109 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.016e-05/0.4484, allocations: 21.7 kB / 1.062 GB, free: 1.082 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001291/0.4486, allocations: 318.8 kB / 1.062 GB, free: 0.7617 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001155/0.4487, allocations: 39.91 kB / 1.062 GB, free: 0.7227 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001427/0.4488, allocations: 77.98 kB / 1.063 GB, free: 0.625 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00025/0.4491, allocations: 117.9 kB / 1.063 GB, free: 500 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.484e-06/0.4491, allocations: 7.938 kB / 1.063 GB, free: 492 kB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003281/0.4495, allocations: 145.5 kB / 1.063 GB, free: 340 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.988e-05/0.4495, allocations: 4 kB / 1.063 GB, free: 336 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.4495, allocations: 4 kB / 1.063 GB, free: 332 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.57e-05/0.4495, allocations: 0 / 1.063 GB, free: 332 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001319/0.4497, allocations: 19.98 kB / 1.063 GB, free: 312 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.218e-05/0.4497, allocations: 7.984 kB / 1.063 GB, free: 304 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.699e-05/0.4498, allocations: 15.97 kB / 1.063 GB, free: 288 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.747e-05/0.4498, allocations: 8 kB / 1.063 GB, free: 280 kB / 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.0001034/0.4499, allocations: 125.7 kB / 1.063 GB, free: 144 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.251e-05/0.4499, allocations: 7.938 kB / 1.063 GB, free: 136 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.504e-05/0.45, allocations: 8.375 kB / 1.063 GB, free: 128 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.45, allocations: 4 kB / 1.063 GB, free: 124 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.74e-05/0.45, allocations: 0 / 1.063 GB, free: 124 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.45, allocations: 0 / 1.063 GB, free: 124 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005215/0.4505, allocations: 390.3 kB / 1.063 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.4505, allocations: 0 / 1.063 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.673e-05/0.4506, allocations: 11.98 kB / 1.063 GB, free: 15.67 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.4506, allocations: 0 / 1.063 GB, free: 15.67 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.247e-06/0.4506, allocations: 4 kB / 1.063 GB, free: 15.67 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.091e-05/0.4506, allocations: 7.938 kB / 1.063 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.4507, allocations: 0 / 1.063 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003154/0.451, allocations: 215.3 kB / 1.064 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.193e-05/0.451, allocations: 92.94 kB / 1.064 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.778e-05/0.4511, allocations: 0 / 1.064 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.216e-05/0.4512, allocations: 15.92 kB / 1.064 GB, free: 15.31 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.089e-05/0.4512, allocations: 0 / 1.064 GB, free: 15.31 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.534e-06/0.4512, allocations: 4 kB / 1.064 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.939e-05/0.4513, allocations: 91.27 kB / 1.064 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.7e-07/0.4513, allocations: 0 / 1.064 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002609/0.4516, allocations: 24 kB / 1.064 GB, free: 15.19 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 (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.0001923/0.4518, allocations: 111.2 kB / 1.064 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002822/0.452, allocations: 84.14 kB / 1.064 GB, free: 14.99 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.4521, allocations: 4.125 kB / 1.064 GB, free: 14.99 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001288/0.4522, allocations: 47.91 kB / 1.064 GB, free: 14.94 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002754/0.4525, allocations: 11.98 kB / 1.064 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003634/0.4529, allocations: 165.4 kB / 1.064 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002658/0.4531, allocations: 0.6887 MB / 1.065 GB, free: 14.02 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.778e-05/0.4532, allocations: 11.98 kB / 1.065 GB, free: 14 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.08e-05/0.4532, allocations: 7.438 kB / 1.065 GB, free: 14 MB / 0.8262 GB Notification: Performance of SimCode: time 3.4e-07/0.4532, allocations: 4 kB / 1.065 GB, free: 13.99 MB / 0.8262 GB Notification: Performance of Templates: time 0.003539/0.4568, allocations: 0.8693 MB / 1.066 GB, free: 13.13 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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