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.001675/0.001675, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002243/0.002243, allocations: 191.2 kB / 16.25 MB, free: 6.621 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.509/1.509, allocations: 222.9 MB / 239.9 MB, free: 4.477 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.448/2.448, allocations: 390.2 MB / 0.6644 GB, free: 0.4922 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001382/0.001382, allocations: 67.91 kB / 0.8121 GB, free: 14.71 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8022/0.8036, allocations: 140.4 MB / 0.9491 GB, free: 9.078 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.002253/0.8059, allocations: 0.8165 MB / 0.9499 GB, free: 8.449 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001308/0.8072, allocations: 1.066 MB / 0.951 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.599e-05/0.8073, allocations: 1.344 kB / 0.951 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.299e-05/0.8074, allocations: 11.88 kB / 0.951 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.979e-05/0.8075, allocations: 13.48 kB / 0.951 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003222/0.8078, allocations: 41 kB / 0.951 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001065/0.8079, allocations: 68.84 kB / 0.9511 GB, free: 7.5 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001325/0.808, allocations: 20.41 kB / 0.9511 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.369e-05/0.8081, allocations: 30.72 kB / 0.9511 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.54e-05/0.8082, allocations: 33.44 kB / 0.9512 GB, free: 7.441 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.935e-05/0.8082, allocations: 5.5 kB / 0.9512 GB, free: 7.441 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.262e-05/0.8083, allocations: 24.36 kB / 0.9512 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.258e-05/0.8083, allocations: 18.66 kB / 0.9512 GB, free: 7.414 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.471e-05/0.8084, allocations: 28.12 kB / 0.9512 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001419/0.8085, allocations: 81.61 kB / 0.9513 GB, free: 7.332 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.8085, allocations: 0 / 0.9513 GB, free: 7.332 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.727e-06/0.8086, allocations: 0 / 0.9513 GB, free: 7.332 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.805e-06/0.8086, allocations: 3.938 kB / 0.9513 GB, free: 7.328 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.0005352/0.8091, allocations: 372.7 kB / 0.9517 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.557e-05/0.8092, allocations: 8.25 kB / 0.9517 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.894e-05/0.8092, allocations: 16.97 kB / 0.9517 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001022/0.8093, allocations: 176.3 kB / 0.9519 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.524e-05/0.8093, allocations: 5.75 kB / 0.9519 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.544e-05/0.8094, allocations: 4.5 kB / 0.9519 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001902/0.8096, allocations: 65.47 kB / 0.9519 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.758e-06/0.8096, allocations: 13.19 kB / 0.952 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.153e-05/0.8096, allocations: 0 / 0.952 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-06/0.8096, allocations: 1.375 kB / 0.952 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000164/0.8098, allocations: 52.64 kB / 0.952 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006076/0.8104, allocations: 320.3 kB / 0.9523 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001597/0.8106, allocations: 56.95 kB / 0.9524 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.142e-05/0.8107, allocations: 38.81 kB / 0.9524 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.763e-05/0.8107, allocations: 5.016 kB / 0.9524 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002279/0.8109, allocations: 74.88 kB / 0.9525 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.322e-06/0.8109, allocations: 0 / 0.9525 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004049/0.8114, allocations: 135.2 kB / 0.9526 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.021e-05/0.8114, allocations: 54.22 kB / 0.9527 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.135e-05/0.8115, allocations: 124.4 kB / 0.9528 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.387e-05/0.8115, allocations: 27.11 kB / 0.9528 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.72e-05/0.8115, allocations: 98.59 kB / 0.9529 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.594e-05/0.8115, allocations: 10.3 kB / 0.9529 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.442e-05/0.8116, allocations: 31.42 kB / 0.9529 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.263e-05/0.8117, allocations: 324.1 kB / 0.9532 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.803e-05/0.8118, allocations: 28.78 kB / 0.9533 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001107/0.8119, allocations: 69.95 kB / 0.9533 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001921/0.8121, allocations: 110.4 kB / 0.9534 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.8121, allocations: 1.719 kB / 0.9534 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002738/0.8124, allocations: 132.8 kB / 0.9536 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.742e-05/0.8124, allocations: 6.062 kB / 0.9536 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.082e-06/0.8124, allocations: 1.312 kB / 0.9536 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.984e-05/0.8124, allocations: 2.5 kB / 0.9536 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001243/0.8126, allocations: 28.84 kB / 0.9536 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.835e-06/0.8126, allocations: 1.531 kB / 0.9536 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.891e-05/0.8127, allocations: 22.16 kB / 0.9536 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.449e-05/0.8127, allocations: 7.859 kB / 0.9536 GB, free: 5.121 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.83e-05/0.8127, allocations: 120.1 kB / 0.9538 GB, free: 5 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.305e-05/0.8128, allocations: 6.438 kB / 0.9538 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.828e-05/0.8128, allocations: 9.812 kB / 0.9538 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.8128, allocations: 1.219 kB / 0.9538 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.8128, allocations: 0 / 0.9538 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.8128, allocations: 3.984 kB / 0.9538 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003591/0.8132, allocations: 374 kB / 0.9541 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.8132, allocations: 0 / 0.9541 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.963e-05/0.8133, allocations: 10.3 kB / 0.9541 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.013e-06/0.8133, allocations: 0 / 0.9541 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.879e-06/0.8133, allocations: 1.375 kB / 0.9541 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.8133, allocations: 11.88 kB / 0.9542 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.8133, allocations: 0 / 0.9542 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002365/0.8135, allocations: 209.7 kB / 0.9544 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.336e-05/0.8136, allocations: 87.23 kB / 0.9544 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.71e-05/0.8136, allocations: 5.281 kB / 0.9544 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.808e-05/0.8137, allocations: 11.45 kB / 0.9545 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.86e-05/0.8137, allocations: 2.875 kB / 0.9545 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.923e-06/0.8137, allocations: 5.344 kB / 0.9545 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.621e-05/0.8138, allocations: 92.95 kB / 0.9546 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.8138, allocations: 0 / 0.9546 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002452/0.814, allocations: 17.81 kB / 0.9546 GB, free: 4.227 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.0001712/0.8142, allocations: 105.1 kB / 0.9547 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003047/0.8145, allocations: 89.66 kB / 0.9548 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.8145, allocations: 0 / 0.9548 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001106/0.8146, allocations: 29.17 kB / 0.9548 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002712/0.8149, allocations: 13.14 kB / 0.9548 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003746/0.8153, allocations: 186.5 kB / 0.955 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001516/0.8155, allocations: 0.6975 MB / 0.9557 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.849e-05/0.8155, allocations: 7.594 kB / 0.9557 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.999e-05/0.8155, allocations: 12 kB / 0.9557 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of SimCode: time 3.5e-07/0.8155, allocations: 0 / 0.9557 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of Templates: time 0.003438/0.819, allocations: 0.912 MB / 0.9566 GB, free: 2.75 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