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.001755/0.001755, allocations: 112.2 kB / 16.42 MB, free: 6.441 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.001998/0.001998, allocations: 187.9 kB / 17.35 MB, free: 5.715 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.596/1.596, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.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.642/2.642, allocations: 437 MB / 0.7112 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001852/0.001852, allocations: 59.91 kB / 1.019 GB, free: 9.391 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.128/1.13, allocations: 151.6 MB / 1.167 GB, free: 3.82 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.001951/1.132, allocations: 0.7505 MB / 1.168 GB, free: 3.07 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001486/1.134, allocations: 1.08 MB / 1.169 GB, free: 1.977 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.51e-05/1.134, allocations: 0 / 1.169 GB, free: 1.977 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.371e-05/1.134, allocations: 3.938 kB / 1.169 GB, free: 1.973 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 7.834e-05/1.134, allocations: 15.88 kB / 1.169 GB, free: 1.957 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003036/1.134, allocations: 53.06 kB / 1.169 GB, free: 1.906 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001138/1.134, allocations: 75.72 kB / 1.169 GB, free: 1.832 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001108/1.135, allocations: 20.16 kB / 1.169 GB, free: 1.809 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 7.986e-05/1.135, allocations: 35.91 kB / 1.169 GB, free: 1.773 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 6.52e-05/1.135, allocations: 31.84 kB / 1.169 GB, free: 1.742 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.052e-05/1.135, allocations: 8 kB / 1.169 GB, free: 1.734 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 6.888e-05/1.135, allocations: 23.98 kB / 1.169 GB, free: 1.711 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.408e-05/1.135, allocations: 15.94 kB / 1.169 GB, free: 1.695 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 4.813e-05/1.135, allocations: 31.84 kB / 1.169 GB, free: 1.664 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001542/1.135, allocations: 79.67 kB / 1.169 GB, free: 1.586 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/1.135, allocations: 0 / 1.169 GB, free: 1.586 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.202e-06/1.135, allocations: 0 / 1.169 GB, free: 1.586 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.791e-06/1.135, allocations: 0 / 1.169 GB, free: 1.586 MB / 0.8887 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.0005559/1.136, allocations: 381 kB / 1.17 GB, free: 1.172 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.102e-05/1.136, allocations: 12.58 kB / 1.17 GB, free: 1.16 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.227e-05/1.136, allocations: 8.844 kB / 1.17 GB, free: 1.152 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001812/1.136, allocations: 180.2 kB / 1.17 GB, free: 0.9375 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.734e-05/1.136, allocations: 8.375 kB / 1.17 GB, free: 0.9297 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.691e-05/1.136, allocations: 4.375 kB / 1.17 GB, free: 0.9258 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002152/1.136, allocations: 66.17 kB / 1.17 GB, free: 0.8555 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/1.136, allocations: 3.938 kB / 1.17 GB, free: 0.8516 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.409e-05/1.136, allocations: 11.98 kB / 1.17 GB, free: 0.8398 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/1.136, allocations: 0 / 1.17 GB, free: 0.8398 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001699/1.136, allocations: 35.97 kB / 1.17 GB, free: 0.8047 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006442/1.137, allocations: 320.8 kB / 1.17 GB, free: 452 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000165/1.137, allocations: 66.48 kB / 1.171 GB, free: 376 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.952e-05/1.137, allocations: 24.97 kB / 1.171 GB, free: 348 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 2.247e-05/1.137, allocations: 0 / 1.171 GB, free: 348 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001902/1.138, allocations: 83.27 kB / 1.171 GB, free: 252 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=7): time 1.392e-06/1.138, allocations: 0 / 1.171 GB, free: 252 kB / 0.8887 GB Notification: Performance of matching and sorting (n=7): time 0.0004277/1.138, allocations: 133.6 kB / 1.171 GB, free: 112 kB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.3e-05/1.138, allocations: 51.41 kB / 1.171 GB, free: 48 kB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001323/1.138, allocations: 125.7 kB / 1.171 GB, free: 15.91 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.856e-05/1.138, allocations: 29.7 kB / 1.171 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 6.811e-05/1.138, allocations: 88.14 kB / 1.171 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.824e-05/1.138, allocations: 23.73 kB / 1.171 GB, free: 15.77 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.93e-05/1.138, allocations: 25.72 kB / 1.171 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001554/1.139, allocations: 326.8 kB / 1.171 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001138/1.139, allocations: 31.97 kB / 1.171 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001423/1.139, allocations: 77.97 kB / 1.172 GB, free: 15.28 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002522/1.139, allocations: 109.8 kB / 1.172 GB, free: 15.15 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/1.139, allocations: 4 kB / 1.172 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003264/1.139, allocations: 133.4 kB / 1.172 GB, free: 15.01 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.056e-05/1.14, allocations: 4 kB / 1.172 GB, free: 15 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/1.14, allocations: 4 kB / 1.172 GB, free: 15 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.916e-05/1.14, allocations: 4 kB / 1.172 GB, free: 15 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001407/1.14, allocations: 20.14 kB / 1.172 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.489e-05/1.14, allocations: 7.984 kB / 1.172 GB, free: 14.97 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.886e-05/1.14, allocations: 15.94 kB / 1.172 GB, free: 14.95 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.443e-05/1.14, allocations: 4 kB / 1.172 GB, free: 14.95 MB / 0.9044 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.0001192/1.14, allocations: 121.8 kB / 1.172 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.488e-05/1.14, allocations: 7.906 kB / 1.172 GB, free: 14.81 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.4e-05/1.14, allocations: 8.375 kB / 1.172 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.782e-06/1.14, allocations: 0 / 1.172 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/1.14, allocations: 3.938 kB / 1.172 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.631e-05/1.14, allocations: 89.02 kB / 1.172 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.672e-05/1.14, allocations: 0 / 1.172 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.98e-05/1.14, allocations: 11.92 kB / 1.172 GB, free: 14.68 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.494e-05/1.14, allocations: 11.98 kB / 1.172 GB, free: 14.67 MB / 0.9044 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000363/1.141, allocations: 177.2 kB / 1.172 GB, free: 14.49 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003431/1.141, allocations: 286.7 kB / 1.172 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001134/1.141, allocations: 39.95 kB / 1.173 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001088/1.141, allocations: 91.27 kB / 1.173 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of Backend: time 1.6e-07/1.141, allocations: 0 / 1.173 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0005567/1.142, allocations: 135.7 kB / 1.173 GB, free: 13.93 MB / 0.9044 GB Notification: Performance of SimCode: time 0.0006568/1.142, allocations: 0.5999 MB / 1.173 GB, free: 13.28 MB / 0.9044 GB Notification: Performance of Templates: time 0.004118/1.147, allocations: 1.06 MB / 1.174 GB, free: 12.23 MB / 0.9044 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=480 -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/jenkins1/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