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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001756/0.001756, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002092/0.002092, allocations: 192.7 kB / 16.53 MB, free: 6.391 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.587/1.587, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.304/3.304, allocations: 472.6 MB / 0.7451 GB, free: 4.715 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 62.81 kB / 0.912 GB, free: 33.3 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4556/0.4568, allocations: 159.9 MB / 1.068 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002433/0.4593, allocations: 0.7474 MB / 1.069 GB, free: 9.695 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001453/0.4608, allocations: 1.071 MB / 1.07 GB, free: 8.613 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.727e-05/0.4608, allocations: 0 / 1.07 GB, free: 8.613 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.371e-05/0.4609, allocations: 7.875 kB / 1.07 GB, free: 8.605 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 8.55e-05/0.461, allocations: 11.91 kB / 1.07 GB, free: 8.594 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000342/0.4613, allocations: 59.83 kB / 1.07 GB, free: 8.535 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001081/0.4614, allocations: 63.84 kB / 1.07 GB, free: 8.473 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001502/0.4616, allocations: 32.14 kB / 1.07 GB, free: 8.438 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.711e-05/0.4617, allocations: 35.8 kB / 1.07 GB, free: 8.402 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.757e-05/0.4618, allocations: 31.89 kB / 1.07 GB, free: 8.371 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.039e-05/0.4618, allocations: 11.94 kB / 1.07 GB, free: 8.359 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.779e-05/0.4619, allocations: 19.98 kB / 1.07 GB, free: 8.34 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.078e-05/0.4619, allocations: 7.938 kB / 1.07 GB, free: 8.332 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.264e-05/0.462, allocations: 35.84 kB / 1.07 GB, free: 8.297 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001732/0.4622, allocations: 79.73 kB / 1.07 GB, free: 8.219 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.4622, allocations: 0 / 1.07 GB, free: 8.219 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.874e-06/0.4622, allocations: 0 / 1.07 GB, free: 8.219 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.324e-06/0.4622, allocations: 4 kB / 1.07 GB, free: 8.215 MB / 0.8262 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.0005944/0.4628, allocations: 379.5 kB / 1.071 GB, free: 7.797 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/0.4628, allocations: 8.031 kB / 1.071 GB, free: 7.789 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.918e-05/0.4629, allocations: 8.844 kB / 1.071 GB, free: 7.781 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001423/0.463, allocations: 184.1 kB / 1.071 GB, free: 7.562 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.1e-05/0.4631, allocations: 384 / 1.071 GB, free: 7.562 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.873e-05/0.4631, allocations: 8.375 kB / 1.071 GB, free: 7.555 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002136/0.4633, allocations: 66.23 kB / 1.071 GB, free: 7.484 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.988e-06/0.4633, allocations: 3.938 kB / 1.071 GB, free: 7.48 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.193e-05/0.4633, allocations: 0 / 1.071 GB, free: 7.48 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.4633, allocations: 7.984 kB / 1.071 GB, free: 7.473 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001722/0.4635, allocations: 39.97 kB / 1.071 GB, free: 7.434 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006758/0.4642, allocations: 324.7 kB / 1.071 GB, free: 7.066 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001956/0.4644, allocations: 50.55 kB / 1.071 GB, free: 7.008 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001006/0.4645, allocations: 32.97 kB / 1.071 GB, free: 6.973 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.523e-05/0.4646, allocations: 0 / 1.071 GB, free: 6.973 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002151/0.4648, allocations: 91.3 kB / 1.072 GB, free: 6.871 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.262e-06/0.4648, allocations: 0 / 1.072 GB, free: 6.871 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0004165/0.4652, allocations: 125.6 kB / 1.072 GB, free: 6.742 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.892e-05/0.4653, allocations: 55.41 kB / 1.072 GB, free: 6.676 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001168/0.4654, allocations: 125.7 kB / 1.072 GB, free: 6.543 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.64e-05/0.4654, allocations: 25.7 kB / 1.072 GB, free: 6.512 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.993e-05/0.4655, allocations: 92.14 kB / 1.072 GB, free: 6.418 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.261e-05/0.4655, allocations: 19.73 kB / 1.072 GB, free: 6.398 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.101e-05/0.4656, allocations: 29.72 kB / 1.072 GB, free: 6.363 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001568/0.4657, allocations: 326.7 kB / 1.072 GB, free: 6.035 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001045/0.4658, allocations: 27.97 kB / 1.072 GB, free: 6.008 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001328/0.466, allocations: 73.98 kB / 1.072 GB, free: 5.914 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002406/0.4662, allocations: 113.8 kB / 1.072 GB, free: 5.781 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.4662, allocations: 3.938 kB / 1.072 GB, free: 5.777 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002981/0.4665, allocations: 133.4 kB / 1.073 GB, free: 5.641 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.4666, allocations: 4.219 kB / 1.073 GB, free: 5.637 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.593e-06/0.4666, allocations: 8 kB / 1.073 GB, free: 5.629 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.4666, allocations: 0 / 1.073 GB, free: 5.629 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001199/0.4667, allocations: 15.98 kB / 1.073 GB, free: 5.613 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.327e-05/0.4667, allocations: 11.98 kB / 1.073 GB, free: 5.602 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.951e-05/0.4668, allocations: 4 kB / 1.073 GB, free: 5.598 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.581e-05/0.4668, allocations: 11.94 kB / 1.073 GB, free: 5.586 MB / 0.8262 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.0001031/0.4669, allocations: 125.8 kB / 1.073 GB, free: 5.453 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.333e-05/0.467, allocations: 7.906 kB / 1.073 GB, free: 5.445 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.781e-05/0.467, allocations: 12.38 kB / 1.073 GB, free: 5.434 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.467, allocations: 0 / 1.073 GB, free: 5.434 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.467, allocations: 0 / 1.073 GB, free: 5.434 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.467, allocations: 0 / 1.073 GB, free: 5.434 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004871/0.4675, allocations: 378.3 kB / 1.073 GB, free: 5.008 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.4675, allocations: 0 / 1.073 GB, free: 5.008 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.595e-05/0.4676, allocations: 15.98 kB / 1.073 GB, free: 4.992 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.145e-06/0.4676, allocations: 3.984 kB / 1.073 GB, free: 4.988 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.055e-06/0.4676, allocations: 0 / 1.073 GB, free: 4.988 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.237e-06/0.4676, allocations: 3.938 kB / 1.073 GB, free: 4.984 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.4676, allocations: 0 / 1.073 GB, free: 4.984 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000299/0.4679, allocations: 203.4 kB / 1.073 GB, free: 4.77 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.338e-05/0.468, allocations: 84.95 kB / 1.073 GB, free: 4.668 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.514e-05/0.468, allocations: 4 kB / 1.073 GB, free: 4.664 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.291e-05/0.4681, allocations: 15.92 kB / 1.073 GB, free: 4.648 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.165e-05/0.4681, allocations: 4 kB / 1.073 GB, free: 4.645 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.292e-06/0.4682, allocations: 0 / 1.073 GB, free: 4.645 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.062e-05/0.4682, allocations: 99.86 kB / 1.074 GB, free: 4.547 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.4682, allocations: 0 / 1.074 GB, free: 4.547 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002461/0.4685, allocations: 16 kB / 1.074 GB, free: 4.531 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.000202/0.4687, allocations: 111.7 kB / 1.074 GB, free: 4.414 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002993/0.469, allocations: 75.89 kB / 1.074 GB, free: 4.34 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.469, allocations: 3.938 kB / 1.074 GB, free: 4.336 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001273/0.4691, allocations: 35.97 kB / 1.074 GB, free: 4.301 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003171/0.4695, allocations: 14.92 kB / 1.074 GB, free: 4.289 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005302/0.47, allocations: 162 kB / 1.074 GB, free: 4.102 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004187/0.4704, allocations: 0.6846 MB / 1.075 GB, free: 3.391 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.298e-05/0.4705, allocations: 15.7 kB / 1.075 GB, free: 3.375 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.537e-05/0.4705, allocations: 19.44 kB / 1.075 GB, free: 3.355 MB / 0.8262 GB Notification: Performance of SimCode: time 2.1e-07/0.4705, allocations: 0 / 1.075 GB, free: 3.355 MB / 0.8262 GB Notification: Performance of Templates: time 0.004322/0.4749, allocations: 0.962 MB / 1.076 GB, free: 2.402 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