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.001569/0.001569, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001786/0.001786, allocations: 195 kB / 16.14 MB, free: 6.648 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.453/1.453, allocations: 222.9 MB / 239.8 MB, free: 4.59 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.521/2.521, allocations: 390.2 MB / 0.6642 GB, free: 0.582 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001846/0.001846, allocations: 71.89 kB / 0.8119 GB, free: 14.82 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.803/0.8049, allocations: 140.4 MB / 0.9489 GB, free: 9.137 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.002045/0.807, allocations: 0.815 MB / 0.9497 GB, free: 8.508 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001301/0.8083, allocations: 1.07 MB / 0.9508 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.586e-05/0.8084, allocations: 1.375 kB / 0.9508 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.029e-05/0.8084, allocations: 3.938 kB / 0.9508 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.071e-05/0.8085, allocations: 9.234 kB / 0.9508 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002624/0.8088, allocations: 44.06 kB / 0.9508 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.554e-05/0.8089, allocations: 72.86 kB / 0.9509 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001146/0.809, allocations: 19.55 kB / 0.9509 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.371e-05/0.8091, allocations: 25.83 kB / 0.951 GB, free: 7.531 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.401e-05/0.8091, allocations: 29.19 kB / 0.951 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.681e-05/0.8092, allocations: 4.781 kB / 0.951 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.193e-05/0.8092, allocations: 17.64 kB / 0.951 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.097e-05/0.8093, allocations: 14.89 kB / 0.951 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.101e-05/0.8093, allocations: 27.39 kB / 0.951 GB, free: 7.473 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001336/0.8094, allocations: 76.88 kB / 0.9511 GB, free: 7.414 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.8095, allocations: 8 kB / 0.9511 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.944e-06/0.8095, allocations: 1.312 kB / 0.9511 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.799e-06/0.8095, allocations: 0 / 0.9511 GB, free: 7.406 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.0005139/0.81, allocations: 375.1 kB / 0.9515 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.81, allocations: 9.781 kB / 0.9515 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.635e-05/0.8101, allocations: 9.031 kB / 0.9515 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.156e-05/0.8102, allocations: 175 kB / 0.9517 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.402e-05/0.8102, allocations: 3.188 kB / 0.9517 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.774e-05/0.8102, allocations: 11.36 kB / 0.9517 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001982/0.8104, allocations: 70.36 kB / 0.9517 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.8105, allocations: 3.938 kB / 0.9518 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.333e-05/0.8105, allocations: 5.5 kB / 0.9518 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.8105, allocations: 0 / 0.9518 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001739/0.8107, allocations: 44.8 kB / 0.9518 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005781/0.8112, allocations: 332.5 kB / 0.9521 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001646/0.8114, allocations: 53.11 kB / 0.9522 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.498e-05/0.8115, allocations: 34.64 kB / 0.9522 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.022e-05/0.8116, allocations: 1.312 kB / 0.9522 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001939/0.8118, allocations: 82.5 kB / 0.9523 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.312e-06/0.8118, allocations: 0 / 0.9523 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004198/0.8122, allocations: 140.5 kB / 0.9524 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.016e-05/0.8122, allocations: 52.59 kB / 0.9525 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.528e-05/0.8123, allocations: 125.6 kB / 0.9526 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.319e-05/0.8123, allocations: 25.7 kB / 0.9526 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.236e-05/0.8124, allocations: 96.11 kB / 0.9527 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.673e-05/0.8124, allocations: 6.25 kB / 0.9527 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.875e-05/0.8125, allocations: 30.58 kB / 0.9527 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.025e-05/0.8125, allocations: 324.1 kB / 0.953 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001061/0.8126, allocations: 28.31 kB / 0.9531 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001216/0.8128, allocations: 75.52 kB / 0.9531 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000208/0.813, allocations: 106.7 kB / 0.9532 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.813, allocations: 0 / 0.9532 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002891/0.8133, allocations: 139 kB / 0.9534 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.8133, allocations: 5.281 kB / 0.9534 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.8133, allocations: 1.375 kB / 0.9534 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.8133, allocations: 2.625 kB / 0.9534 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00013/0.8135, allocations: 20.05 kB / 0.9534 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.525e-06/0.8135, allocations: 1.688 kB / 0.9534 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.166e-05/0.8136, allocations: 18.23 kB / 0.9534 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.631e-05/0.8136, allocations: 7.781 kB / 0.9534 GB, free: 5.211 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 7.229e-05/0.8137, allocations: 124.6 kB / 0.9536 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.354e-05/0.8137, allocations: 10.84 kB / 0.9536 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.81e-05/0.8137, allocations: 13.64 kB / 0.9536 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.8137, allocations: 1.188 kB / 0.9536 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/0.8137, allocations: 5.531 kB / 0.9536 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.8137, allocations: 0 / 0.9536 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003779/0.8141, allocations: 373.4 kB / 0.9539 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.8141, allocations: 0 / 0.9539 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.299e-05/0.8142, allocations: 9.812 kB / 0.9539 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.8142, allocations: 0 / 0.9539 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.668e-06/0.8142, allocations: 5.516 kB / 0.954 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.8142, allocations: 3.938 kB / 0.954 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.8142, allocations: 0 / 0.954 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002479/0.8145, allocations: 197.3 kB / 0.9541 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.622e-05/0.8145, allocations: 87.28 kB / 0.9542 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.9e-05/0.8145, allocations: 8 kB / 0.9542 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.144e-05/0.8146, allocations: 7.844 kB / 0.9542 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.451e-05/0.8147, allocations: 6.766 kB / 0.9543 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.301e-06/0.8147, allocations: 2.812 kB / 0.9543 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.241e-05/0.8147, allocations: 96.14 kB / 0.9543 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.8147, allocations: 1.562 kB / 0.9543 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002498/0.815, allocations: 15.78 kB / 0.9544 GB, free: 4.316 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.0001427/0.8151, allocations: 121.8 kB / 0.9545 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002919/0.8154, allocations: 72.7 kB / 0.9545 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.8154, allocations: 0 / 0.9545 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001185/0.8156, allocations: 38.28 kB / 0.9546 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002573/0.8158, allocations: 8.969 kB / 0.9546 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003447/0.8162, allocations: 185.9 kB / 0.9548 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001221/0.8163, allocations: 0.6937 MB / 0.9554 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.736e-05/0.8164, allocations: 11.95 kB / 0.9555 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.941e-05/0.8164, allocations: 11.88 kB / 0.9555 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of SimCode: time 4.31e-07/0.8164, allocations: 0 / 0.9555 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of Templates: time 0.003381/0.8198, allocations: 0.8694 MB / 0.9563 GB, free: 2.863 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