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.001278/0.001278, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001682/0.001682, allocations: 190.9 kB / 16.25 MB, free: 6.586 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.445/1.445, allocations: 222.9 MB / 239.9 MB, free: 4.504 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.487/2.487, allocations: 390.2 MB / 0.6643 GB, free: 0.5586 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 63.91 kB / 0.8121 GB, free: 14.73 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8433/0.8447, allocations: 140.4 MB / 0.9491 GB, free: 9.09 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.00252/0.8473, allocations: 0.8075 MB / 0.9499 GB, free: 8.469 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001509/0.8489, allocations: 1.065 MB / 0.951 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.668e-05/0.849, allocations: 5.312 kB / 0.951 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.051e-05/0.849, allocations: 0 / 0.951 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.389e-05/0.8492, allocations: 9.312 kB / 0.951 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003625/0.8495, allocations: 49.64 kB / 0.951 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001114/0.8497, allocations: 68.66 kB / 0.9511 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000118/0.8498, allocations: 16.44 kB / 0.9511 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.013e-05/0.8499, allocations: 34.84 kB / 0.9511 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.319e-05/0.8499, allocations: 32.09 kB / 0.9512 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.779e-05/0.85, allocations: 10.81 kB / 0.9512 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.421e-05/0.8501, allocations: 24.36 kB / 0.9512 GB, free: 7.449 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.064e-05/0.8501, allocations: 14.67 kB / 0.9512 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.704e-05/0.8501, allocations: 38.7 kB / 0.9512 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001519/0.8503, allocations: 73.62 kB / 0.9513 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.8503, allocations: 1.375 kB / 0.9513 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.893e-06/0.8503, allocations: 0 / 0.9513 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.735e-06/0.8503, allocations: 0 / 0.9513 GB, free: 7.352 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.000504/0.8508, allocations: 379.8 kB / 0.9517 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.501e-05/0.8509, allocations: 9.188 kB / 0.9517 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.407e-05/0.8509, allocations: 12.78 kB / 0.9517 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.454e-05/0.851, allocations: 172.3 kB / 0.9519 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.469e-05/0.8511, allocations: 5.844 kB / 0.9519 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.753e-05/0.8511, allocations: 13.25 kB / 0.9519 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002015/0.8513, allocations: 65.53 kB / 0.9519 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.759e-06/0.8513, allocations: 3.938 kB / 0.952 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.268e-05/0.8513, allocations: 0 / 0.952 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.8513, allocations: 1.062 kB / 0.952 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001627/0.8515, allocations: 48.36 kB / 0.952 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006018/0.8521, allocations: 329 kB / 0.9523 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001506/0.8523, allocations: 48.97 kB / 0.9524 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.138e-05/0.8524, allocations: 42.58 kB / 0.9524 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.503e-05/0.8524, allocations: 1.031 kB / 0.9524 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002139/0.8526, allocations: 86.91 kB / 0.9525 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.513e-06/0.8526, allocations: 3.938 kB / 0.9525 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004215/0.8531, allocations: 128.6 kB / 0.9526 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.16e-05/0.8531, allocations: 56.75 kB / 0.9527 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.964e-05/0.8532, allocations: 121.4 kB / 0.9528 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.404e-05/0.8532, allocations: 25.7 kB / 0.9528 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.705e-05/0.8533, allocations: 91.73 kB / 0.9529 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.482e-05/0.8533, allocations: 10.38 kB / 0.9529 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.792e-05/0.8533, allocations: 31.14 kB / 0.9529 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.961e-05/0.8534, allocations: 324 kB / 0.9532 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001017/0.8535, allocations: 32.28 kB / 0.9533 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001097/0.8536, allocations: 77.81 kB / 0.9533 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001981/0.8538, allocations: 103.5 kB / 0.9534 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.8538, allocations: 5.781 kB / 0.9534 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002846/0.8541, allocations: 140.9 kB / 0.9536 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.8541, allocations: 4.812 kB / 0.9536 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.8542, allocations: 1.906 kB / 0.9536 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.633e-05/0.8542, allocations: 3.094 kB / 0.9536 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001272/0.8543, allocations: 16.33 kB / 0.9536 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.356e-06/0.8543, allocations: 2.5 kB / 0.9536 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.758e-05/0.8544, allocations: 20.67 kB / 0.9536 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.549e-05/0.8544, allocations: 8.625 kB / 0.9536 GB, free: 5.145 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.211e-05/0.8545, allocations: 125.4 kB / 0.9538 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.573e-05/0.8545, allocations: 6.219 kB / 0.9538 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.997e-05/0.8546, allocations: 14.92 kB / 0.9538 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.8546, allocations: 1.438 kB / 0.9538 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.8546, allocations: 0 / 0.9538 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.8546, allocations: 3.938 kB / 0.9538 GB, free: 5 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003779/0.855, allocations: 373.8 kB / 0.9541 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.855, allocations: 0 / 0.9541 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.85e-05/0.855, allocations: 5.625 kB / 0.9541 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.8551, allocations: 0 / 0.9541 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.868e-06/0.8551, allocations: 1.312 kB / 0.9541 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.487e-06/0.8551, allocations: 7.922 kB / 0.9542 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.8551, allocations: 1.125 kB / 0.9542 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002519/0.8553, allocations: 203.9 kB / 0.9544 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.528e-05/0.8554, allocations: 91.12 kB / 0.9544 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.743e-05/0.8554, allocations: 8.984 kB / 0.9544 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.942e-05/0.8555, allocations: 7.688 kB / 0.9545 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.859e-05/0.8555, allocations: 7.328 kB / 0.9545 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.755e-06/0.8555, allocations: 2.031 kB / 0.9545 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.693e-05/0.8556, allocations: 96.42 kB / 0.9546 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.8556, allocations: 0 / 0.9546 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002614/0.8559, allocations: 16.97 kB / 0.9546 GB, free: 4.246 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.0001459/0.856, allocations: 102.8 kB / 0.9547 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002708/0.8563, allocations: 76.72 kB / 0.9547 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.8563, allocations: 8.062 kB / 0.9547 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001073/0.8564, allocations: 36.53 kB / 0.9548 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002661/0.8567, allocations: 10.89 kB / 0.9548 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003621/0.8571, allocations: 175.7 kB / 0.955 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001208/0.8572, allocations: 0.6926 MB / 0.9556 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.9e-05/0.8572, allocations: 16.05 kB / 0.9557 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.152e-05/0.8573, allocations: 15.53 kB / 0.9557 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of SimCode: time 3.91e-07/0.8573, allocations: 0 / 0.9557 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of Templates: time 0.003473/0.8608, allocations: 0.9156 MB / 0.9566 GB, free: 2.777 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