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.0009428/0.0009428, allocations: 92.16 kB / 16.02 MB, free: 80 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.001057/0.001057, allocations: 182.4 kB / 16.92 MB, free: 6.922 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.427/1.427, allocations: 223.3 MB / 241 MB, free: 5.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.719/2.719, allocations: 462.6 MB / 0.7371 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003281/0.0003282, allocations: 10.19 kB / 0.9034 GB, free: 36.49 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2981/0.2984, allocations: 159.6 MB / 1.059 GB, free: 4.918 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.001037/0.2995, allocations: 482.8 kB / 1.06 GB, free: 4.449 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001502/0.301, allocations: 1.073 MB / 1.061 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.226e-05/0.3011, allocations: 8 kB / 1.061 GB, free: 3.355 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.503e-05/0.3012, allocations: 3.984 kB / 1.061 GB, free: 3.352 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.587e-05/0.3012, allocations: 7.875 kB / 1.061 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003083/0.3015, allocations: 39.95 kB / 1.061 GB, free: 3.305 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001025/0.3016, allocations: 67.78 kB / 1.061 GB, free: 3.238 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000112/0.3018, allocations: 20.11 kB / 1.061 GB, free: 3.215 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.428e-05/0.3018, allocations: 27.91 kB / 1.061 GB, free: 3.188 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.108e-05/0.3019, allocations: 31.84 kB / 1.061 GB, free: 3.156 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.606e-05/0.3019, allocations: 4 kB / 1.061 GB, free: 3.152 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.777e-05/0.302, allocations: 15.98 kB / 1.061 GB, free: 3.137 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.849e-05/0.302, allocations: 4 kB / 1.061 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.661e-05/0.3021, allocations: 57.48 kB / 1.061 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001075/0.3022, allocations: 55.89 kB / 1.061 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.3022, allocations: 0 / 1.061 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.383e-06/0.3022, allocations: 0 / 1.061 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.729e-06/0.3023, allocations: 0 / 1.061 GB, free: 3.016 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.00057/0.3028, allocations: 371.5 kB / 1.062 GB, free: 2.605 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/0.3029, allocations: 15.97 kB / 1.062 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.206e-05/0.3029, allocations: 8.844 kB / 1.062 GB, free: 2.582 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001258/0.3031, allocations: 180.1 kB / 1.062 GB, free: 2.367 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.427e-05/0.3031, allocations: 4.375 kB / 1.062 GB, free: 2.363 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.971e-05/0.3031, allocations: 8.375 kB / 1.062 GB, free: 2.355 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002115/0.3033, allocations: 78.16 kB / 1.062 GB, free: 2.273 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.308e-06/0.3033, allocations: 3.938 kB / 1.062 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.261e-05/0.3034, allocations: 4 kB / 1.062 GB, free: 2.266 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.62e-06/0.3034, allocations: 4 kB / 1.062 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000196/0.3036, allocations: 55.89 kB / 1.062 GB, free: 2.207 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006989/0.3043, allocations: 328.7 kB / 1.062 GB, free: 1.836 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001734/0.3045, allocations: 62.55 kB / 1.062 GB, free: 1.766 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001125/0.3046, allocations: 37 kB / 1.062 GB, free: 1.727 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.751e-05/0.3046, allocations: 7.984 kB / 1.062 GB, free: 1.719 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000223/0.3049, allocations: 79.39 kB / 1.062 GB, free: 1.629 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 2.234e-06/0.3049, allocations: 0 / 1.062 GB, free: 1.629 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004868/0.3054, allocations: 149.5 kB / 1.063 GB, free: 1.477 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.129e-05/0.3054, allocations: 51.41 kB / 1.063 GB, free: 1.414 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001025/0.3055, allocations: 121.8 kB / 1.063 GB, free: 1.285 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.865e-05/0.3056, allocations: 29.64 kB / 1.063 GB, free: 1.25 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.555e-05/0.3056, allocations: 96.12 kB / 1.063 GB, free: 1.152 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.984e-05/0.3056, allocations: 19.69 kB / 1.063 GB, free: 1.133 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.301e-05/0.3057, allocations: 17.72 kB / 1.063 GB, free: 1.109 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001136/0.3058, allocations: 322.8 kB / 1.063 GB, free: 0.7852 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001176/0.3059, allocations: 39.97 kB / 1.063 GB, free: 0.7461 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001437/0.3061, allocations: 77.98 kB / 1.063 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002484/0.3063, allocations: 117.9 kB / 1.063 GB, free: 0.5117 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.3064, allocations: 0 / 1.063 GB, free: 0.5117 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003456/0.3067, allocations: 145.5 kB / 1.064 GB, free: 372 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.731e-05/0.3067, allocations: 8 kB / 1.064 GB, free: 364 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.3067, allocations: 0 / 1.064 GB, free: 364 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.359e-05/0.3068, allocations: 4 kB / 1.064 GB, free: 360 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001244/0.3069, allocations: 15.98 kB / 1.064 GB, free: 344 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.096e-05/0.3069, allocations: 7.938 kB / 1.064 GB, free: 336 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.304e-05/0.307, allocations: 23.95 kB / 1.064 GB, free: 312 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.537e-05/0.307, allocations: 4 kB / 1.064 GB, free: 308 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.0001043/0.3071, allocations: 117.8 kB / 1.064 GB, free: 180 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.162e-05/0.3072, allocations: 4 kB / 1.064 GB, free: 176 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.522e-05/0.3072, allocations: 16.36 kB / 1.064 GB, free: 160 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.3072, allocations: 0 / 1.064 GB, free: 160 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.3072, allocations: 0 / 1.064 GB, free: 160 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.3072, allocations: 0 / 1.064 GB, free: 160 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000557/0.3078, allocations: 394.2 kB / 1.064 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.3078, allocations: 0 / 1.064 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.739e-05/0.3079, allocations: 8 kB / 1.064 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.3079, allocations: 4 kB / 1.064 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.321e-05/0.3079, allocations: 7.984 kB / 1.064 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/0.3079, allocations: 3.938 kB / 1.064 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.3079, allocations: 0 / 1.064 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003342/0.3082, allocations: 219.7 kB / 1.064 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.216e-05/0.3083, allocations: 88.94 kB / 1.064 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.554e-05/0.3083, allocations: 3.938 kB / 1.064 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.598e-05/0.3084, allocations: 11.94 kB / 1.064 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.248e-05/0.3085, allocations: 7.984 kB / 1.064 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.073e-06/0.3085, allocations: 0 / 1.064 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.546e-05/0.3085, allocations: 99.92 kB / 1.065 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3085, allocations: 0 / 1.065 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002646/0.3088, allocations: 20 kB / 1.065 GB, free: 15.21 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.0001882/0.309, allocations: 107.2 kB / 1.065 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002905/0.3093, allocations: 96.14 kB / 1.065 GB, free: 15.01 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3093, allocations: 0 / 1.065 GB, free: 15.01 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001237/0.3095, allocations: 39.91 kB / 1.065 GB, free: 14.97 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002746/0.3097, allocations: 8.328 kB / 1.065 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003861/0.3101, allocations: 199.3 kB / 1.065 GB, free: 14.72 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002785/0.3104, allocations: 0.69 MB / 1.066 GB, free: 14.01 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.414e-05/0.3105, allocations: 15.44 kB / 1.066 GB, free: 13.99 MB / 0.8262 GB Notification: Performance of SimCode: time 3.1e-07/0.3105, allocations: 0 / 1.066 GB, free: 13.99 MB / 0.8262 GB Notification: Performance of Templates: time 0.002845/0.3133, allocations: 1.038 MB / 1.067 GB, free: 12.96 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/jenkins1/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:samTri.y,samTri1.y,time,triggeredSampler.u,triggeredSampler.y,triggeredSampler1.u,triggeredSampler1.y