Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.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.SampleTriggerPositiveStartTime,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.SampleTriggerPositiveStartTime") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime,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.SampleTriggerPositiveStartTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001124/0.001124, allocations: 92.62 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.001645/0.001645, allocations: 176.8 kB / 16.92 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.473/1.473, allocations: 223.3 MB / 241 MB, free: 5.273 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.813/2.813, allocations: 462.7 MB / 0.7371 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003541/0.0003541, allocations: 11.41 kB / 0.9034 GB, free: 36.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2976/0.298, allocations: 159.6 MB / 1.059 GB, free: 4.922 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.001006/0.2991, allocations: 485.5 kB / 1.06 GB, free: 4.453 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001489/0.3006, allocations: 1.073 MB / 1.061 GB, free: 3.367 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.525e-05/0.3006, allocations: 3.938 kB / 1.061 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.168e-05/0.3007, allocations: 0 / 1.061 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.045e-05/0.3008, allocations: 3.938 kB / 1.061 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002896/0.3011, allocations: 55.89 kB / 1.061 GB, free: 3.305 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.516e-05/0.3012, allocations: 63.84 kB / 1.061 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000107/0.3013, allocations: 12.17 kB / 1.061 GB, free: 3.227 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.735e-05/0.3014, allocations: 31.8 kB / 1.061 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.879e-05/0.3015, allocations: 23.91 kB / 1.061 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.717e-05/0.3015, allocations: 4 kB / 1.061 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.216e-05/0.3016, allocations: 15.98 kB / 1.061 GB, free: 3.152 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.971e-05/0.3016, allocations: 15.92 kB / 1.061 GB, free: 3.137 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.6e-05/0.3017, allocations: 57.55 kB / 1.061 GB, free: 3.074 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001057/0.3018, allocations: 51.83 kB / 1.061 GB, free: 3.023 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3018, allocations: 4 kB / 1.061 GB, free: 3.02 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.453e-06/0.3018, allocations: 0 / 1.061 GB, free: 3.02 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.098e-06/0.3018, allocations: 0 / 1.061 GB, free: 3.02 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.0005401/0.3023, allocations: 371.5 kB / 1.062 GB, free: 2.609 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.3024, allocations: 11.97 kB / 1.062 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.399e-05/0.3024, allocations: 16.84 kB / 1.062 GB, free: 2.582 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001246/0.3026, allocations: 176.2 kB / 1.062 GB, free: 2.371 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.223e-05/0.3026, allocations: 384 / 1.062 GB, free: 2.371 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.896e-05/0.3026, allocations: 8.375 kB / 1.062 GB, free: 2.363 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002087/0.3028, allocations: 74.16 kB / 1.062 GB, free: 2.285 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.949e-06/0.3028, allocations: 3.938 kB / 1.062 GB, free: 2.281 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.107e-05/0.3029, allocations: 7.984 kB / 1.062 GB, free: 2.273 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.3029, allocations: 0 / 1.062 GB, free: 2.273 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001945/0.3031, allocations: 59.89 kB / 1.062 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006808/0.3038, allocations: 336.6 kB / 1.062 GB, free: 1.836 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001778/0.304, allocations: 54.56 kB / 1.062 GB, free: 1.773 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001262/0.3041, allocations: 44.95 kB / 1.062 GB, free: 1.727 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.685e-05/0.3041, allocations: 0 / 1.062 GB, free: 1.727 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002144/0.3043, allocations: 83.41 kB / 1.062 GB, free: 1.633 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.262e-06/0.3044, allocations: 0 / 1.062 GB, free: 1.633 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004712/0.3048, allocations: 145.5 kB / 1.063 GB, free: 1.484 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.626e-05/0.3049, allocations: 59.41 kB / 1.063 GB, free: 1.414 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001014/0.305, allocations: 113.8 kB / 1.063 GB, free: 1.293 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.032e-05/0.305, allocations: 37.69 kB / 1.063 GB, free: 1.25 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.872e-05/0.3051, allocations: 84.14 kB / 1.063 GB, free: 1.164 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.181e-05/0.3051, allocations: 19.75 kB / 1.063 GB, free: 1.145 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.61e-05/0.3052, allocations: 21.7 kB / 1.063 GB, free: 1.117 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001384/0.3053, allocations: 322.8 kB / 1.063 GB, free: 0.793 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001186/0.3054, allocations: 35.91 kB / 1.063 GB, free: 0.7578 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001432/0.3056, allocations: 81.92 kB / 1.063 GB, free: 0.6562 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002543/0.3058, allocations: 117.9 kB / 1.063 GB, free: 0.5195 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.3059, allocations: 4 kB / 1.063 GB, free: 0.5156 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003426/0.3062, allocations: 145.4 kB / 1.064 GB, free: 376 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.3062, allocations: 8.219 kB / 1.064 GB, free: 368 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.581e-06/0.3062, allocations: 320 / 1.064 GB, free: 368 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.332e-05/0.3063, allocations: 4 kB / 1.064 GB, free: 364 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001438/0.3064, allocations: 23.97 kB / 1.064 GB, free: 340 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.733e-06/0.3064, allocations: 0 / 1.064 GB, free: 340 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.201e-05/0.3065, allocations: 15.91 kB / 1.064 GB, free: 324 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.79e-05/0.3065, allocations: 11.97 kB / 1.064 GB, free: 312 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.000108/0.3067, allocations: 131 kB / 1.064 GB, free: 172 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.433e-05/0.3067, allocations: 4 kB / 1.064 GB, free: 168 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.858e-05/0.3067, allocations: 8.375 kB / 1.064 GB, free: 160 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.3067, allocations: 0 / 1.064 GB, free: 160 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.3067, allocations: 0 / 1.064 GB, free: 160 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.3067, allocations: 0 / 1.064 GB, free: 160 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004941/0.3072, allocations: 390.3 kB / 1.064 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.3073, allocations: 4 kB / 1.064 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.697e-05/0.3073, allocations: 11.98 kB / 1.064 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.3073, allocations: 0 / 1.064 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.802e-06/0.3073, allocations: 0 / 1.064 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.3073, allocations: 3.938 kB / 1.064 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.3073, allocations: 0 / 1.064 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002934/0.3076, allocations: 211.4 kB / 1.064 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.894e-05/0.3077, allocations: 92.89 kB / 1.064 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.629e-05/0.3077, allocations: 8 kB / 1.064 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.57e-05/0.3078, allocations: 19.86 kB / 1.064 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.171e-05/0.3079, allocations: 4 kB / 1.064 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.076e-06/0.3079, allocations: 7.922 kB / 1.064 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.834e-05/0.3079, allocations: 95.88 kB / 1.065 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3079, allocations: 0 / 1.065 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002589/0.3082, allocations: 23.98 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.0001546/0.3084, allocations: 103.2 kB / 1.065 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002847/0.3087, allocations: 91.86 kB / 1.065 GB, free: 15.01 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3087, allocations: 0 / 1.065 GB, free: 15.01 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001228/0.3088, allocations: 48.36 kB / 1.065 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002657/0.3091, allocations: 14.52 kB / 1.065 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003562/0.3094, allocations: 191.1 kB / 1.065 GB, free: 14.72 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002336/0.3097, allocations: 0.6927 MB / 1.066 GB, free: 14 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.102e-05/0.3097, allocations: 15.42 kB / 1.066 GB, free: 13.99 MB / 0.8262 GB Notification: Performance of SimCode: time 2.21e-07/0.3097, allocations: 0 / 1.066 GB, free: 13.99 MB / 0.8262 GB Notification: Performance of Templates: time 0.002598/0.3123, allocations: 1.027 MB / 1.067 GB, free: 12.97 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.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