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.01108/0.01108, allocations: 104.7 kB / 15.73 MB, free: 6.051 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.00182/0.00182, allocations: 191.6 kB / 16.68 MB, free: 5.965 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.449/1.449, allocations: 222.9 MB / 240.4 MB, free: 15.14 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.445/2.445, allocations: 390.2 MB / 0.6648 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 63.91 kB / 0.9509 GB, free: 7.621 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.033/1.035, allocations: 140.4 MB / 1.088 GB, free: 5.504 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.002214/1.037, allocations: 0.7522 MB / 1.089 GB, free: 5.023 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001697/1.039, allocations: 1.074 MB / 1.09 GB, free: 4.23 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.31e-05/1.039, allocations: 1.062 kB / 1.09 GB, free: 4.23 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.527e-05/1.039, allocations: 4.453 kB / 1.09 GB, free: 4.227 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001124/1.039, allocations: 16.11 kB / 1.09 GB, free: 4.215 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004249/1.039, allocations: 57.45 kB / 1.09 GB, free: 4.184 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001723/1.039, allocations: 69.72 kB / 1.09 GB, free: 4.152 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001506/1.04, allocations: 22.34 kB / 1.09 GB, free: 4.137 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.992e-05/1.04, allocations: 30.88 kB / 1.09 GB, free: 4.121 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.815e-05/1.04, allocations: 32.5 kB / 1.09 GB, free: 4.105 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.626e-05/1.04, allocations: 6.531 kB / 1.09 GB, free: 4.105 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.593e-05/1.04, allocations: 19.59 kB / 1.09 GB, free: 4.102 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.813e-05/1.04, allocations: 10.08 kB / 1.09 GB, free: 4.098 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.149e-05/1.04, allocations: 39.02 kB / 1.09 GB, free: 4.07 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002283/1.04, allocations: 79.58 kB / 1.09 GB, free: 4.039 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.082e-06/1.04, allocations: 4.797 kB / 1.09 GB, free: 4.035 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.234e-06/1.04, allocations: 0 / 1.09 GB, free: 4.035 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.873e-06/1.04, allocations: 1.125 kB / 1.09 GB, free: 4.035 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.0006714/1.041, allocations: 377 kB / 1.09 GB, free: 3.664 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.534e-05/1.041, allocations: 8.562 kB / 1.09 GB, free: 3.664 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.521e-05/1.041, allocations: 9.359 kB / 1.09 GB, free: 3.66 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001186/1.041, allocations: 173.1 kB / 1.091 GB, free: 3.457 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.335e-05/1.041, allocations: 3.469 kB / 1.091 GB, free: 3.457 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.267e-05/1.041, allocations: 8.531 kB / 1.091 GB, free: 3.453 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002216/1.042, allocations: 72.42 kB / 1.091 GB, free: 3.406 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/1.042, allocations: 3.938 kB / 1.091 GB, free: 3.402 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.18e-05/1.042, allocations: 1.062 kB / 1.091 GB, free: 3.402 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.084e-06/1.042, allocations: 1.891 kB / 1.091 GB, free: 3.402 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001909/1.042, allocations: 42.77 kB / 1.091 GB, free: 3.395 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006519/1.042, allocations: 332.7 kB / 1.091 GB, free: 3.09 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001726/1.043, allocations: 50.14 kB / 1.091 GB, free: 3.059 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001026/1.043, allocations: 36.77 kB / 1.091 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.061e-05/1.043, allocations: 2.328 kB / 1.091 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002229/1.043, allocations: 89.25 kB / 1.091 GB, free: 2.969 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.823e-06/1.043, allocations: 0 / 1.091 GB, free: 2.969 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004541/1.044, allocations: 123.2 kB / 1.091 GB, free: 2.918 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.396e-05/1.044, allocations: 61.92 kB / 1.091 GB, free: 2.848 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000101/1.044, allocations: 119.4 kB / 1.092 GB, free: 2.742 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.555e-05/1.044, allocations: 26.67 kB / 1.092 GB, free: 2.711 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.67e-05/1.044, allocations: 97.25 kB / 1.092 GB, free: 2.617 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.186e-05/1.044, allocations: 15.7 kB / 1.092 GB, free: 2.605 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.313e-05/1.044, allocations: 34.36 kB / 1.092 GB, free: 2.578 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.307e-05/1.044, allocations: 323.6 kB / 1.092 GB, free: 2.258 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001174/1.044, allocations: 25.88 kB / 1.092 GB, free: 2.254 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001261/1.044, allocations: 78.77 kB / 1.092 GB, free: 2.184 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002281/1.044, allocations: 107.1 kB / 1.092 GB, free: 2.105 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/1.044, allocations: 0 / 1.092 GB, free: 2.105 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003212/1.045, allocations: 131.1 kB / 1.092 GB, free: 2.043 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.26e-05/1.045, allocations: 13.56 kB / 1.092 GB, free: 2.035 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.253e-06/1.045, allocations: 2.688 kB / 1.092 GB, free: 2.035 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.001e-05/1.045, allocations: 2.344 kB / 1.092 GB, free: 2.035 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001351/1.045, allocations: 16.67 kB / 1.092 GB, free: 2.035 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.097e-05/1.045, allocations: 3.172 kB / 1.092 GB, free: 2.035 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.779e-05/1.045, allocations: 12.38 kB / 1.092 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.915e-05/1.045, allocations: 5.484 kB / 1.092 GB, free: 2.031 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.021e-05/1.045, allocations: 127.4 kB / 1.093 GB, free: 1.902 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.539e-05/1.045, allocations: 15.31 kB / 1.093 GB, free: 1.891 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.933e-05/1.045, allocations: 10.23 kB / 1.093 GB, free: 1.883 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/1.045, allocations: 2.297 kB / 1.093 GB, free: 1.883 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/1.045, allocations: 3.938 kB / 1.093 GB, free: 1.879 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/1.045, allocations: 1.484 kB / 1.093 GB, free: 1.879 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004434/1.046, allocations: 375.7 kB / 1.093 GB, free: 1.543 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/1.046, allocations: 0 / 1.093 GB, free: 1.543 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.536e-05/1.046, allocations: 12.14 kB / 1.093 GB, free: 1.539 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/1.046, allocations: 0.6875 kB / 1.093 GB, free: 1.539 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.098e-05/1.046, allocations: 1.375 kB / 1.093 GB, free: 1.539 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/1.046, allocations: 5.406 kB / 1.093 GB, free: 1.535 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.245e-06/1.046, allocations: 0.8438 kB / 1.093 GB, free: 1.535 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002663/1.046, allocations: 195.6 kB / 1.093 GB, free: 1.387 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.892e-05/1.046, allocations: 83.45 kB / 1.093 GB, free: 1.289 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.719e-05/1.046, allocations: 5.531 kB / 1.093 GB, free: 1.285 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.897e-05/1.046, allocations: 14.62 kB / 1.093 GB, free: 1.277 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.08e-05/1.046, allocations: 9.375 kB / 1.093 GB, free: 1.273 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.666e-06/1.046, allocations: 1.812 kB / 1.093 GB, free: 1.273 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.136e-05/1.046, allocations: 92.22 kB / 1.093 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/1.046, allocations: 0 / 1.093 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002684/1.047, allocations: 17.97 kB / 1.093 GB, free: 1.191 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.0001668/1.047, allocations: 111.9 kB / 1.093 GB, free: 1.098 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003183/1.047, allocations: 78.83 kB / 1.094 GB, free: 1.078 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/1.047, allocations: 0 / 1.094 GB, free: 1.078 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001227/1.047, allocations: 44.12 kB / 1.094 GB, free: 1.062 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002828/1.048, allocations: 15.02 kB / 1.094 GB, free: 1.059 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003667/1.048, allocations: 168.3 kB / 1.094 GB, free: 0.9102 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000124/1.048, allocations: 0.6899 MB / 1.094 GB, free: 220 kB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.597e-05/1.048, allocations: 4.969 kB / 1.094 GB, free: 220 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.82e-05/1.048, allocations: 12.7 kB / 1.094 GB, free: 212 kB / 0.8575 GB Notification: Performance of SimCode: time 3.2e-07/1.048, allocations: 0 / 1.094 GB, free: 212 kB / 0.8575 GB Notification: Performance of Templates: time 0.00384/1.052, allocations: 0.9731 MB / 1.095 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/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