Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001995/0.001995, 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.002391/0.002391, allocations: 190.4 kB / 16.25 MB, free: 6.648 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.75/1.75, 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 10.1.1-maint.10.0.x/package.mo): time 2.877/2.877, allocations: 437 MB / 0.7101 GB, free: 5.367 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001988/0.001988, allocations: 63.89 kB / 0.8688 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8393/0.8414, allocations: 151.6 MB / 1.017 GB, free: 2.754 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002419/0.8438, allocations: 0.8165 MB / 1.018 GB, free: 1.938 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001717/0.8456, allocations: 1.074 MB / 1.019 GB, free: 0.8477 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.77e-05/0.8456, allocations: 0 / 1.019 GB, free: 0.8477 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.384e-05/0.8457, allocations: 3.938 kB / 1.019 GB, free: 0.8438 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 8.254e-05/0.8458, allocations: 7.938 kB / 1.019 GB, free: 0.8359 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003594/0.8462, allocations: 43.95 kB / 1.019 GB, free: 0.793 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001177/0.8463, allocations: 67.78 kB / 1.019 GB, free: 0.7266 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001475/0.8464, allocations: 32.14 kB / 1.019 GB, free: 0.6914 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001284/0.8466, allocations: 31.86 kB / 1.019 GB, free: 0.6602 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 9.539e-05/0.8467, allocations: 27.91 kB / 1.019 GB, free: 0.6328 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.259e-05/0.8467, allocations: 8 kB / 1.019 GB, free: 0.625 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.839e-05/0.8468, allocations: 12 kB / 1.019 GB, free: 0.6133 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 3.383e-05/0.8468, allocations: 23.91 kB / 1.019 GB, free: 0.5898 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 5.343e-05/0.8469, allocations: 31.86 kB / 1.019 GB, free: 0.5586 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001706/0.8471, allocations: 71.75 kB / 1.019 GB, free: 500 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.8471, allocations: 0 / 1.019 GB, free: 500 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.613e-06/0.8471, allocations: 4 kB / 1.019 GB, free: 496 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 6.141e-06/0.8471, allocations: 0 / 1.019 GB, free: 496 kB / 0.7637 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.0007336/0.8478, allocations: 385.2 kB / 1.019 GB, free: 64 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 5.19e-05/0.8479, allocations: 11.98 kB / 1.019 GB, free: 52 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.003e-05/0.848, allocations: 4.938 kB / 1.019 GB, free: 48 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000229/0.8482, allocations: 176.2 kB / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.076e-05/0.8482, allocations: 4.375 kB / 1.02 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.999e-05/0.8483, allocations: 16.3 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002447/0.8485, allocations: 66.23 kB / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.199e-05/0.8485, allocations: 3.938 kB / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.33e-05/0.8485, allocations: 0 / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.123e-05/0.8486, allocations: 3.984 kB / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001955/0.8488, allocations: 47.89 kB / 1.02 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007417/0.8495, allocations: 336.5 kB / 1.02 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001898/0.8497, allocations: 58.58 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001096/0.8498, allocations: 24.97 kB / 1.02 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.929e-05/0.8499, allocations: 8 kB / 1.02 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002776/0.8502, allocations: 75.38 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.393e-06/0.8502, allocations: 0 / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004703/0.8506, allocations: 125.5 kB / 1.02 GB, free: 15 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.297e-05/0.8507, allocations: 55.34 kB / 1.02 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001254/0.8508, allocations: 125.8 kB / 1.02 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.489e-05/0.8509, allocations: 29.7 kB / 1.021 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.335e-05/0.851, allocations: 96.03 kB / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.248e-05/0.851, allocations: 15.81 kB / 1.021 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.91e-05/0.8511, allocations: 29.7 kB / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001846/0.8512, allocations: 326.8 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001128/0.8514, allocations: 27.97 kB / 1.021 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001425/0.8515, allocations: 73.98 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002728/0.8518, allocations: 109.8 kB / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.8518, allocations: 0 / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003375/0.8522, allocations: 129.7 kB / 1.021 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.348e-05/0.8522, allocations: 12 kB / 1.021 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.8522, allocations: 3.938 kB / 1.021 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.025e-05/0.8522, allocations: 4 kB / 1.021 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001419/0.8524, allocations: 15.98 kB / 1.021 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.056e-06/0.8524, allocations: 3.938 kB / 1.021 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.499e-05/0.8525, allocations: 19.83 kB / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.726e-05/0.8525, allocations: 4 kB / 1.021 GB, free: 13.84 MB / 0.7794 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.0001467/0.8527, allocations: 121.8 kB / 1.021 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.798e-05/0.8527, allocations: 11.91 kB / 1.021 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.167e-05/0.8527, allocations: 8.359 kB / 1.021 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.76e-06/0.8528, allocations: 4 kB / 1.021 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.655e-06/0.8528, allocations: 0 / 1.021 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.8528, allocations: 0 / 1.021 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006195/0.8534, allocations: 378.7 kB / 1.022 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.8534, allocations: 8 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.192e-05/0.8535, allocations: 4 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.993e-06/0.8535, allocations: 0 / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.646e-05/0.8535, allocations: 3.984 kB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.456e-06/0.8535, allocations: 3.938 kB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.8535, allocations: 4 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003384/0.8539, allocations: 199.4 kB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.452e-05/0.8539, allocations: 89 kB / 1.022 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.19e-05/0.854, allocations: 4 kB / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.011e-05/0.8541, allocations: 15.88 kB / 1.022 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.713e-05/0.8541, allocations: 3.984 kB / 1.022 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.865e-05/0.8541, allocations: 4 kB / 1.022 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.001e-05/0.8542, allocations: 91.92 kB / 1.022 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8542, allocations: 0 / 1.022 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002987/0.8545, allocations: 16 kB / 1.022 GB, free: 12.79 MB / 0.7794 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.0002113/0.8547, allocations: 118.6 kB / 1.022 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003052/0.8551, allocations: 75.83 kB / 1.022 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.8551, allocations: 0 / 1.022 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001236/0.8552, allocations: 39.95 kB / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000288/0.8555, allocations: 20.31 kB / 1.023 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004395/0.8559, allocations: 166.2 kB / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003993/0.8564, allocations: 0.6892 MB / 1.023 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.521e-05/0.8564, allocations: 11.98 kB / 1.023 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.458e-05/0.8564, allocations: 15.38 kB / 1.023 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of SimCode: time 2.61e-07/0.8565, allocations: 0 / 1.023 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of Templates: time 0.004074/0.8605, allocations: 0.9096 MB / 1.024 GB, free: 10.7 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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