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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001645/0.001645, allocations: 107.6 kB / 16.37 MB, free: 6.477 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.001884/0.001884, allocations: 193.8 kB / 17.31 MB, free: 5.824 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 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.333/2.333, allocations: 390.3 MB / 0.6655 GB, free: 0.5703 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001465, allocations: 65.97 kB / 0.814 GB, free: 32.62 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3108/0.3123, allocations: 140.4 MB / 0.9511 GB, free: 8.039 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002981/0.3154, allocations: 0.7574 MB / 0.9519 GB, free: 7.277 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001926/0.3173, allocations: 1.068 MB / 0.9529 GB, free: 6.195 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.836e-05/0.3174, allocations: 4 kB / 0.9529 GB, free: 6.191 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 4.067e-05/0.3175, allocations: 7.922 kB / 0.9529 GB, free: 6.184 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001033/0.3176, allocations: 7.875 kB / 0.9529 GB, free: 6.176 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004721/0.3181, allocations: 55.83 kB / 0.953 GB, free: 6.121 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001704/0.3183, allocations: 75.83 kB / 0.9531 GB, free: 6.047 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001779/0.3185, allocations: 24.11 kB / 0.9531 GB, free: 6.02 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001164/0.3186, allocations: 23.92 kB / 0.9531 GB, free: 5.996 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 8.876e-05/0.3187, allocations: 31.91 kB / 0.9532 GB, free: 5.965 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.461e-05/0.3187, allocations: 7.938 kB / 0.9532 GB, free: 5.957 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001074/0.3188, allocations: 19.97 kB / 0.9532 GB, free: 5.938 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 4.174e-05/0.3189, allocations: 15.98 kB / 0.9532 GB, free: 5.922 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 6.983e-05/0.3189, allocations: 35.8 kB / 0.9532 GB, free: 5.887 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.000227/0.3192, allocations: 75.69 kB / 0.9533 GB, free: 5.812 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 8.877e-06/0.3192, allocations: 4 kB / 0.9533 GB, free: 5.809 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.637e-06/0.3192, allocations: 0 / 0.9533 GB, free: 5.809 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.804e-06/0.3192, allocations: 0 / 0.9533 GB, free: 5.809 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.001043/0.3203, allocations: 387.1 kB / 0.9537 GB, free: 5.383 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.793e-05/0.3203, allocations: 12.03 kB / 0.9537 GB, free: 5.371 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.6e-05/0.3204, allocations: 4.938 kB / 0.9537 GB, free: 5.367 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000167/0.3206, allocations: 168.2 kB / 0.9538 GB, free: 5.164 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.47e-05/0.3206, allocations: 8.375 kB / 0.9539 GB, free: 5.156 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.46e-05/0.3206, allocations: 8.375 kB / 0.9539 GB, free: 5.148 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002124/0.3208, allocations: 74.09 kB / 0.9539 GB, free: 5.07 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.3209, allocations: 3.938 kB / 0.9539 GB, free: 5.066 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.354e-05/0.3209, allocations: 4 kB / 0.9539 GB, free: 5.062 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/0.3209, allocations: 0 / 0.9539 GB, free: 5.062 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001691/0.3211, allocations: 47.95 kB / 0.954 GB, free: 5.016 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006454/0.3217, allocations: 328.6 kB / 0.9543 GB, free: 4.645 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001594/0.3219, allocations: 50.56 kB / 0.9543 GB, free: 4.586 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.394e-05/0.322, allocations: 32.94 kB / 0.9544 GB, free: 4.551 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.135e-05/0.322, allocations: 8 kB / 0.9544 GB, free: 4.543 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002188/0.3223, allocations: 75.38 kB / 0.9545 GB, free: 4.457 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 2.835e-06/0.3223, allocations: 4.094 kB / 0.9545 GB, free: 4.453 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0004525/0.3227, allocations: 125.7 kB / 0.9546 GB, free: 4.324 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.267e-05/0.3228, allocations: 59.39 kB / 0.9546 GB, free: 4.254 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001072/0.3229, allocations: 125.8 kB / 0.9548 GB, free: 4.121 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.359e-05/0.3229, allocations: 33.69 kB / 0.9548 GB, free: 4.082 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.939e-05/0.323, allocations: 88.05 kB / 0.9549 GB, free: 3.992 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.607e-05/0.3231, allocations: 19.75 kB / 0.9549 GB, free: 3.973 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.261e-05/0.3231, allocations: 33.64 kB / 0.9549 GB, free: 3.934 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000138/0.3233, allocations: 326.8 kB / 0.9552 GB, free: 3.605 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001122/0.3234, allocations: 23.98 kB / 0.9553 GB, free: 3.582 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001406/0.3235, allocations: 81.98 kB / 0.9553 GB, free: 3.48 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002471/0.3238, allocations: 101.9 kB / 0.9554 GB, free: 3.359 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/0.3238, allocations: 0 / 0.9554 GB, free: 3.359 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000299/0.3241, allocations: 133.7 kB / 0.9556 GB, free: 3.223 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.269e-05/0.3241, allocations: 8 kB / 0.9556 GB, free: 3.215 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.3241, allocations: 3.984 kB / 0.9556 GB, free: 3.211 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.161e-05/0.3242, allocations: 7.938 kB / 0.9556 GB, free: 3.203 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001309/0.3243, allocations: 15.98 kB / 0.9556 GB, free: 3.188 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.006e-05/0.3243, allocations: 4 kB / 0.9556 GB, free: 3.184 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.55e-05/0.3244, allocations: 11.89 kB / 0.9556 GB, free: 3.172 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.784e-05/0.3244, allocations: 4 kB / 0.9556 GB, free: 3.168 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 0.0001067/0.3246, allocations: 131.8 kB / 0.9557 GB, free: 3.031 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.253e-05/0.3246, allocations: 7.906 kB / 0.9558 GB, free: 3.023 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.311e-05/0.3246, allocations: 12.36 kB / 0.9558 GB, free: 3.012 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.3246, allocations: 0 / 0.9558 GB, free: 3.012 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.3246, allocations: 0 / 0.9558 GB, free: 3.012 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.3246, allocations: 3.938 kB / 0.9558 GB, free: 3.008 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005317/0.3252, allocations: 378.4 kB / 0.9561 GB, free: 2.582 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.3252, allocations: 4 kB / 0.9561 GB, free: 2.578 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.147e-05/0.3253, allocations: 4 kB / 0.9561 GB, free: 2.574 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.3253, allocations: 0 / 0.9561 GB, free: 2.574 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.164e-05/0.3253, allocations: 4 kB / 0.9561 GB, free: 2.57 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.3253, allocations: 7.922 kB / 0.9561 GB, free: 2.562 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3253, allocations: 0 / 0.9561 GB, free: 2.562 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003059/0.3256, allocations: 195.4 kB / 0.9563 GB, free: 2.355 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.366e-05/0.3257, allocations: 88.95 kB / 0.9564 GB, free: 2.25 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.008e-05/0.3257, allocations: 11.92 kB / 0.9564 GB, free: 2.238 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.565e-05/0.3258, allocations: 11.94 kB / 0.9564 GB, free: 2.227 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.943e-05/0.3258, allocations: 11.92 kB / 0.9565 GB, free: 2.215 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.033e-06/0.3259, allocations: 0 / 0.9565 GB, free: 2.215 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 6.033e-05/0.3259, allocations: 91.27 kB / 0.9565 GB, free: 2.125 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3259, allocations: 0 / 0.9565 GB, free: 2.125 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002625/0.3262, allocations: 20 kB / 0.9566 GB, free: 2.105 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.0002342/0.3264, allocations: 103.2 kB / 0.9567 GB, free: 1.992 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002922/0.3267, allocations: 79.86 kB / 0.9567 GB, free: 1.914 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.3267, allocations: 0 / 0.9567 GB, free: 1.914 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001145/0.3269, allocations: 39.91 kB / 0.9568 GB, free: 1.875 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002844/0.3272, allocations: 14.47 kB / 0.9568 GB, free: 1.863 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004125/0.3276, allocations: 158.3 kB / 0.9569 GB, free: 1.68 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003085/0.3279, allocations: 0.6922 MB / 0.9576 GB, free: 0.9609 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.733e-05/0.3279, allocations: 4 kB / 0.9576 GB, free: 0.957 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.229e-05/0.328, allocations: 15.42 kB / 0.9576 GB, free: 0.9414 MB / 0.7325 GB Notification: Performance of SimCode: time 2.5e-07/0.328, allocations: 0 / 0.9576 GB, free: 0.9414 MB / 0.7325 GB Notification: Performance of Templates: time 0.003749/0.3317, allocations: 0.958 MB / 0.9586 GB, free: 15.99 MB / 0.7481 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 -s cvode -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