Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.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.SampleTriggerPositiveStartTime,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.SampleTriggerPositiveStartTime") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime,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.SampleTriggerPositiveStartTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001369/0.001369, allocations: 114.4 kB / 16.42 MB, free: 6.016 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.001635/0.001635, allocations: 183.7 kB / 17.35 MB, free: 5.633 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.433/1.433, allocations: 222.9 MB / 241.1 MB, free: 15.15 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.264/2.264, allocations: 390.2 MB / 0.6655 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001392/0.001392, allocations: 67.89 kB / 0.9516 GB, free: 7.598 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8819/0.8834, allocations: 140.4 MB / 1.089 GB, free: 5.504 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.001817/0.8852, allocations: 0.7434 MB / 1.089 GB, free: 5.031 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001214/0.8864, allocations: 1.072 MB / 1.09 GB, free: 4.238 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.979e-05/0.8865, allocations: 5.406 kB / 1.09 GB, free: 4.234 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.236e-05/0.8865, allocations: 4.688 kB / 1.09 GB, free: 4.23 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.156e-05/0.8866, allocations: 14.75 kB / 1.09 GB, free: 4.219 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002888/0.8869, allocations: 51.42 kB / 1.09 GB, free: 4.191 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001146/0.887, allocations: 73.59 kB / 1.091 GB, free: 4.156 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001206/0.8872, allocations: 14.17 kB / 1.091 GB, free: 4.148 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.202e-05/0.8873, allocations: 30.94 kB / 1.091 GB, free: 4.133 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.454e-05/0.8873, allocations: 33.38 kB / 1.091 GB, free: 4.117 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.208e-05/0.8874, allocations: 9.312 kB / 1.091 GB, free: 4.113 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.77e-05/0.8874, allocations: 25.31 kB / 1.091 GB, free: 4.105 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.959e-05/0.8875, allocations: 17.42 kB / 1.091 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.566e-05/0.8875, allocations: 31.09 kB / 1.091 GB, free: 4.074 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001724/0.8877, allocations: 78.39 kB / 1.091 GB, free: 4.043 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.8877, allocations: 1.641 kB / 1.091 GB, free: 4.043 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.074e-06/0.8877, allocations: 3.938 kB / 1.091 GB, free: 4.039 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.089e-06/0.8877, 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.0005365/0.8883, allocations: 374.2 kB / 1.091 GB, free: 3.672 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/0.8883, allocations: 12 kB / 1.091 GB, free: 3.668 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.947e-05/0.8884, allocations: 9.406 kB / 1.091 GB, free: 3.664 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.293e-05/0.8885, allocations: 172.7 kB / 1.091 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.218e-05/0.8885, allocations: 7.266 kB / 1.091 GB, free: 3.457 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.141e-05/0.8885, allocations: 8.781 kB / 1.091 GB, free: 3.453 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001929/0.8887, allocations: 64.55 kB / 1.091 GB, free: 3.414 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.8887, allocations: 3.938 kB / 1.091 GB, free: 3.41 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.156e-05/0.8887, allocations: 5.703 kB / 1.091 GB, free: 3.406 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.8887, allocations: 1.094 kB / 1.091 GB, free: 3.406 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000177/0.8889, allocations: 43.02 kB / 1.091 GB, free: 3.398 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005974/0.8895, allocations: 326.6 kB / 1.092 GB, free: 3.098 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001648/0.8897, allocations: 56.23 kB / 1.092 GB, free: 3.062 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001005/0.8898, allocations: 32.61 kB / 1.092 GB, free: 3.047 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.383e-05/0.8898, allocations: 1.031 kB / 1.092 GB, free: 3.047 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001875/0.89, allocations: 90.95 kB / 1.092 GB, free: 2.977 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.443e-06/0.89, allocations: 0 / 1.092 GB, free: 2.977 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004398/0.8905, allocations: 131.3 kB / 1.092 GB, free: 2.918 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.729e-05/0.8905, allocations: 54.33 kB / 1.092 GB, free: 2.855 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.157e-05/0.8906, allocations: 118.7 kB / 1.092 GB, free: 2.75 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.554e-05/0.8906, allocations: 30.83 kB / 1.092 GB, free: 2.715 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.977e-05/0.8907, allocations: 92.75 kB / 1.092 GB, free: 2.625 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.237e-05/0.8907, allocations: 20.22 kB / 1.092 GB, free: 2.609 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.605e-05/0.8908, allocations: 28.92 kB / 1.092 GB, free: 2.586 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.851e-05/0.8909, allocations: 323.5 kB / 1.093 GB, free: 2.266 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001676/0.891, allocations: 35.62 kB / 1.093 GB, free: 2.254 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001945/0.8913, allocations: 73.83 kB / 1.093 GB, free: 2.188 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003313/0.8916, allocations: 110.6 kB / 1.093 GB, free: 2.105 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.8916, allocations: 1 kB / 1.093 GB, free: 2.105 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000487/0.8921, allocations: 134.5 kB / 1.093 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/0.8921, allocations: 8.031 kB / 1.093 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.004e-06/0.8922, allocations: 1.812 kB / 1.093 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.023e-05/0.8922, allocations: 3.141 kB / 1.093 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001818/0.8924, allocations: 17.48 kB / 1.093 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.356e-05/0.8924, allocations: 6.875 kB / 1.093 GB, free: 2.035 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001344/0.8926, allocations: 19.95 kB / 1.093 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.361e-05/0.8926, allocations: 5.359 kB / 1.093 GB, free: 2.023 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 9.208e-05/0.8927, allocations: 123.9 kB / 1.093 GB, free: 1.898 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.179e-05/0.8927, allocations: 6.531 kB / 1.093 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.151e-05/0.8928, allocations: 11.44 kB / 1.093 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.8928, allocations: 1.547 kB / 1.093 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.8928, allocations: 3.938 kB / 1.093 GB, free: 1.883 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.652e-05/0.8928, allocations: 83.52 kB / 1.093 GB, free: 1.785 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.183e-05/0.8928, allocations: 5.531 kB / 1.093 GB, free: 1.781 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.573e-05/0.8929, allocations: 10.25 kB / 1.093 GB, free: 1.777 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.499e-05/0.893, allocations: 9.391 kB / 1.093 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004447/0.8935, allocations: 179.4 kB / 1.094 GB, free: 1.652 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004134/0.8939, allocations: 283.1 kB / 1.094 GB, free: 1.418 MB / 0.8575 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001617/0.8941, allocations: 33.16 kB / 1.094 GB, free: 1.41 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.7e-05/0.8941, allocations: 92.14 kB / 1.094 GB, free: 1.332 MB / 0.8575 GB Notification: Performance of Backend: time 4.31e-07/0.8941, allocations: 0 / 1.094 GB, free: 1.332 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0007667/0.8949, allocations: 135.2 kB / 1.094 GB, free: 1.254 MB / 0.8575 GB Notification: Performance of SimCode: time 0.0005412/0.8955, allocations: 0.6133 MB / 1.095 GB, free: 0.6328 MB / 0.8575 GB Notification: Performance of Templates: time 0.00576/0.9012, allocations: 1.068 MB / 1.096 GB, free: 0.5547 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.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