Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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_11_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_11_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.001686/0.001686, allocations: 106.1 kB / 15.99 MB, free: 6.355 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.00193/0.00193, allocations: 196.5 kB / 16.91 MB, free: 6.188 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.344/1.344, allocations: 222.9 MB / 240.6 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.544/2.544, allocations: 469.8 MB / 0.7427 GB, free: 3.625 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001878/0.001878, allocations: 75.91 kB / 0.9088 GB, free: 14.19 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2973/0.2992, allocations: 159.1 MB / 1.064 GB, free: 15.07 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.001945/0.3012, allocations: 0.8066 MB / 1.065 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001303/0.3025, allocations: 1.073 MB / 1.066 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.322e-05/0.3025, allocations: 4 kB / 1.066 GB, free: 13.17 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 4.051e-05/0.3026, allocations: 3.938 kB / 1.066 GB, free: 13.17 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 8.374e-05/0.3027, allocations: 11.91 kB / 1.066 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003036/0.303, allocations: 43.92 kB / 1.066 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001097/0.3031, allocations: 71.83 kB / 1.066 GB, free: 13.04 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001282/0.3032, allocations: 24.11 kB / 1.066 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 7.639e-05/0.3033, allocations: 23.92 kB / 1.066 GB, free: 12.99 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 7.851e-05/0.3034, allocations: 35.89 kB / 1.066 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.775e-05/0.3034, allocations: 7.938 kB / 1.066 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 7.2e-05/0.3035, allocations: 23.92 kB / 1.066 GB, free: 12.93 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.294e-05/0.3035, allocations: 11.98 kB / 1.066 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 5.276e-05/0.3036, allocations: 39.8 kB / 1.066 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001238/0.3037, allocations: 51.89 kB / 1.066 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.3037, allocations: 0 / 1.066 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.933e-06/0.3037, allocations: 0 / 1.066 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.068e-05/0.3038, allocations: 4 kB / 1.066 GB, free: 12.82 MB / 0.8419 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.0005917/0.3044, allocations: 371.5 kB / 1.067 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.678e-05/0.3044, allocations: 11.97 kB / 1.067 GB, free: 12.4 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.941e-05/0.3045, allocations: 12.83 kB / 1.067 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001372/0.3046, allocations: 168.3 kB / 1.067 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.259e-05/0.3046, allocations: 12.38 kB / 1.067 GB, free: 12.17 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.963e-05/0.3046, allocations: 4.375 kB / 1.067 GB, free: 12.17 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002006/0.3048, allocations: 70.16 kB / 1.067 GB, free: 12.09 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.3049, allocations: 3.938 kB / 1.067 GB, free: 12.09 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.249e-05/0.3049, allocations: 4 kB / 1.067 GB, free: 12.09 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.3049, allocations: 3.984 kB / 1.067 GB, free: 12.08 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001723/0.3051, allocations: 39.95 kB / 1.067 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006573/0.3057, allocations: 328.6 kB / 1.067 GB, free: 11.67 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001831/0.3059, allocations: 58.55 kB / 1.067 GB, free: 11.61 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000107/0.306, allocations: 28.95 kB / 1.067 GB, free: 11.57 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.931e-05/0.3061, allocations: 8 kB / 1.067 GB, free: 11.57 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002653/0.3064, allocations: 75.36 kB / 1.067 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=7): time 1.543e-06/0.3064, allocations: 0 / 1.067 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of matching and sorting (n=7): time 0.0004861/0.3069, allocations: 129.6 kB / 1.068 GB, free: 11.35 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.19e-05/0.3069, allocations: 63.39 kB / 1.068 GB, free: 11.27 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000123/0.3071, allocations: 117.8 kB / 1.068 GB, free: 11.15 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.687e-05/0.3071, allocations: 33.7 kB / 1.068 GB, free: 11.11 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 7.975e-05/0.3072, allocations: 96.02 kB / 1.068 GB, free: 11.01 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.002e-05/0.3072, allocations: 19.75 kB / 1.068 GB, free: 10.99 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.093e-05/0.3073, allocations: 29.64 kB / 1.068 GB, free: 10.96 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001495/0.3074, allocations: 322.8 kB / 1.068 GB, free: 10.63 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001196/0.3076, allocations: 35.97 kB / 1.068 GB, free: 10.6 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001415/0.3077, allocations: 69.98 kB / 1.068 GB, free: 10.51 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002493/0.308, allocations: 109.8 kB / 1.068 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.308, allocations: 0 / 1.068 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003188/0.3083, allocations: 129.4 kB / 1.069 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.341e-05/0.3083, allocations: 8 kB / 1.069 GB, free: 10.24 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/0.3083, allocations: 3.984 kB / 1.069 GB, free: 10.23 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.232e-05/0.3084, allocations: 4 kB / 1.069 GB, free: 10.23 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001468/0.3085, allocations: 19.92 kB / 1.069 GB, free: 10.21 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.227e-05/0.3086, allocations: 4 kB / 1.069 GB, free: 10.21 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.96e-05/0.3086, allocations: 15.98 kB / 1.069 GB, free: 10.19 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.797e-05/0.3087, allocations: 8.219 kB / 1.069 GB, free: 10.18 MB / 0.8419 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.000128/0.3088, allocations: 127 kB / 1.069 GB, free: 10.05 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.547e-05/0.3088, allocations: 7.906 kB / 1.069 GB, free: 10.04 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.541e-05/0.3089, allocations: 12.38 kB / 1.069 GB, free: 10.03 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.3089, allocations: 0 / 1.069 GB, free: 10.03 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.3089, allocations: 0 / 1.069 GB, free: 10.03 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.3089, allocations: 0 / 1.069 GB, free: 10.03 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005733/0.3095, allocations: 378.4 kB / 1.069 GB, free: 9.605 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.3095, allocations: 3.938 kB / 1.069 GB, free: 9.602 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.188e-05/0.3095, allocations: 7.984 kB / 1.069 GB, free: 9.594 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.3096, allocations: 0 / 1.069 GB, free: 9.594 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.032e-05/0.3096, allocations: 8 kB / 1.069 GB, free: 9.586 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.3096, allocations: 3.938 kB / 1.069 GB, free: 9.582 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.3096, allocations: 0 / 1.069 GB, free: 9.582 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003158/0.3099, allocations: 195.5 kB / 1.069 GB, free: 9.375 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.063e-05/0.31, allocations: 88.95 kB / 1.069 GB, free: 9.27 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.867e-05/0.31, allocations: 3.938 kB / 1.069 GB, free: 9.266 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.465e-05/0.3101, allocations: 11.92 kB / 1.069 GB, free: 9.254 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.254e-05/0.3101, allocations: 4 kB / 1.069 GB, free: 9.25 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.01e-05/0.3102, allocations: 7.984 kB / 1.069 GB, free: 9.242 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 6.175e-05/0.3102, allocations: 87.28 kB / 1.07 GB, free: 9.156 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.134e-06/0.3102, allocations: 4 kB / 1.07 GB, free: 9.152 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002629/0.3105, allocations: 27.92 kB / 1.07 GB, free: 9.125 MB / 0.8419 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.0001854/0.3107, allocations: 103.2 kB / 1.07 GB, free: 9.016 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002938/0.311, allocations: 79.88 kB / 1.07 GB, free: 8.938 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.311, allocations: 448 / 1.07 GB, free: 8.938 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001193/0.3111, allocations: 43.91 kB / 1.07 GB, free: 8.895 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002666/0.3114, allocations: 7.984 kB / 1.07 GB, free: 8.887 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004035/0.3118, allocations: 206.1 kB / 1.07 GB, free: 8.652 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003197/0.3121, allocations: 0.6924 MB / 1.071 GB, free: 7.934 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.387e-05/0.3122, allocations: 11.44 kB / 1.071 GB, free: 7.922 MB / 0.8419 GB Notification: Performance of SimCode: time 2.3e-07/0.3122, allocations: 0 / 1.071 GB, free: 7.922 MB / 0.8419 GB Notification: Performance of Templates: time 0.002771/0.315, allocations: 1.056 MB / 1.072 GB, free: 6.879 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.makefile (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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