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.001139/0.001139, 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.001202/0.001202, allocations: 187.8 kB / 16.25 MB, free: 6.645 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.446/1.446, allocations: 222.9 MB / 239.9 MB, free: 4.527 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.547/2.547, allocations: 390.2 MB / 0.6643 GB, free: 0.5781 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001392/0.001392, allocations: 63.91 kB / 0.8121 GB, free: 14.75 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7637/0.7651, allocations: 140.4 MB / 0.9491 GB, free: 9.176 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.001883/0.767, allocations: 0.812 MB / 0.9499 GB, free: 8.551 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001009/0.768, allocations: 1.067 MB / 0.951 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.354e-05/0.7681, allocations: 0 / 0.951 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.514e-05/0.7681, allocations: 0 / 0.951 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.493e-05/0.7682, allocations: 13.23 kB / 0.951 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002623/0.7685, allocations: 45.7 kB / 0.951 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.309e-05/0.7686, allocations: 76.59 kB / 0.9511 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.549e-05/0.7687, allocations: 20.41 kB / 0.9511 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.117e-05/0.7687, allocations: 26.92 kB / 0.9511 GB, free: 7.57 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.914e-05/0.7688, allocations: 41.45 kB / 0.9512 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.52e-05/0.7688, allocations: 5.5 kB / 0.9512 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.696e-05/0.7689, allocations: 16.36 kB / 0.9512 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.676e-05/0.7689, allocations: 14.69 kB / 0.9512 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.302e-05/0.7689, allocations: 28.11 kB / 0.9512 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001122/0.769, allocations: 77.62 kB / 0.9513 GB, free: 7.445 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.7691, allocations: 7.984 kB / 0.9513 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.763e-06/0.7691, allocations: 0 / 0.9513 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.569e-06/0.7691, allocations: 0 / 0.9513 GB, free: 7.438 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.0004355/0.7695, allocations: 376.7 kB / 0.9517 GB, free: 7.051 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.288e-05/0.7695, allocations: 9.625 kB / 0.9517 GB, free: 7.051 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.763e-05/0.7696, allocations: 7.594 kB / 0.9517 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.652e-05/0.7697, allocations: 188.2 kB / 0.9519 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.253e-05/0.7697, allocations: 3.125 kB / 0.9519 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.377e-05/0.7697, allocations: 7.875 kB / 0.9519 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001804/0.7699, allocations: 65.42 kB / 0.9519 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.7699, allocations: 3.938 kB / 0.9519 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.06e-05/0.7699, allocations: 1.344 kB / 0.9519 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.7699, allocations: 1.562 kB / 0.9519 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001696/0.7701, allocations: 51.2 kB / 0.952 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005632/0.7707, allocations: 325.6 kB / 0.9523 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001494/0.7708, allocations: 55.89 kB / 0.9524 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.187e-05/0.7709, allocations: 35.59 kB / 0.9524 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.114e-05/0.771, allocations: 5.312 kB / 0.9524 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001904/0.7712, allocations: 81.58 kB / 0.9525 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.573e-06/0.7712, allocations: 0 / 0.9525 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003815/0.7716, allocations: 131.9 kB / 0.9526 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.674e-05/0.7716, allocations: 54.44 kB / 0.9527 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.257e-05/0.7717, allocations: 128.2 kB / 0.9528 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.325e-05/0.7717, allocations: 31.08 kB / 0.9528 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.22e-05/0.7717, allocations: 90.61 kB / 0.9529 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.553e-05/0.7717, allocations: 15.08 kB / 0.9529 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.79e-05/0.7718, allocations: 26.97 kB / 0.9529 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.636e-05/0.7719, allocations: 320 kB / 0.9532 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001165/0.772, allocations: 32.22 kB / 0.9533 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001159/0.7721, allocations: 74.55 kB / 0.9533 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002029/0.7723, allocations: 106.9 kB / 0.9534 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.7723, allocations: 5.312 kB / 0.9534 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002847/0.7726, allocations: 132.7 kB / 0.9536 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.7726, allocations: 6.844 kB / 0.9536 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.7726, allocations: 1.469 kB / 0.9536 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.354e-05/0.7727, allocations: 1.625 kB / 0.9536 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001279/0.7728, allocations: 19.95 kB / 0.9536 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.829e-06/0.7728, allocations: 7 kB / 0.9536 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.444e-05/0.7729, allocations: 16.7 kB / 0.9536 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.321e-05/0.7729, allocations: 5.281 kB / 0.9536 GB, free: 5.234 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.195e-05/0.773, allocations: 125.3 kB / 0.9537 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.498e-05/0.773, allocations: 15.08 kB / 0.9538 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.502e-05/0.773, allocations: 5.531 kB / 0.9538 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.773, allocations: 5.031 kB / 0.9538 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.7731, allocations: 0 / 0.9538 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.7731, allocations: 0.9375 kB / 0.9538 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003682/0.7734, allocations: 377 kB / 0.9541 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.7734, allocations: 0 / 0.9541 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.283e-05/0.7735, allocations: 13.36 kB / 0.9541 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.7735, allocations: 1.25 kB / 0.9541 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.039e-05/0.7735, allocations: 5.484 kB / 0.9542 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.7735, allocations: 3.938 kB / 0.9542 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.7735, allocations: 0 / 0.9542 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002389/0.7738, allocations: 209 kB / 0.9544 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.935e-05/0.7738, allocations: 83.33 kB / 0.9544 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.693e-05/0.7738, allocations: 5.219 kB / 0.9544 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.505e-05/0.7739, allocations: 11.55 kB / 0.9545 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.382e-05/0.774, allocations: 6.281 kB / 0.9545 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.093e-06/0.774, allocations: 2.5 kB / 0.9545 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.021e-05/0.774, allocations: 92.39 kB / 0.9545 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.774, allocations: 0 / 0.9545 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002628/0.7743, allocations: 20.62 kB / 0.9546 GB, free: 4.328 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.0001512/0.7745, allocations: 105.2 kB / 0.9547 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002899/0.7748, allocations: 76.64 kB / 0.9547 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.7748, allocations: 0 / 0.9547 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001102/0.7749, allocations: 36.78 kB / 0.9548 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002975/0.7752, allocations: 13.2 kB / 0.9548 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003543/0.7755, allocations: 176.4 kB / 0.955 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001238/0.7757, allocations: 0.6927 MB / 0.9556 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.028e-05/0.7757, allocations: 12.58 kB / 0.9556 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.744e-05/0.7758, allocations: 10.78 kB / 0.9557 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.7758, allocations: 0 / 0.9557 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of Templates: time 0.003323/0.7791, allocations: 0.9077 MB / 0.9565 GB, free: 2.836 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