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.001662/0.001662, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002203/0.002203, allocations: 196.8 kB / 16.14 MB, free: 6.711 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.397/1.397, allocations: 222.9 MB / 239.8 MB, free: 4.527 MB / 190.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.439/2.439, allocations: 390.2 MB / 0.6642 GB, free: 0.6445 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001201/0.001201, allocations: 63.91 kB / 0.8119 GB, free: 14.85 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.889/0.8902, allocations: 140.3 MB / 0.9489 GB, free: 9.219 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.002164/0.8924, allocations: 0.8167 MB / 0.9497 GB, free: 8.59 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001332/0.8937, allocations: 1.063 MB / 0.9508 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.191e-05/0.8938, allocations: 3.938 kB / 0.9508 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.104e-05/0.8938, allocations: 5.312 kB / 0.9508 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.435e-05/0.8939, allocations: 21.19 kB / 0.9508 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002628/0.8942, allocations: 39.84 kB / 0.9508 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.704e-05/0.8943, allocations: 64 kB / 0.9509 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001158/0.8944, allocations: 20.03 kB / 0.9509 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.904e-05/0.8945, allocations: 31.7 kB / 0.951 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.092e-05/0.8946, allocations: 28.86 kB / 0.951 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.624e-05/0.8946, allocations: 2.625 kB / 0.951 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.669e-05/0.8947, allocations: 18.8 kB / 0.951 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.379e-05/0.8947, allocations: 22.89 kB / 0.951 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.491e-05/0.8948, allocations: 22.88 kB / 0.951 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001372/0.8949, allocations: 77.42 kB / 0.9511 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.8949, allocations: 0 / 0.9511 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of FrontEnd: time 8.82e-07/0.8949, allocations: 0 / 0.9511 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.069e-06/0.8949, allocations: 1.406 kB / 0.9511 GB, free: 7.488 MB / 0.7169 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.0005016/0.8955, allocations: 375.1 kB / 0.9515 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/0.8955, allocations: 9.781 kB / 0.9515 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.474e-05/0.8955, allocations: 8.125 kB / 0.9515 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.072e-05/0.8956, allocations: 187.9 kB / 0.9517 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.284e-05/0.8957, allocations: 2.625 kB / 0.9517 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.803e-05/0.8957, allocations: 8.688 kB / 0.9517 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001815/0.8959, allocations: 73.59 kB / 0.9518 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.8959, allocations: 3.938 kB / 0.9518 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.088e-05/0.8959, allocations: 0 / 0.9518 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.8959, allocations: 1.469 kB / 0.9518 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001661/0.8961, allocations: 51.73 kB / 0.9518 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005617/0.8966, allocations: 330 kB / 0.9521 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001508/0.8968, allocations: 52.42 kB / 0.9522 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.396e-05/0.8969, allocations: 34.97 kB / 0.9522 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.058e-05/0.8969, allocations: 3.984 kB / 0.9522 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001791/0.8971, allocations: 70.64 kB / 0.9523 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.453e-06/0.8971, allocations: 0 / 0.9523 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003957/0.8975, allocations: 136.6 kB / 0.9524 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.854e-05/0.8976, allocations: 56.75 kB / 0.9525 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.416e-05/0.8977, allocations: 121.2 kB / 0.9526 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.274e-05/0.8977, allocations: 27.27 kB / 0.9526 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.731e-05/0.8977, allocations: 90.83 kB / 0.9527 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.642e-05/0.8977, allocations: 14.83 kB / 0.9527 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.517e-05/0.8978, allocations: 30.2 kB / 0.9527 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.318e-05/0.8979, allocations: 321.6 kB / 0.953 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001124/0.898, allocations: 32.09 kB / 0.9531 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001223/0.8981, allocations: 69.45 kB / 0.9531 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002146/0.8983, allocations: 111.7 kB / 0.9532 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.8983, allocations: 0 / 0.9532 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002933/0.8986, allocations: 133.8 kB / 0.9534 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.8987, allocations: 5.781 kB / 0.9534 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.8987, allocations: 1.406 kB / 0.9534 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/0.8987, allocations: 6.531 kB / 0.9534 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001278/0.8988, allocations: 23.91 kB / 0.9534 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.8988, allocations: 2.969 kB / 0.9534 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.46e-05/0.8989, allocations: 18.78 kB / 0.9534 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.67e-05/0.8989, allocations: 7.891 kB / 0.9534 GB, free: 5.285 MB / 0.7169 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.165e-05/0.899, allocations: 126.8 kB / 0.9536 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.551e-05/0.8991, allocations: 6.281 kB / 0.9536 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.675e-05/0.8991, allocations: 6.781 kB / 0.9536 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.8991, allocations: 0 / 0.9536 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.8991, allocations: 0.875 kB / 0.9536 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.8991, allocations: 0 / 0.9536 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000391/0.8995, allocations: 381.6 kB / 0.9539 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.8995, allocations: 0 / 0.9539 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.476e-05/0.8996, allocations: 13.52 kB / 0.9539 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.8996, allocations: 1.438 kB / 0.9539 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.015e-05/0.8996, allocations: 0 / 0.9539 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.8996, allocations: 5.375 kB / 0.954 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.8996, allocations: 0 / 0.954 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002575/0.8999, allocations: 204.4 kB / 0.9541 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.031e-05/0.8999, allocations: 83.58 kB / 0.9542 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.554e-05/0.8999, allocations: 5.188 kB / 0.9542 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.354e-05/0.9, allocations: 15.8 kB / 0.9542 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.231e-05/0.9001, allocations: 2.562 kB / 0.9543 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.895e-06/0.9001, allocations: 5.219 kB / 0.9543 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.34e-05/0.9001, allocations: 96.55 kB / 0.9543 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9001, allocations: 1.281 kB / 0.9543 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002467/0.9004, allocations: 16.53 kB / 0.9544 GB, free: 4.387 MB / 0.7169 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.0001424/0.9005, allocations: 113.4 kB / 0.9545 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002611/0.9008, allocations: 76.75 kB / 0.9545 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.9008, allocations: 5.094 kB / 0.9546 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000109/0.9009, allocations: 32.89 kB / 0.9546 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002581/0.9012, allocations: 9.266 kB / 0.9546 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003146/0.9015, allocations: 188.2 kB / 0.9548 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001101/0.9016, allocations: 0.6892 MB / 0.9554 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.369e-05/0.9017, allocations: 9.406 kB / 0.9555 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.755e-05/0.9017, allocations: 11.47 kB / 0.9555 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.9017, allocations: 0 / 0.9555 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of Templates: time 0.003202/0.9049, allocations: 0.8735 MB / 0.9563 GB, free: 2.938 MB / 0.7169 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/jenkins/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:ramp.duration,ramp.height,ramp.offset,ramp.startTime,samTri.period,samTri.shift,samTri.t0,samTri.y,samTri1.period,samTri1.shift,samTri1.t0,samTri1.y,time,triggeredSampler.u,triggeredSampler.y,triggeredSampler.y_start,triggeredSampler1.u,triggeredSampler1.y,triggeredSampler1.y_start