Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.001225/0.001225, 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.00141/0.001411, allocations: 194.1 kB / 16.14 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.484/1.484, allocations: 222.9 MB / 239.8 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.982/2.982, allocations: 461.9 MB / 0.7342 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001396/0.001396, allocations: 66.58 kB / 0.8984 GB, free: 37.21 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.355/0.3564, allocations: 157.4 MB / 1.052 GB, free: 8.746 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002212/0.3587, allocations: 0.8085 MB / 1.053 GB, free: 7.938 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001344/0.36, allocations: 1.084 MB / 1.054 GB, free: 6.84 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.874e-05/0.3601, allocations: 4 kB / 1.054 GB, free: 6.836 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.916e-05/0.3602, allocations: 3.938 kB / 1.054 GB, free: 6.832 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.301e-05/0.3602, allocations: 11.91 kB / 1.054 GB, free: 6.82 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002295/0.3605, allocations: 39.91 kB / 1.054 GB, free: 6.781 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.491e-05/0.3606, allocations: 63.84 kB / 1.054 GB, free: 6.719 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.511e-05/0.3607, allocations: 20.17 kB / 1.054 GB, free: 6.695 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.224e-05/0.3607, allocations: 31.86 kB / 1.054 GB, free: 6.664 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.172e-05/0.3608, allocations: 31.89 kB / 1.054 GB, free: 6.633 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.633e-05/0.3608, allocations: 4 kB / 1.054 GB, free: 6.629 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.473e-05/0.3609, allocations: 15.98 kB / 1.054 GB, free: 6.613 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.049e-05/0.3609, allocations: 11.92 kB / 1.054 GB, free: 6.602 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.142e-05/0.361, allocations: 23.88 kB / 1.054 GB, free: 6.578 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001426/0.3611, allocations: 83.73 kB / 1.054 GB, free: 6.496 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.347e-06/0.3611, allocations: 0 / 1.054 GB, free: 6.496 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.21e-07/0.3611, allocations: 0 / 1.054 GB, free: 6.496 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.338e-06/0.3611, allocations: 0 / 1.054 GB, free: 6.496 MB / 0.8106 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.0005857/0.3617, allocations: 387.3 kB / 1.055 GB, free: 6.07 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.51e-05/0.3618, allocations: 12.03 kB / 1.055 GB, free: 6.059 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.707e-05/0.3618, allocations: 8.844 kB / 1.055 GB, free: 6.051 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001469/0.362, allocations: 180.2 kB / 1.055 GB, free: 5.836 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.657e-05/0.362, allocations: 4.375 kB / 1.055 GB, free: 5.832 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.497e-05/0.362, allocations: 4.375 kB / 1.055 GB, free: 5.828 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002104/0.3623, allocations: 66.22 kB / 1.055 GB, free: 5.758 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.3623, allocations: 3.938 kB / 1.055 GB, free: 5.754 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.035e-05/0.3623, allocations: 7.938 kB / 1.055 GB, free: 5.746 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.035e-05/0.3623, allocations: 4 kB / 1.055 GB, free: 5.742 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001912/0.3625, allocations: 43.95 kB / 1.055 GB, free: 5.699 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006401/0.3632, allocations: 320.7 kB / 1.055 GB, free: 5.336 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001722/0.3633, allocations: 58.58 kB / 1.055 GB, free: 5.27 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001098/0.3635, allocations: 32.97 kB / 1.055 GB, free: 5.234 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.542e-05/0.3635, allocations: 3.984 kB / 1.055 GB, free: 5.23 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002266/0.3637, allocations: 71.39 kB / 1.055 GB, free: 5.148 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.453e-06/0.3637, allocations: 4 kB / 1.055 GB, free: 5.145 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004345/0.3642, allocations: 133.5 kB / 1.056 GB, free: 5.008 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.822e-05/0.3642, allocations: 55.41 kB / 1.056 GB, free: 4.941 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.416e-05/0.3643, allocations: 121.8 kB / 1.056 GB, free: 4.812 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.289e-05/0.3644, allocations: 25.7 kB / 1.056 GB, free: 4.781 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.975e-05/0.3644, allocations: 100 kB / 1.056 GB, free: 4.68 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.668e-05/0.3645, allocations: 15.75 kB / 1.056 GB, free: 4.664 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.187e-05/0.3646, allocations: 33.7 kB / 1.056 GB, free: 4.625 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001312/0.3647, allocations: 318.8 kB / 1.056 GB, free: 4.305 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000161/0.3649, allocations: 27.97 kB / 1.056 GB, free: 4.277 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001398/0.365, allocations: 74.42 kB / 1.056 GB, free: 4.184 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002446/0.3653, allocations: 113.8 kB / 1.056 GB, free: 4.051 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.3653, allocations: 7.938 kB / 1.056 GB, free: 4.043 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003175/0.3656, allocations: 129.4 kB / 1.057 GB, free: 3.91 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.3657, allocations: 5.094 kB / 1.057 GB, free: 3.906 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.583e-06/0.3657, allocations: 4.219 kB / 1.057 GB, free: 3.902 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.26e-05/0.3657, allocations: 4 kB / 1.057 GB, free: 3.898 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001366/0.3658, allocations: 23.91 kB / 1.057 GB, free: 3.875 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.3658, allocations: 4 kB / 1.057 GB, free: 3.871 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.682e-05/0.3659, allocations: 8 kB / 1.057 GB, free: 3.863 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.108e-05/0.366, allocations: 11.92 kB / 1.057 GB, free: 3.852 MB / 0.8106 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 8.382e-05/0.3661, allocations: 123.3 kB / 1.057 GB, free: 3.723 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.394e-05/0.3661, allocations: 3.906 kB / 1.057 GB, free: 3.719 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.787e-05/0.3661, allocations: 12.38 kB / 1.057 GB, free: 3.707 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.3661, allocations: 4 kB / 1.057 GB, free: 3.703 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.3661, allocations: 0 / 1.057 GB, free: 3.703 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.3661, allocations: 0 / 1.057 GB, free: 3.703 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004952/0.3666, allocations: 374.4 kB / 1.057 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.3666, allocations: 0 / 1.057 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.91e-05/0.3667, allocations: 7.984 kB / 1.057 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.486e-06/0.3667, allocations: 8 kB / 1.057 GB, free: 3.266 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.516e-06/0.3667, allocations: 0 / 1.057 GB, free: 3.266 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.138e-06/0.3667, allocations: 3.938 kB / 1.057 GB, free: 3.262 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3667, allocations: 3.938 kB / 1.057 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002951/0.367, allocations: 199.8 kB / 1.057 GB, free: 3.047 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.093e-05/0.3671, allocations: 92.95 kB / 1.057 GB, free: 2.938 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.57e-05/0.3671, allocations: 0 / 1.057 GB, free: 2.938 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.189e-05/0.3672, allocations: 15.92 kB / 1.057 GB, free: 2.922 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.95e-05/0.3673, allocations: 4 kB / 1.057 GB, free: 2.918 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.424e-06/0.3673, allocations: 3.984 kB / 1.057 GB, free: 2.914 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.511e-05/0.3673, allocations: 95.44 kB / 1.058 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3673, allocations: 0 / 1.058 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002651/0.3676, allocations: 20 kB / 1.058 GB, free: 2.801 MB / 0.8106 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.0001579/0.3678, allocations: 107.2 kB / 1.058 GB, free: 2.688 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002815/0.3681, allocations: 87.75 kB / 1.058 GB, free: 2.602 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.3681, allocations: 0 / 1.058 GB, free: 2.602 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001168/0.3682, allocations: 35.98 kB / 1.058 GB, free: 2.566 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002719/0.3685, allocations: 14.05 kB / 1.058 GB, free: 2.555 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003282/0.3688, allocations: 164.4 kB / 1.058 GB, free: 2.363 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002222/0.369, allocations: 0.6887 MB / 1.059 GB, free: 1.648 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.63e-05/0.3691, allocations: 4 kB / 1.059 GB, free: 1.645 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.922e-05/0.3691, allocations: 11.44 kB / 1.059 GB, free: 1.633 MB / 0.8106 GB Notification: Performance of SimCode: time 2.8e-07/0.3691, allocations: 7.938 kB / 1.059 GB, free: 1.625 MB / 0.8106 GB Notification: Performance of Templates: time 0.003556/0.3727, allocations: 0.8736 MB / 1.059 GB, free: 0.7617 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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