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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001719/0.001719, allocations: 106.8 kB / 16.37 MB, free: 6.422 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.001641/0.001641, allocations: 195.8 kB / 17.31 MB, free: 5.801 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.443/1.443, allocations: 222.9 MB / 241 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.539/2.539, allocations: 442.6 MB / 0.7165 GB, free: 14.72 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002415/0.002415, allocations: 67.78 kB / 0.8774 GB, free: 10.99 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3846/0.3871, allocations: 153 MB / 1.027 GB, free: 2.066 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002096/0.3892, allocations: 0.7553 MB / 1.027 GB, free: 1.316 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001261/0.3905, allocations: 1.077 MB / 1.029 GB, free: 228 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.245e-05/0.3906, allocations: 3.938 kB / 1.029 GB, free: 224 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.721e-05/0.3906, allocations: 7.922 kB / 1.029 GB, free: 216 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 6.939e-05/0.3907, allocations: 15.86 kB / 1.029 GB, free: 200 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003009/0.391, allocations: 43.89 kB / 1.029 GB, free: 156 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001294/0.3911, allocations: 79.7 kB / 1.029 GB, free: 76 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001195/0.3913, allocations: 16.19 kB / 1.029 GB, free: 56 kB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 7.386e-05/0.3913, allocations: 27.92 kB / 1.029 GB, free: 28 kB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 8.043e-05/0.3914, allocations: 35.88 kB / 1.029 GB, free: 15.99 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.919e-05/0.3915, allocations: 8 kB / 1.029 GB, free: 15.98 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.194e-05/0.3915, allocations: 19.94 kB / 1.029 GB, free: 15.96 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.691e-05/0.3916, allocations: 15.92 kB / 1.029 GB, free: 15.95 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.165e-05/0.3916, allocations: 27.86 kB / 1.029 GB, free: 15.92 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001691/0.3918, allocations: 83.73 kB / 1.029 GB, free: 15.84 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.504e-06/0.3918, allocations: 0 / 1.029 GB, free: 15.84 MB / 0.8106 GB Notification: Performance of FrontEnd: time 5.601e-06/0.3918, allocations: 0 / 1.029 GB, free: 15.84 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.542e-06/0.3918, allocations: 3.938 kB / 1.029 GB, free: 15.84 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.0005698/0.3924, allocations: 383.2 kB / 1.029 GB, free: 15.41 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.535e-05/0.3925, allocations: 8.031 kB / 1.029 GB, free: 15.41 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.162e-05/0.3925, allocations: 8.844 kB / 1.029 GB, free: 15.4 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001135/0.3926, allocations: 168.3 kB / 1.029 GB, free: 15.2 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.721e-05/0.3927, allocations: 12.36 kB / 1.029 GB, free: 15.18 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.805e-05/0.3927, allocations: 4.375 kB / 1.029 GB, free: 15.18 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002044/0.3929, allocations: 66.22 kB / 1.03 GB, free: 15.11 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.3929, allocations: 11.88 kB / 1.03 GB, free: 15.1 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.225e-05/0.3929, allocations: 4 kB / 1.03 GB, free: 15.09 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.3929, allocations: 0 / 1.03 GB, free: 15.09 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001927/0.3931, allocations: 39.95 kB / 1.03 GB, free: 15.05 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006864/0.3938, allocations: 320.7 kB / 1.03 GB, free: 14.69 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001891/0.394, allocations: 66.58 kB / 1.03 GB, free: 14.62 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.968e-05/0.3941, allocations: 28.91 kB / 1.03 GB, free: 14.59 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.912e-05/0.3942, allocations: 3.938 kB / 1.03 GB, free: 14.58 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002823/0.3945, allocations: 79.38 kB / 1.03 GB, free: 14.49 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.894e-06/0.3945, allocations: 0 / 1.03 GB, free: 14.49 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004704/0.395, allocations: 141.5 kB / 1.03 GB, free: 14.35 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.181e-05/0.395, allocations: 51.41 kB / 1.03 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001004/0.3951, allocations: 121.8 kB / 1.03 GB, free: 14.16 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.023e-05/0.3952, allocations: 29.7 kB / 1.03 GB, free: 14.12 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.777e-05/0.3952, allocations: 92.05 kB / 1.03 GB, free: 14.03 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.148e-05/0.3953, allocations: 19.75 kB / 1.031 GB, free: 14.01 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.879e-05/0.3953, allocations: 29.7 kB / 1.031 GB, free: 13.97 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001201/0.3954, allocations: 322.8 kB / 1.031 GB, free: 13.65 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001055/0.3955, allocations: 31.97 kB / 1.031 GB, free: 13.62 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001317/0.3957, allocations: 73.98 kB / 1.031 GB, free: 13.52 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002163/0.3959, allocations: 109.9 kB / 1.031 GB, free: 13.39 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.3959, allocations: 0 / 1.031 GB, free: 13.39 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002916/0.3962, allocations: 129.4 kB / 1.031 GB, free: 13.26 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.3962, allocations: 8 kB / 1.031 GB, free: 13.25 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.3963, allocations: 0 / 1.031 GB, free: 13.25 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.649e-05/0.3963, allocations: 4 kB / 1.031 GB, free: 13.25 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001349/0.3964, allocations: 24.14 kB / 1.031 GB, free: 13.23 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.223e-06/0.3964, allocations: 0 / 1.031 GB, free: 13.23 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.37e-05/0.3965, allocations: 15.98 kB / 1.031 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.684e-05/0.3965, allocations: 4 kB / 1.031 GB, free: 13.21 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 0.0001133/0.3967, allocations: 123.6 kB / 1.031 GB, free: 13.08 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.59e-05/0.3967, allocations: 7.906 kB / 1.031 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.512e-05/0.3967, allocations: 16.3 kB / 1.031 GB, free: 13.05 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.3967, allocations: 0 / 1.031 GB, free: 13.05 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.3967, allocations: 8 kB / 1.031 GB, free: 13.05 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.3968, allocations: 0 / 1.031 GB, free: 13.05 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004809/0.3972, allocations: 370.4 kB / 1.032 GB, free: 12.63 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.3973, allocations: 0 / 1.032 GB, free: 12.63 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.199e-05/0.3973, allocations: 8 kB / 1.032 GB, free: 12.62 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.419e-06/0.3973, allocations: 0 / 1.032 GB, free: 12.62 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.218e-05/0.3973, allocations: 11.92 kB / 1.032 GB, free: 12.61 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/0.3974, allocations: 3.938 kB / 1.032 GB, free: 12.61 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.3974, allocations: 4 kB / 1.032 GB, free: 12.6 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002775/0.3976, allocations: 199.8 kB / 1.032 GB, free: 12.39 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.611e-05/0.3977, allocations: 84.95 kB / 1.032 GB, free: 12.29 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.971e-05/0.3977, allocations: 7.984 kB / 1.032 GB, free: 12.28 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.988e-05/0.3978, allocations: 3.938 kB / 1.032 GB, free: 12.28 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.765e-05/0.3979, allocations: 11.98 kB / 1.032 GB, free: 12.27 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.968e-06/0.3979, allocations: 8 kB / 1.032 GB, free: 12.26 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.628e-05/0.3979, allocations: 95.86 kB / 1.032 GB, free: 12.16 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3979, allocations: 0 / 1.032 GB, free: 12.16 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002518/0.3982, allocations: 12 kB / 1.032 GB, free: 12.15 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.0001583/0.3984, allocations: 111.2 kB / 1.032 GB, free: 12.04 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002736/0.3986, allocations: 87.94 kB / 1.032 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3987, allocations: 0 / 1.032 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001291/0.3988, allocations: 36.03 kB / 1.032 GB, free: 11.91 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002979/0.3991, allocations: 12.33 kB / 1.032 GB, free: 11.9 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003798/0.3995, allocations: 162.1 kB / 1.033 GB, free: 11.71 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000234/0.3997, allocations: 0.6927 MB / 1.033 GB, free: 10.99 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.1e-05/0.3998, allocations: 4 kB / 1.033 GB, free: 10.99 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.178e-05/0.3998, allocations: 15.42 kB / 1.033 GB, free: 10.98 MB / 0.8106 GB Notification: Performance of SimCode: time 4.3e-07/0.3998, allocations: 4 kB / 1.033 GB, free: 10.97 MB / 0.8106 GB Notification: Performance of Templates: time 0.003724/0.4035, allocations: 0.953 MB / 1.034 GB, free: 10.03 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 -s gbode -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/jenkins1/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