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.00129/0.001289, allocations: 108.8 kB / 15.99 MB, free: 6.359 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.001419/0.001419, allocations: 189.2 kB / 16.91 MB, free: 6.195 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.376/1.376, allocations: 222.9 MB / 240.6 MB, free: 15.43 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.274/2.274, allocations: 390.2 MB / 0.665 GB, free: 0.8203 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001292/0.001292, allocations: 65.45 kB / 0.8127 GB, free: 33.24 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3/0.3013, allocations: 140.4 MB / 0.9498 GB, free: 9.223 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002323/0.3037, allocations: 0.8233 MB / 0.9506 GB, free: 8.395 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001464/0.3052, allocations: 1.066 MB / 0.9516 GB, free: 7.312 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.922e-05/0.3053, allocations: 0 / 0.9516 GB, free: 7.312 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 4.598e-05/0.3053, allocations: 3.938 kB / 0.9516 GB, free: 7.309 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 7.725e-05/0.3054, allocations: 15.91 kB / 0.9516 GB, free: 7.293 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003408/0.3058, allocations: 47.91 kB / 0.9517 GB, free: 7.246 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001057/0.3059, allocations: 67.78 kB / 0.9518 GB, free: 7.18 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001221/0.306, allocations: 24.16 kB / 0.9518 GB, free: 7.152 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 9.078e-05/0.3061, allocations: 27.92 kB / 0.9518 GB, free: 7.125 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.808e-05/0.3062, allocations: 35.83 kB / 0.9518 GB, free: 7.09 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.789e-05/0.3062, allocations: 4 kB / 0.9518 GB, free: 7.086 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 7.42e-05/0.3063, allocations: 19.98 kB / 0.9519 GB, free: 7.066 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.789e-05/0.3063, allocations: 19.92 kB / 0.9519 GB, free: 7.047 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.372e-05/0.3064, allocations: 27.81 kB / 0.9519 GB, free: 7.02 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001266/0.3065, allocations: 63.88 kB / 0.952 GB, free: 6.957 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.3065, allocations: 0 / 0.952 GB, free: 6.957 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.924e-06/0.3065, allocations: 0 / 0.952 GB, free: 6.957 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.316e-06/0.3065, allocations: 0 / 0.952 GB, free: 6.957 MB / 0.7325 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.0005892/0.3071, allocations: 375.4 kB / 0.9523 GB, free: 6.543 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/0.3072, allocations: 12.03 kB / 0.9523 GB, free: 6.531 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.816e-05/0.3072, allocations: 4.938 kB / 0.9523 GB, free: 6.527 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001347/0.3074, allocations: 184.2 kB / 0.9525 GB, free: 6.309 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.292e-05/0.3074, allocations: 4.375 kB / 0.9525 GB, free: 6.305 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.154e-05/0.3074, allocations: 4.375 kB / 0.9525 GB, free: 6.301 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000225/0.3076, allocations: 70.16 kB / 0.9526 GB, free: 6.227 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.3077, allocations: 3.938 kB / 0.9526 GB, free: 6.223 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.122e-05/0.3077, allocations: 0 / 0.9526 GB, free: 6.223 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.271e-06/0.3077, allocations: 7.938 kB / 0.9526 GB, free: 6.215 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001867/0.3079, allocations: 47.95 kB / 0.9527 GB, free: 6.168 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000666/0.3086, allocations: 324.6 kB / 0.953 GB, free: 5.801 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001776/0.3087, allocations: 54.55 kB / 0.953 GB, free: 5.738 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001212/0.3089, allocations: 32.97 kB / 0.953 GB, free: 5.703 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.491e-05/0.3089, allocations: 3.984 kB / 0.9531 GB, free: 5.699 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002397/0.3092, allocations: 71.39 kB / 0.9531 GB, free: 5.617 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.543e-06/0.3092, allocations: 0 / 0.9531 GB, free: 5.617 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0004456/0.3096, allocations: 137.5 kB / 0.9533 GB, free: 5.477 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.196e-05/0.3097, allocations: 55.41 kB / 0.9533 GB, free: 5.41 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001174/0.3098, allocations: 121.8 kB / 0.9534 GB, free: 5.281 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.134e-05/0.3098, allocations: 29.7 kB / 0.9534 GB, free: 5.246 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.688e-05/0.3099, allocations: 92.05 kB / 0.9535 GB, free: 5.152 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.187e-05/0.3099, allocations: 15.73 kB / 0.9536 GB, free: 5.137 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.054e-05/0.31, allocations: 33.7 kB / 0.9536 GB, free: 5.098 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001197/0.3101, allocations: 318.8 kB / 0.9539 GB, free: 4.777 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001099/0.3102, allocations: 31.97 kB / 0.9539 GB, free: 4.746 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001281/0.3104, allocations: 73.98 kB / 0.954 GB, free: 4.652 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000231/0.3106, allocations: 117.8 kB / 0.9541 GB, free: 4.516 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.3106, allocations: 3.938 kB / 0.9541 GB, free: 4.512 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003094/0.3109, allocations: 125.5 kB / 0.9542 GB, free: 4.383 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.311, allocations: 4 kB / 0.9542 GB, free: 4.379 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.311, allocations: 4 kB / 0.9542 GB, free: 4.375 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.607e-05/0.311, allocations: 0 / 0.9542 GB, free: 4.375 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001372/0.3111, allocations: 23.91 kB / 0.9543 GB, free: 4.352 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.796e-06/0.3112, allocations: 4 kB / 0.9543 GB, free: 4.348 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.234e-05/0.3113, allocations: 16.12 kB / 0.9543 GB, free: 4.332 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.639e-05/0.3113, allocations: 7.984 kB / 0.9543 GB, free: 4.324 MB / 0.7325 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.464e-05/0.3114, allocations: 123.8 kB / 0.9544 GB, free: 4.195 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.731e-05/0.3114, allocations: 3.906 kB / 0.9544 GB, free: 4.191 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.201e-05/0.3114, allocations: 16.31 kB / 0.9544 GB, free: 4.176 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.3114, allocations: 0 / 0.9544 GB, free: 4.176 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.3115, allocations: 0 / 0.9544 GB, free: 4.176 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.3115, allocations: 0 / 0.9544 GB, free: 4.176 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000476/0.3119, allocations: 374.5 kB / 0.9548 GB, free: 3.754 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.312, allocations: 0 / 0.9548 GB, free: 3.754 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.701e-05/0.312, allocations: 11.92 kB / 0.9548 GB, free: 3.742 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.339e-06/0.312, allocations: 4 kB / 0.9548 GB, free: 3.738 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.167e-06/0.312, allocations: 0 / 0.9548 GB, free: 3.738 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.312, allocations: 3.938 kB / 0.9548 GB, free: 3.734 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.3121, allocations: 0 / 0.9548 GB, free: 3.734 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002886/0.3123, allocations: 211.3 kB / 0.955 GB, free: 3.512 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.589e-05/0.3124, allocations: 88.95 kB / 0.9551 GB, free: 3.406 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.751e-05/0.3124, allocations: 0 / 0.9551 GB, free: 3.406 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.657e-05/0.3125, allocations: 11.92 kB / 0.9551 GB, free: 3.395 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.296e-05/0.3126, allocations: 4 kB / 0.9551 GB, free: 3.391 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.963e-06/0.3126, allocations: 0 / 0.9551 GB, free: 3.391 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.547e-05/0.3126, allocations: 103.3 kB / 0.9552 GB, free: 3.289 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3126, allocations: 0 / 0.9552 GB, free: 3.289 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002608/0.3129, allocations: 12 kB / 0.9552 GB, free: 3.277 MB / 0.7325 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.0001683/0.3131, allocations: 107.2 kB / 0.9553 GB, free: 3.16 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002873/0.3134, allocations: 88.27 kB / 0.9554 GB, free: 3.074 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3134, allocations: 4.438 kB / 0.9554 GB, free: 3.07 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001139/0.3135, allocations: 31.98 kB / 0.9554 GB, free: 3.039 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000297/0.3138, allocations: 17.5 kB / 0.9554 GB, free: 3.023 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003912/0.3142, allocations: 203.9 kB / 0.9556 GB, free: 2.789 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002377/0.3145, allocations: 0.6961 MB / 0.9563 GB, free: 2.066 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.339e-05/0.3145, allocations: 11.44 kB / 0.9563 GB, free: 2.055 MB / 0.7325 GB Notification: Performance of SimCode: time 4.21e-07/0.3145, allocations: 0 / 0.9563 GB, free: 2.055 MB / 0.7325 GB Notification: Performance of Templates: time 0.002872/0.3174, allocations: 1.046 MB / 0.9574 GB, free: 1.016 MB / 0.7325 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:samTri.y,samTri1.y,time,triggeredSampler.u,triggeredSampler.y,triggeredSampler1.u,triggeredSampler1.y