Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.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.SampleTriggerNegativeStartTime,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.SampleTriggerNegativeStartTime") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime,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.SampleTriggerNegativeStartTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001143/0.001143, 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.001227/0.001227, allocations: 198.2 kB / 16.14 MB, free: 6.652 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.419/1.419, allocations: 222.9 MB / 239.8 MB, free: 4.594 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.488/2.488, allocations: 390.2 MB / 0.6642 GB, free: 0.6055 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 63.91 kB / 0.8119 GB, free: 14.86 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8053/0.8065, allocations: 140.4 MB / 0.9489 GB, free: 9.129 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.001933/0.8085, allocations: 0.8224 MB / 0.9498 GB, free: 8.492 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001171/0.8097, allocations: 1.067 MB / 0.9508 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.08e-05/0.8097, allocations: 1.188 kB / 0.9508 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.769e-05/0.8098, allocations: 3.984 kB / 0.9508 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.299e-05/0.8099, allocations: 13.11 kB / 0.9508 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002364/0.8101, allocations: 41.28 kB / 0.9508 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.065e-05/0.8102, allocations: 75.7 kB / 0.9509 GB, free: 7.543 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001046/0.8103, allocations: 11.78 kB / 0.9509 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.178e-05/0.8104, allocations: 25.95 kB / 0.951 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.454e-05/0.8105, allocations: 34.14 kB / 0.951 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.858e-05/0.8105, allocations: 3.469 kB / 0.951 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.035e-05/0.8106, allocations: 18.02 kB / 0.951 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.227e-05/0.8106, allocations: 14.36 kB / 0.951 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.359e-05/0.8106, allocations: 31.95 kB / 0.9511 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001305/0.8108, allocations: 73.75 kB / 0.9511 GB, free: 7.398 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.8108, allocations: 0 / 0.9511 GB, free: 7.398 MB / 0.7169 GB Notification: Performance of FrontEnd: time 9.41e-07/0.8108, allocations: 0 / 0.9511 GB, free: 7.398 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.26e-06/0.8108, allocations: 0 / 0.9511 GB, free: 7.398 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.0004644/0.8113, allocations: 379.8 kB / 0.9515 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.8113, allocations: 9.25 kB / 0.9515 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.914e-05/0.8114, allocations: 9.062 kB / 0.9515 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.962e-05/0.8114, allocations: 174.9 kB / 0.9517 GB, free: 6.797 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.243e-05/0.8115, allocations: 11.23 kB / 0.9517 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.835e-05/0.8115, allocations: 8.094 kB / 0.9517 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001885/0.8117, allocations: 69.66 kB / 0.9518 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.8117, allocations: 3.938 kB / 0.9518 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.187e-05/0.8117, allocations: 1.406 kB / 0.9518 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.718e-06/0.8117, allocations: 1.406 kB / 0.9518 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001733/0.8119, allocations: 47.64 kB / 0.9518 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005786/0.8125, allocations: 329.2 kB / 0.9521 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001665/0.8127, allocations: 52.11 kB / 0.9522 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.856e-05/0.8128, allocations: 39.27 kB / 0.9522 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.494e-05/0.8128, allocations: 5.406 kB / 0.9522 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001954/0.813, allocations: 78.09 kB / 0.9523 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.473e-06/0.813, allocations: 0 / 0.9523 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004135/0.8134, allocations: 128.7 kB / 0.9524 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.613e-05/0.8135, allocations: 60.47 kB / 0.9525 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.905e-05/0.8136, allocations: 117.3 kB / 0.9526 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.404e-05/0.8136, allocations: 30.77 kB / 0.9526 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.019e-05/0.8136, allocations: 94.25 kB / 0.9527 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.664e-05/0.8137, allocations: 11.09 kB / 0.9527 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.622e-05/0.8137, allocations: 30.61 kB / 0.9527 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.371e-05/0.8138, allocations: 324.9 kB / 0.953 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001094/0.8139, allocations: 28.3 kB / 0.9531 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001212/0.814, allocations: 70.48 kB / 0.9531 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000212/0.8142, allocations: 107.3 kB / 0.9532 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.8142, allocations: 0 / 0.9532 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002975/0.8145, allocations: 137.4 kB / 0.9534 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.8146, allocations: 10.52 kB / 0.9534 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.8146, allocations: 1.562 kB / 0.9534 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.581e-05/0.8146, allocations: 2.531 kB / 0.9534 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001345/0.8147, allocations: 16.45 kB / 0.9534 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.328e-06/0.8148, allocations: 5.406 kB / 0.9534 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.211e-05/0.8149, allocations: 18.05 kB / 0.9534 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.463e-05/0.8149, allocations: 8.469 kB / 0.9534 GB, free: 5.199 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 6.92e-05/0.8149, allocations: 124.9 kB / 0.9536 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.463e-05/0.815, allocations: 6.688 kB / 0.9536 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.655e-05/0.815, allocations: 9.688 kB / 0.9536 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.506e-06/0.815, allocations: 1.625 kB / 0.9536 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.815, allocations: 3.938 kB / 0.9536 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.815, allocations: 5.391 kB / 0.9536 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000399/0.8154, allocations: 371.8 kB / 0.9539 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.8154, allocations: 5.344 kB / 0.9539 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.408e-05/0.8155, allocations: 8.953 kB / 0.954 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.8155, allocations: 1.25 kB / 0.954 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.917e-06/0.8155, allocations: 4 kB / 0.954 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.8155, allocations: 5.062 kB / 0.954 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.8155, allocations: 0 / 0.954 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002517/0.8158, allocations: 204.8 kB / 0.9542 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.111e-05/0.8158, allocations: 83.64 kB / 0.9542 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.686e-05/0.8158, allocations: 1.062 kB / 0.9542 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.187e-05/0.8159, allocations: 15.23 kB / 0.9543 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.722e-05/0.816, allocations: 11.28 kB / 0.9543 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.034e-06/0.816, allocations: 1.594 kB / 0.9543 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.14e-05/0.816, allocations: 97.14 kB / 0.9544 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.816, allocations: 4 kB / 0.9544 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002529/0.8163, allocations: 17.31 kB / 0.9544 GB, free: 4.293 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.0001503/0.8164, allocations: 101.3 kB / 0.9545 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002784/0.8167, allocations: 80.45 kB / 0.9545 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.8167, allocations: 448 / 0.9546 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001118/0.8169, allocations: 40.89 kB / 0.9546 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002693/0.8171, allocations: 9.984 kB / 0.9546 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003616/0.8175, allocations: 180.7 kB / 0.9548 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001381/0.8177, allocations: 0.6951 MB / 0.9554 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.776e-05/0.8177, allocations: 8.219 kB / 0.9555 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.245e-05/0.8177, allocations: 10.66 kB / 0.9555 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of SimCode: time 4.31e-07/0.8177, allocations: 1.562 kB / 0.9555 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of Templates: time 0.003488/0.8212, allocations: 0.8805 MB / 0.9563 GB, free: 2.84 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.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