Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.007258/0.007258, allocations: 101.5 kB / 15.73 MB, free: 5.965 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.001199/0.001199, allocations: 188.6 kB / 16.67 MB, free: 5.887 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.372/1.372, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.634/2.634, allocations: 469.8 MB / 0.7425 GB, free: 3.348 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 67.89 kB / 1.065 GB, free: 13.53 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9693/0.9705, allocations: 159.1 MB / 1.221 GB, free: 2.102 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.001911/0.9724, allocations: 0.7573 MB / 1.221 GB, free: 1.348 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001186/0.9736, allocations: 1.069 MB / 1.222 GB, free: 272 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.621e-05/0.9736, allocations: 4 kB / 1.222 GB, free: 268 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.567e-05/0.9737, allocations: 15.8 kB / 1.222 GB, free: 252 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 7.264e-05/0.9737, allocations: 11.86 kB / 1.222 GB, free: 240 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002984/0.974, allocations: 55.89 kB / 1.222 GB, free: 184 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001153/0.9742, allocations: 71.77 kB / 1.223 GB, free: 112 kB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 9.951e-05/0.9743, allocations: 12.19 kB / 1.223 GB, free: 96 kB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 6.379e-05/0.9743, allocations: 27.92 kB / 1.223 GB, free: 68 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 5.491e-05/0.9744, allocations: 35.83 kB / 1.223 GB, free: 32 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.644e-05/0.9744, allocations: 8 kB / 1.223 GB, free: 24 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 6.011e-05/0.9744, allocations: 15.98 kB / 1.223 GB, free: 8 kB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 4.064e-05/0.9745, allocations: 15.92 kB / 1.223 GB, free: 15.99 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 4.057e-05/0.9745, allocations: 31.86 kB / 1.223 GB, free: 15.96 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0001382/0.9747, allocations: 76.25 kB / 1.223 GB, free: 15.89 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.9747, allocations: 0 / 1.223 GB, free: 15.89 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.743e-06/0.9747, allocations: 4 kB / 1.223 GB, free: 15.89 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 5.881e-06/0.9747, allocations: 0 / 1.223 GB, free: 15.89 MB / 0.9512 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.0005345/0.9752, allocations: 387.1 kB / 1.223 GB, free: 15.46 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.299e-05/0.9752, allocations: 11.97 kB / 1.223 GB, free: 15.45 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.811e-05/0.9753, allocations: 8.891 kB / 1.223 GB, free: 15.44 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001174/0.9754, allocations: 184.1 kB / 1.223 GB, free: 15.22 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.977e-06/0.9754, allocations: 384 / 1.223 GB, free: 15.22 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.771e-05/0.9754, allocations: 8.375 kB / 1.223 GB, free: 15.21 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001855/0.9756, allocations: 70.22 kB / 1.223 GB, free: 15.14 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.9756, allocations: 3.938 kB / 1.223 GB, free: 15.14 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.187e-05/0.9756, allocations: 4 kB / 1.223 GB, free: 15.13 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.9756, allocations: 0 / 1.223 GB, free: 15.13 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001755/0.9758, allocations: 47.89 kB / 1.223 GB, free: 15.09 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006564/0.9765, allocations: 320.8 kB / 1.224 GB, free: 14.72 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001544/0.9766, allocations: 50.59 kB / 1.224 GB, free: 14.66 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.271e-05/0.9767, allocations: 28.95 kB / 1.224 GB, free: 14.63 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.714e-05/0.9767, allocations: 0 / 1.224 GB, free: 14.63 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001911/0.9769, allocations: 83.33 kB / 1.224 GB, free: 14.54 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 1.212e-06/0.9769, allocations: 0 / 1.224 GB, free: 14.54 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7): time 0.0003909/0.9773, allocations: 133.5 kB / 1.224 GB, free: 14.4 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.818e-05/0.9774, allocations: 51.41 kB / 1.224 GB, free: 14.34 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.19e-05/0.9775, allocations: 121.8 kB / 1.224 GB, free: 14.21 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.875e-05/0.9775, allocations: 33.69 kB / 1.224 GB, free: 14.17 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 5.747e-05/0.9775, allocations: 92.14 kB / 1.224 GB, free: 14.08 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.898e-05/0.9776, allocations: 19.84 kB / 1.224 GB, free: 14.06 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.925e-05/0.9776, allocations: 29.7 kB / 1.224 GB, free: 14.02 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001032/0.9777, allocations: 322.8 kB / 1.225 GB, free: 13.7 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000105/0.9778, allocations: 23.98 kB / 1.225 GB, free: 13.68 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001349/0.9779, allocations: 89.91 kB / 1.225 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002159/0.9782, allocations: 105.9 kB / 1.225 GB, free: 13.44 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.9782, allocations: 0 / 1.225 GB, free: 13.44 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000298/0.9785, allocations: 129.5 kB / 1.225 GB, free: 13.31 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.9785, allocations: 8.219 kB / 1.225 GB, free: 13.3 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.9785, allocations: 7.984 kB / 1.225 GB, free: 13.29 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.627e-05/0.9785, allocations: 4 kB / 1.225 GB, free: 13.29 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001248/0.9786, allocations: 23.92 kB / 1.225 GB, free: 13.27 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.9786, allocations: 0 / 1.225 GB, free: 13.27 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.469e-05/0.9787, allocations: 19.94 kB / 1.225 GB, free: 13.25 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.278e-05/0.9787, allocations: 4 kB / 1.225 GB, free: 13.24 MB / 0.9512 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.771e-05/0.9788, allocations: 118.3 kB / 1.225 GB, free: 13.12 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.437e-05/0.9788, allocations: 7.953 kB / 1.225 GB, free: 13.11 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.094e-05/0.9789, allocations: 20.3 kB / 1.225 GB, free: 13.08 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.9789, allocations: 0 / 1.225 GB, free: 13.08 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.9789, allocations: 4 kB / 1.225 GB, free: 13.08 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.9789, allocations: 0 / 1.225 GB, free: 13.08 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004472/0.9793, allocations: 370.4 kB / 1.226 GB, free: 12.66 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.9793, allocations: 3.984 kB / 1.226 GB, free: 12.66 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.303e-05/0.9794, allocations: 8 kB / 1.226 GB, free: 12.65 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.9794, allocations: 4 kB / 1.226 GB, free: 12.64 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.155e-06/0.9794, allocations: 0 / 1.226 GB, free: 12.64 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.856e-06/0.9794, allocations: 3.938 kB / 1.226 GB, free: 12.64 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.9794, allocations: 3.984 kB / 1.226 GB, free: 12.64 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002707/0.9797, allocations: 203.4 kB / 1.226 GB, free: 12.42 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 3.463e-05/0.9797, allocations: 81.06 kB / 1.226 GB, free: 12.32 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.908e-05/0.9797, allocations: 7.984 kB / 1.226 GB, free: 12.32 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.128e-05/0.9798, allocations: 7.938 kB / 1.226 GB, free: 12.31 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.658e-05/0.9798, allocations: 7.984 kB / 1.226 GB, free: 12.3 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.186e-06/0.9798, allocations: 8 kB / 1.226 GB, free: 12.29 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 6.168e-05/0.9799, allocations: 91.27 kB / 1.226 GB, free: 12.2 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1e-07/0.9799, allocations: 3.938 kB / 1.226 GB, free: 12.2 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002495/0.9801, allocations: 12 kB / 1.226 GB, free: 12.19 MB / 0.9512 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.0001474/0.9803, allocations: 113.1 kB / 1.226 GB, free: 12.07 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002668/0.9806, allocations: 80.28 kB / 1.226 GB, free: 11.99 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.9806, allocations: 0 / 1.226 GB, free: 11.99 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001074/0.9807, allocations: 31.97 kB / 1.226 GB, free: 11.96 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002656/0.9809, allocations: 12.16 kB / 1.226 GB, free: 11.95 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003394/0.9813, allocations: 166.4 kB / 1.226 GB, free: 11.76 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002426/0.9815, allocations: 0.6924 MB / 1.227 GB, free: 11.04 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 2.972e-05/0.9815, allocations: 4 kB / 1.227 GB, free: 11.04 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.932e-05/0.9816, allocations: 19.42 kB / 1.227 GB, free: 11.02 MB / 0.9512 GB Notification: Performance of SimCode: time 3.51e-07/0.9816, allocations: 3.938 kB / 1.227 GB, free: 11.01 MB / 0.9512 GB Notification: Performance of Templates: time 0.003202/0.9848, allocations: 0.9751 MB / 1.228 GB, free: 10.05 MB / 0.9512 GB make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.makefile (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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