Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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.SampleTrigger,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.SampleTrigger") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,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.SampleTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00154/0.00154, 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.001995/0.001995, allocations: 191.2 kB / 16.13 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.417/1.417, allocations: 222.9 MB / 239.8 MB, free: 4.512 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.544/2.544, allocations: 390.2 MB / 0.6642 GB, free: 0.6445 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001393, allocations: 59.91 kB / 0.8119 GB, free: 14.89 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8342/0.8356, allocations: 140.4 MB / 0.9489 GB, free: 9.223 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002197/0.8378, allocations: 0.8133 MB / 0.9497 GB, free: 8.594 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001285/0.8391, allocations: 1.063 MB / 0.9508 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.216e-05/0.8392, allocations: 1.281 kB / 0.9508 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.551e-05/0.8392, allocations: 3.938 kB / 0.9508 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.754e-05/0.8393, allocations: 9.188 kB / 0.9508 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002712/0.8396, allocations: 52.48 kB / 0.9508 GB, free: 7.688 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001067/0.8397, allocations: 73.39 kB / 0.9509 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00013/0.8399, allocations: 14.8 kB / 0.9509 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.627e-05/0.8399, allocations: 23.48 kB / 0.9509 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.143e-05/0.84, allocations: 32.31 kB / 0.951 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.744e-05/0.84, allocations: 4.062 kB / 0.951 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.252e-05/0.8401, allocations: 22.28 kB / 0.951 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.921e-05/0.8401, allocations: 13.67 kB / 0.951 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.585e-05/0.8402, allocations: 28.33 kB / 0.951 GB, free: 7.555 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001375/0.8403, allocations: 76.75 kB / 0.9511 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.8403, allocations: 0 / 0.9511 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.453e-06/0.8404, allocations: 1.688 kB / 0.9511 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.001e-05/0.8404, allocations: 0 / 0.9511 GB, free: 7.496 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.0005082/0.8409, allocations: 383.8 kB / 0.9515 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.46e-05/0.8409, allocations: 10.09 kB / 0.9515 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.178e-05/0.841, allocations: 8.094 kB / 0.9515 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001022/0.8411, allocations: 172.1 kB / 0.9517 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.059e-05/0.8411, allocations: 1.688 kB / 0.9517 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.003e-05/0.8411, allocations: 13.22 kB / 0.9517 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001887/0.8413, allocations: 65.44 kB / 0.9517 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.8413, allocations: 7.875 kB / 0.9518 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.175e-05/0.8414, allocations: 1.062 kB / 0.9518 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.62e-06/0.8414, allocations: 1.156 kB / 0.9518 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001634/0.8415, allocations: 43.89 kB / 0.9518 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005774/0.8421, allocations: 329.5 kB / 0.9521 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001484/0.8423, allocations: 55.5 kB / 0.9522 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.506e-05/0.8424, allocations: 31.23 kB / 0.9522 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.504e-05/0.8424, allocations: 5.438 kB / 0.9522 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002126/0.8426, allocations: 78.69 kB / 0.9523 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.383e-06/0.8426, allocations: 3.938 kB / 0.9523 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004287/0.8431, allocations: 132.2 kB / 0.9524 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.006e-05/0.8431, allocations: 56.64 kB / 0.9525 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.2e-05/0.8432, allocations: 132.6 kB / 0.9526 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.304e-05/0.8432, allocations: 26.95 kB / 0.9526 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.947e-05/0.8433, allocations: 91.61 kB / 0.9527 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.627e-05/0.8433, allocations: 14.06 kB / 0.9527 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.737e-05/0.8433, allocations: 30.55 kB / 0.9527 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.097e-05/0.8434, allocations: 321.3 kB / 0.953 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001089/0.8435, allocations: 32.31 kB / 0.9531 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001176/0.8436, allocations: 73.7 kB / 0.9531 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002133/0.8439, allocations: 108.2 kB / 0.9532 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.8439, allocations: 0 / 0.9532 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002904/0.8442, allocations: 137.7 kB / 0.9534 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/0.8442, allocations: 4.875 kB / 0.9534 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.291e-06/0.8442, allocations: 2.812 kB / 0.9534 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/0.8442, allocations: 1.25 kB / 0.9534 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001314/0.8443, allocations: 20.27 kB / 0.9534 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.8444, allocations: 2.969 kB / 0.9534 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.218e-05/0.8445, allocations: 18.2 kB / 0.9534 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.429e-05/0.8445, allocations: 4.531 kB / 0.9534 GB, free: 5.297 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.145e-05/0.8445, allocations: 126.2 kB / 0.9536 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.475e-05/0.8446, allocations: 7.188 kB / 0.9536 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.688e-05/0.8446, allocations: 9.422 kB / 0.9536 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/0.8446, allocations: 1.25 kB / 0.9536 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.8446, allocations: 0 / 0.9536 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.8446, allocations: 5.031 kB / 0.9536 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000383/0.845, allocations: 381.2 kB / 0.9539 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.845, allocations: 0 / 0.9539 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.285e-05/0.8451, allocations: 6.281 kB / 0.9539 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.714e-06/0.8451, allocations: 0 / 0.9539 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.978e-06/0.8451, allocations: 1.344 kB / 0.9539 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.426e-06/0.8451, allocations: 11.86 kB / 0.954 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.8451, allocations: 1.594 kB / 0.954 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002496/0.8454, allocations: 199.5 kB / 0.9541 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.283e-05/0.8454, allocations: 83.67 kB / 0.9542 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.816e-05/0.8454, allocations: 5.547 kB / 0.9542 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.063e-05/0.8455, allocations: 11.62 kB / 0.9542 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.46e-05/0.8456, allocations: 6.547 kB / 0.9543 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.213e-06/0.8456, allocations: 1.188 kB / 0.9543 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.064e-05/0.8456, allocations: 92.23 kB / 0.9543 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.8456, allocations: 1.844 kB / 0.9543 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002481/0.8459, allocations: 20.12 kB / 0.9544 GB, free: 4.398 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.0001493/0.846, allocations: 104 kB / 0.9545 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002818/0.8463, allocations: 80.16 kB / 0.9545 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.8463, allocations: 1.375 kB / 0.9545 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001152/0.8465, allocations: 36.81 kB / 0.9546 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002801/0.8467, allocations: 16.03 kB / 0.9546 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003835/0.8471, allocations: 180.2 kB / 0.9548 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000153/0.8473, allocations: 0.694 MB / 0.9554 GB, free: 3.371 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.289e-05/0.8473, allocations: 16.45 kB / 0.9555 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.999e-05/0.8474, allocations: 16.09 kB / 0.9555 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of SimCode: time 2.8e-07/0.8474, allocations: 0 / 0.9555 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of Templates: time 0.003762/0.8512, allocations: 0.863 MB / 0.9563 GB, free: 2.918 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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