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.001138/0.001138, allocations: 99.42 kB / 16.02 MB, free: 76 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.001529/0.001529, allocations: 186.5 kB / 16.92 MB, free: 6.75 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.509/1.509, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.749/2.749, allocations: 462.6 MB / 0.737 GB, free: 15.58 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003583/0.0003583, allocations: 8.562 kB / 0.9035 GB, free: 36.44 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3075/0.3079, allocations: 159.6 MB / 1.059 GB, free: 4.965 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.0009221/0.3088, allocations: 478.8 kB / 1.06 GB, free: 4.5 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001305/0.3102, allocations: 1.081 MB / 1.061 GB, free: 3.406 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.323e-05/0.3102, allocations: 0 / 1.061 GB, free: 3.406 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.633e-05/0.3102, allocations: 0 / 1.061 GB, free: 3.406 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.39e-05/0.3103, allocations: 11.88 kB / 1.061 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002436/0.3106, allocations: 43.95 kB / 1.061 GB, free: 3.352 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.078e-05/0.3107, allocations: 67.78 kB / 1.061 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001048/0.3108, allocations: 16.17 kB / 1.061 GB, free: 3.266 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.608e-05/0.3109, allocations: 23.86 kB / 1.061 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.073e-05/0.3109, allocations: 27.91 kB / 1.061 GB, free: 3.215 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.408e-05/0.3109, allocations: 4 kB / 1.061 GB, free: 3.211 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.098e-05/0.311, allocations: 15.98 kB / 1.061 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.136e-05/0.311, allocations: 19.91 kB / 1.061 GB, free: 3.176 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.092e-05/0.3111, allocations: 45.58 kB / 1.061 GB, free: 3.125 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001071/0.3112, allocations: 55.86 kB / 1.061 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.3112, allocations: 3.938 kB / 1.061 GB, free: 3.066 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.733e-06/0.3112, allocations: 0 / 1.061 GB, free: 3.066 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.268e-06/0.3112, allocations: 0 / 1.061 GB, free: 3.066 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.0004925/0.3117, allocations: 379.5 kB / 1.062 GB, free: 2.648 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.3118, allocations: 11.97 kB / 1.062 GB, free: 2.637 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.687e-05/0.3118, allocations: 8.844 kB / 1.062 GB, free: 2.629 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001134/0.3119, allocations: 176.2 kB / 1.062 GB, free: 2.418 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.423e-05/0.312, allocations: 384 / 1.062 GB, free: 2.418 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.427e-05/0.312, allocations: 8.375 kB / 1.062 GB, free: 2.41 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002064/0.3122, allocations: 78.22 kB / 1.062 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.3122, allocations: 3.938 kB / 1.062 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.044e-05/0.3122, allocations: 0 / 1.062 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.3122, allocations: 3.938 kB / 1.062 GB, free: 2.32 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001928/0.3124, allocations: 59.89 kB / 1.062 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006114/0.3131, allocations: 328.7 kB / 1.062 GB, free: 1.891 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001665/0.3132, allocations: 62.56 kB / 1.062 GB, free: 1.82 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000107/0.3134, allocations: 40.95 kB / 1.062 GB, free: 1.777 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.993e-05/0.3134, allocations: 4.031 kB / 1.062 GB, free: 1.773 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002/0.3136, allocations: 83.38 kB / 1.062 GB, free: 1.68 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.573e-06/0.3136, allocations: 0 / 1.062 GB, free: 1.68 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004422/0.314, allocations: 149.7 kB / 1.063 GB, free: 1.527 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.892e-05/0.3141, allocations: 59.41 kB / 1.063 GB, free: 1.457 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.467e-05/0.3142, allocations: 117.8 kB / 1.063 GB, free: 1.332 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.618e-05/0.3142, allocations: 25.7 kB / 1.063 GB, free: 1.301 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.245e-05/0.3143, allocations: 92.12 kB / 1.063 GB, free: 1.207 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.924e-05/0.3143, allocations: 19.69 kB / 1.063 GB, free: 1.188 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.505e-05/0.3143, allocations: 21.7 kB / 1.063 GB, free: 1.16 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.784e-05/0.3144, allocations: 322.8 kB / 1.063 GB, free: 0.8359 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001151/0.3146, allocations: 39.91 kB / 1.063 GB, free: 0.7969 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001357/0.3147, allocations: 73.98 kB / 1.063 GB, free: 0.7031 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002389/0.315, allocations: 121.9 kB / 1.063 GB, free: 0.5625 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.315, allocations: 0 / 1.063 GB, free: 0.5625 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003272/0.3153, allocations: 149.4 kB / 1.064 GB, free: 420 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.3153, allocations: 5.562 kB / 1.064 GB, free: 416 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.3153, allocations: 4.078 kB / 1.064 GB, free: 412 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.3154, allocations: 0 / 1.064 GB, free: 412 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001239/0.3155, allocations: 23.97 kB / 1.064 GB, free: 388 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.126e-06/0.3155, allocations: 7.922 kB / 1.064 GB, free: 380 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.65e-05/0.3156, allocations: 20.06 kB / 1.064 GB, free: 360 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.375e-05/0.3156, allocations: 8 kB / 1.064 GB, free: 352 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 8.586e-05/0.3157, allocations: 121.8 kB / 1.064 GB, free: 220 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.189e-05/0.3157, allocations: 4 kB / 1.064 GB, free: 216 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.586e-05/0.3158, allocations: 8.375 kB / 1.064 GB, free: 208 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.3158, allocations: 0 / 1.064 GB, free: 208 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.3158, allocations: 0 / 1.064 GB, free: 208 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.3158, allocations: 4 kB / 1.064 GB, free: 204 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004726/0.3163, allocations: 390.3 kB / 1.064 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.3163, allocations: 0 / 1.064 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.14e-05/0.3163, allocations: 15.98 kB / 1.064 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.3163, allocations: 0 / 1.064 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.364e-06/0.3164, allocations: 0 / 1.064 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.3164, allocations: 3.938 kB / 1.064 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.3164, allocations: 0 / 1.064 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002924/0.3167, allocations: 223.3 kB / 1.064 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.676e-05/0.3167, allocations: 88.95 kB / 1.064 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.6e-05/0.3167, allocations: 4 kB / 1.064 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.913e-05/0.3168, allocations: 11.92 kB / 1.064 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.286e-05/0.3169, allocations: 4 kB / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.336e-06/0.3169, allocations: 4 kB / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.077e-05/0.3169, allocations: 95.86 kB / 1.065 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3169, allocations: 4 kB / 1.065 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002523/0.3172, allocations: 20 kB / 1.065 GB, free: 15.26 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.000143/0.3174, allocations: 107.2 kB / 1.065 GB, free: 15.15 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002758/0.3176, allocations: 83.95 kB / 1.065 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.3176, allocations: 0 / 1.065 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001187/0.3178, allocations: 47.91 kB / 1.065 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002729/0.3181, allocations: 12.31 kB / 1.065 GB, free: 15.01 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003438/0.3184, allocations: 195.5 kB / 1.065 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002145/0.3186, allocations: 0.6887 MB / 1.066 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.956e-05/0.3187, allocations: 11.44 kB / 1.066 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of SimCode: time 3.91e-07/0.3187, allocations: 0 / 1.066 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of Templates: time 0.00238/0.3211, allocations: 1.039 MB / 1.067 GB, free: 13.02 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/jenkins1/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:samTri.y,samTri1.y,time,triggeredSampler.u,triggeredSampler.y,triggeredSampler1.u,triggeredSampler1.y