Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.SampleTriggerPositiveStartTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_9_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_9_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.001406/0.001406, allocations: 104.9 kB / 16.41 MB, free: 6.41 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.00139/0.001391, allocations: 189.7 kB / 17.35 MB, free: 5.695 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.423/1.423, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.411/2.411, allocations: 390.3 MB / 0.6655 GB, free: 0.6719 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001515/0.001515, allocations: 63.91 kB / 0.9516 GB, free: 7.664 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8901/0.8916, allocations: 140.4 MB / 1.089 GB, free: 5.543 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.00193/0.8936, allocations: 0.7504 MB / 1.089 GB, free: 5.062 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001396/0.895, allocations: 1.069 MB / 1.09 GB, free: 4.273 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.515e-05/0.8951, allocations: 1.688 kB / 1.09 GB, free: 4.273 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.834e-05/0.8952, allocations: 9 kB / 1.09 GB, free: 4.266 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.595e-05/0.8952, allocations: 10.89 kB / 1.09 GB, free: 4.258 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003592/0.8956, allocations: 50.69 kB / 1.09 GB, free: 4.23 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001532/0.8958, allocations: 74.06 kB / 1.091 GB, free: 4.195 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001256/0.8959, allocations: 23 kB / 1.091 GB, free: 4.18 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.353e-05/0.896, allocations: 29.58 kB / 1.091 GB, free: 4.164 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.644e-05/0.8961, allocations: 38.3 kB / 1.091 GB, free: 4.145 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.234e-05/0.8961, allocations: 5.438 kB / 1.091 GB, free: 4.145 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.859e-05/0.8962, allocations: 20.19 kB / 1.091 GB, free: 4.141 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.455e-05/0.8962, allocations: 13.56 kB / 1.091 GB, free: 4.133 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.127e-05/0.8963, allocations: 34.59 kB / 1.091 GB, free: 4.109 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001855/0.8965, allocations: 79.53 kB / 1.091 GB, free: 4.078 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.8965, allocations: 0.7188 kB / 1.091 GB, free: 4.078 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.224e-06/0.8965, allocations: 0 / 1.091 GB, free: 4.078 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.444e-06/0.8965, allocations: 4 kB / 1.091 GB, free: 4.074 MB / 0.8575 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.0005526/0.8971, allocations: 378.1 kB / 1.091 GB, free: 3.703 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.8971, allocations: 9.344 kB / 1.091 GB, free: 3.703 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.134e-05/0.8972, allocations: 9.266 kB / 1.091 GB, free: 3.699 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001095/0.8973, allocations: 172.9 kB / 1.091 GB, free: 3.496 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.64e-05/0.8973, allocations: 6.984 kB / 1.091 GB, free: 3.492 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.659e-05/0.8973, allocations: 3.969 kB / 1.091 GB, free: 3.492 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002251/0.8976, allocations: 69.22 kB / 1.091 GB, free: 3.449 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.749e-06/0.8976, allocations: 3.938 kB / 1.091 GB, free: 3.445 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.417e-05/0.8976, allocations: 5.672 kB / 1.091 GB, free: 3.441 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.8976, allocations: 1.094 kB / 1.091 GB, free: 3.441 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001974/0.8978, allocations: 43.75 kB / 1.091 GB, free: 3.434 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006612/0.8985, allocations: 326.9 kB / 1.092 GB, free: 3.133 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001702/0.8987, allocations: 55.44 kB / 1.092 GB, free: 3.098 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001098/0.8988, allocations: 32.86 kB / 1.092 GB, free: 3.082 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.766e-05/0.8988, allocations: 5.859 kB / 1.092 GB, free: 3.078 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002231/0.899, allocations: 76.67 kB / 1.092 GB, free: 3.02 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.523e-06/0.899, allocations: 0.875 kB / 1.092 GB, free: 3.02 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004752/0.8995, allocations: 131.8 kB / 1.092 GB, free: 2.961 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.48e-05/0.8996, allocations: 53.36 kB / 1.092 GB, free: 2.898 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001209/0.8997, allocations: 123.5 kB / 1.092 GB, free: 2.789 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.22e-05/0.8997, allocations: 35.05 kB / 1.092 GB, free: 2.75 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.658e-05/0.8998, allocations: 92.62 kB / 1.092 GB, free: 2.66 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.048e-05/0.8998, allocations: 18.98 kB / 1.092 GB, free: 2.645 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.108e-05/0.8999, allocations: 30.91 kB / 1.092 GB, free: 2.621 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.117e-05/0.8999, allocations: 323.5 kB / 1.093 GB, free: 2.301 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001187/0.9001, allocations: 30.58 kB / 1.093 GB, free: 2.293 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001463/0.9002, allocations: 73.84 kB / 1.093 GB, free: 2.227 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002487/0.9005, allocations: 106.5 kB / 1.093 GB, free: 2.148 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.9005, allocations: 0.7812 kB / 1.093 GB, free: 2.148 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003259/0.9008, allocations: 131.1 kB / 1.093 GB, free: 2.086 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.9e-05/0.9008, allocations: 6 kB / 1.093 GB, free: 2.086 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.9009, allocations: 6.438 kB / 1.093 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.004e-05/0.9009, allocations: 6.281 kB / 1.093 GB, free: 2.078 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000136/0.901, allocations: 17.84 kB / 1.093 GB, free: 2.078 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.285e-05/0.901, allocations: 6.422 kB / 1.093 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.92e-05/0.9011, allocations: 15.52 kB / 1.093 GB, free: 2.066 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.757e-05/0.9012, allocations: 9.25 kB / 1.093 GB, free: 2.062 MB / 0.8575 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 7.64e-05/0.9012, allocations: 120.2 kB / 1.093 GB, free: 1.941 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.529e-05/0.9013, allocations: 7.031 kB / 1.093 GB, free: 1.938 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.064e-05/0.9013, allocations: 15.31 kB / 1.093 GB, free: 1.926 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.9013, allocations: 5.281 kB / 1.093 GB, free: 1.922 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.9013, allocations: 0 / 1.093 GB, free: 1.922 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.481e-06/0.9013, allocations: 1.547 kB / 1.093 GB, free: 1.922 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004347/0.9018, allocations: 375.6 kB / 1.094 GB, free: 1.586 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.9018, allocations: 0 / 1.094 GB, free: 1.586 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.761e-05/0.9018, allocations: 9.453 kB / 1.094 GB, free: 1.586 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.9019, allocations: 9.078 kB / 1.094 GB, free: 1.578 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.546e-06/0.9019, allocations: 4 kB / 1.094 GB, free: 1.574 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.9019, allocations: 5.797 kB / 1.094 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.9019, allocations: 0 / 1.094 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002819/0.9022, allocations: 200.5 kB / 1.094 GB, free: 1.418 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.61e-05/0.9022, allocations: 83.84 kB / 1.094 GB, free: 1.32 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.856e-05/0.9022, allocations: 1.859 kB / 1.094 GB, free: 1.32 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.719e-05/0.9023, allocations: 12.95 kB / 1.094 GB, free: 1.312 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.446e-05/0.9024, allocations: 9.484 kB / 1.094 GB, free: 1.309 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.973e-06/0.9024, allocations: 2.953 kB / 1.094 GB, free: 1.309 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.361e-05/0.9024, allocations: 91.67 kB / 1.094 GB, free: 1.23 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.21e-07/0.9024, allocations: 0 / 1.094 GB, free: 1.23 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002691/0.9027, allocations: 13.31 kB / 1.094 GB, free: 1.23 MB / 0.8575 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.0001697/0.9029, allocations: 112.6 kB / 1.094 GB, free: 1.137 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003259/0.9032, allocations: 87.36 kB / 1.094 GB, free: 1.109 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.9032, allocations: 0 / 1.094 GB, free: 1.109 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001368/0.9034, allocations: 31.66 kB / 1.094 GB, free: 1.105 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003151/0.9037, allocations: 12.53 kB / 1.094 GB, free: 1.102 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003793/0.9041, allocations: 194.3 kB / 1.094 GB, free: 0.9219 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001651/0.9043, allocations: 0.6882 MB / 1.095 GB, free: 232 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.248e-05/0.9043, allocations: 12.8 kB / 1.095 GB, free: 224 kB / 0.8575 GB Notification: Performance of SimCode: time 3.11e-07/0.9043, allocations: 0 / 1.095 GB, free: 224 kB / 0.8575 GB Notification: Performance of Templates: time 0.00338/0.9077, allocations: 1.055 MB / 1.096 GB, free: 136 kB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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