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.001409/0.001409, allocations: 114.2 kB / 16.42 MB, free: 6.449 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.001549/0.001549, allocations: 192.3 kB / 17.35 MB, free: 5.738 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.373/1.373, allocations: 222.9 MB / 241.1 MB, free: 15.16 MB / 206.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.199/2.199, allocations: 390.2 MB / 0.6655 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001491/0.001491, allocations: 67.91 kB / 0.9516 GB, free: 7.613 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9518/0.9533, allocations: 140.4 MB / 1.089 GB, free: 5.492 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.00257/0.9559, allocations: 0.7429 MB / 1.089 GB, free: 5.023 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001468/0.9574, allocations: 1.07 MB / 1.09 GB, free: 4.234 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.158e-05/0.9575, allocations: 1.312 kB / 1.09 GB, free: 4.234 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.411e-05/0.9576, allocations: 12.44 kB / 1.09 GB, free: 4.223 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.266e-05/0.9577, allocations: 11.88 kB / 1.09 GB, free: 4.215 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000354/0.958, allocations: 54.94 kB / 1.09 GB, free: 4.184 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001527/0.9582, allocations: 69.75 kB / 1.091 GB, free: 4.152 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001375/0.9583, allocations: 18.7 kB / 1.091 GB, free: 4.141 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.547e-05/0.9584, allocations: 30.27 kB / 1.091 GB, free: 4.125 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.703e-05/0.9585, allocations: 36.95 kB / 1.091 GB, free: 4.105 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.117e-05/0.9585, allocations: 6.5 kB / 1.091 GB, free: 4.105 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.724e-05/0.9586, allocations: 23.56 kB / 1.091 GB, free: 4.098 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.546e-05/0.9587, allocations: 13.73 kB / 1.091 GB, free: 4.09 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.464e-05/0.9587, allocations: 34.8 kB / 1.091 GB, free: 4.066 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001988/0.9589, allocations: 75.25 kB / 1.091 GB, free: 4.039 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.9589, allocations: 1.312 kB / 1.091 GB, free: 4.039 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.444e-06/0.959, allocations: 0 / 1.091 GB, free: 4.039 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.22e-06/0.959, allocations: 0 / 1.091 GB, free: 4.039 MB / 0.8575 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.0005557/0.9595, allocations: 381.7 kB / 1.091 GB, free: 3.664 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.017e-05/0.9596, allocations: 9.422 kB / 1.091 GB, free: 3.664 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.898e-05/0.9596, allocations: 12.91 kB / 1.091 GB, free: 3.656 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001005/0.9597, allocations: 172.6 kB / 1.091 GB, free: 3.453 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.511e-05/0.9598, allocations: 3.953 kB / 1.091 GB, free: 3.453 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.967e-05/0.9598, allocations: 8.406 kB / 1.091 GB, free: 3.449 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002121/0.96, allocations: 64.33 kB / 1.091 GB, free: 3.41 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.96, allocations: 4.547 kB / 1.091 GB, free: 3.406 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.1e-05/0.96, allocations: 0 / 1.091 GB, free: 3.406 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.9601, allocations: 1.281 kB / 1.091 GB, free: 3.406 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001908/0.9602, allocations: 51.41 kB / 1.091 GB, free: 3.391 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006308/0.9609, allocations: 327.9 kB / 1.092 GB, free: 3.09 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001678/0.9611, allocations: 50.91 kB / 1.092 GB, free: 3.059 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001071/0.9612, allocations: 49.98 kB / 1.092 GB, free: 3.027 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.555e-05/0.9612, allocations: 0.5625 kB / 1.092 GB, free: 3.027 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002118/0.9614, allocations: 75.05 kB / 1.092 GB, free: 2.973 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.493e-06/0.9614, allocations: 0 / 1.092 GB, free: 2.973 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004388/0.9619, allocations: 127.2 kB / 1.092 GB, free: 2.918 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.165e-05/0.9619, allocations: 61.09 kB / 1.092 GB, free: 2.848 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.651e-05/0.962, allocations: 119.9 kB / 1.092 GB, free: 2.742 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.56e-05/0.962, allocations: 30.33 kB / 1.092 GB, free: 2.707 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.466e-05/0.9621, allocations: 92.7 kB / 1.092 GB, free: 2.617 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.038e-05/0.9621, allocations: 15.52 kB / 1.092 GB, free: 2.605 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.441e-05/0.9622, allocations: 34.78 kB / 1.092 GB, free: 2.578 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.35e-05/0.9623, allocations: 323.2 kB / 1.093 GB, free: 2.258 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000119/0.9624, allocations: 30.34 kB / 1.093 GB, free: 2.25 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001429/0.9625, allocations: 71.3 kB / 1.093 GB, free: 2.188 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000245/0.9628, allocations: 106 kB / 1.093 GB, free: 2.109 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.207e-06/0.9628, allocations: 1.281 kB / 1.093 GB, free: 2.109 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003333/0.9631, allocations: 138.8 kB / 1.093 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.9632, allocations: 5.656 kB / 1.093 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.9632, allocations: 2.484 kB / 1.093 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.864e-05/0.9632, allocations: 2.344 kB / 1.093 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001348/0.9633, allocations: 17.66 kB / 1.093 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.642e-05/0.9634, allocations: 10.98 kB / 1.093 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.702e-05/0.9634, allocations: 15.72 kB / 1.093 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.79e-05/0.9635, allocations: 8.906 kB / 1.093 GB, free: 2.02 MB / 0.8575 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.786e-05/0.9636, allocations: 124.4 kB / 1.093 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.506e-05/0.9636, allocations: 7.141 kB / 1.093 GB, free: 1.891 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.053e-05/0.9636, allocations: 14.25 kB / 1.093 GB, free: 1.879 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/0.9636, allocations: 1.516 kB / 1.093 GB, free: 1.879 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.9636, allocations: 0.7188 kB / 1.093 GB, free: 1.879 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.576e-05/0.9637, allocations: 83.05 kB / 1.093 GB, free: 1.781 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.876e-05/0.9637, allocations: 2.141 kB / 1.093 GB, free: 1.781 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.932e-05/0.9638, allocations: 14.53 kB / 1.093 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.904e-05/0.9638, allocations: 4.156 kB / 1.093 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003295/0.9642, allocations: 188 kB / 1.094 GB, free: 1.645 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003018/0.9645, allocations: 275.8 kB / 1.094 GB, free: 1.418 MB / 0.8575 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001145/0.9646, allocations: 31.83 kB / 1.094 GB, free: 1.41 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.864e-05/0.9646, allocations: 95.69 kB / 1.094 GB, free: 1.328 MB / 0.8575 GB Notification: Performance of Backend: time 5.41e-07/0.9647, allocations: 1.062 kB / 1.094 GB, free: 1.328 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0005574/0.9652, allocations: 133.5 kB / 1.094 GB, free: 1.25 MB / 0.8575 GB Notification: Performance of SimCode: time 0.0004788/0.9657, allocations: 0.6198 MB / 1.095 GB, free: 0.625 MB / 0.8575 GB Notification: Performance of Templates: time 0.004383/0.9701, allocations: 1.053 MB / 1.096 GB, free: 0.5234 MB / 0.8575 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/jenkins1/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