Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001434/0.001434, allocations: 106.4 kB / 15.99 MB, free: 6.348 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.001362/0.001362, allocations: 195.6 kB / 16.91 MB, free: 6.184 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.338/1.338, allocations: 222.9 MB / 240.6 MB, free: 13.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.578/2.578, allocations: 469.8 MB / 0.7427 GB, free: 3.66 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001869/0.001869, allocations: 67.8 kB / 0.9087 GB, free: 14.23 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3013/0.3032, allocations: 159.1 MB / 1.064 GB, free: 15.12 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.001897/0.3051, allocations: 0.8065 MB / 1.065 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001264/0.3064, allocations: 1.081 MB / 1.066 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.06e-05/0.3064, allocations: 0 / 1.066 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.006e-05/0.3065, allocations: 7.938 kB / 1.066 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 6.055e-05/0.3065, allocations: 3.938 kB / 1.066 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002608/0.3068, allocations: 51.89 kB / 1.066 GB, free: 13.15 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 9.459e-05/0.3069, allocations: 63.84 kB / 1.066 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 9.604e-05/0.307, allocations: 24.09 kB / 1.066 GB, free: 13.06 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 6.483e-05/0.3071, allocations: 27.92 kB / 1.066 GB, free: 13.03 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 6.366e-05/0.3072, allocations: 39.84 kB / 1.066 GB, free: 12.99 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.6e-05/0.3072, allocations: 4 kB / 1.066 GB, free: 12.99 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 5.726e-05/0.3072, allocations: 15.98 kB / 1.066 GB, free: 12.97 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.2e-05/0.3073, allocations: 15.98 kB / 1.066 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 4.118e-05/0.3073, allocations: 31.8 kB / 1.066 GB, free: 12.93 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001019/0.3074, allocations: 67.81 kB / 1.066 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.3074, allocations: 0 / 1.066 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of FrontEnd: time 5.681e-06/0.3074, allocations: 0 / 1.066 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 8.415e-06/0.3075, allocations: 3.938 kB / 1.066 GB, free: 12.86 MB / 0.8419 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.0005358/0.308, allocations: 375.5 kB / 1.067 GB, free: 12.44 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.119e-05/0.308, allocations: 8.031 kB / 1.067 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.627e-05/0.3081, allocations: 8.844 kB / 1.067 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001359/0.3082, allocations: 172.3 kB / 1.067 GB, free: 12.22 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.434e-05/0.3082, allocations: 12.38 kB / 1.067 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.743e-05/0.3083, allocations: 4.375 kB / 1.067 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000187/0.3084, allocations: 62.23 kB / 1.067 GB, free: 12.14 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/0.3085, allocations: 15.86 kB / 1.067 GB, free: 12.12 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.237e-06/0.3085, allocations: 0 / 1.067 GB, free: 12.12 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.446e-06/0.3085, allocations: 0 / 1.067 GB, free: 12.12 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001658/0.3087, allocations: 39.97 kB / 1.067 GB, free: 12.08 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000624/0.3093, allocations: 328.7 kB / 1.067 GB, free: 11.71 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001649/0.3095, allocations: 58.58 kB / 1.067 GB, free: 11.64 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.664e-05/0.3096, allocations: 28.97 kB / 1.067 GB, free: 11.61 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.953e-05/0.3096, allocations: 8 kB / 1.067 GB, free: 11.61 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001963/0.3098, allocations: 75.36 kB / 1.067 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=7): time 1.332e-06/0.3098, allocations: 0 / 1.067 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of matching and sorting (n=7): time 0.0004041/0.3102, allocations: 133.5 kB / 1.068 GB, free: 11.38 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.238e-05/0.3103, allocations: 51.41 kB / 1.068 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001001/0.3104, allocations: 125.8 kB / 1.068 GB, free: 11.19 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.072e-05/0.3104, allocations: 25.7 kB / 1.068 GB, free: 11.16 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 6.23e-05/0.3105, allocations: 99.98 kB / 1.068 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.071e-05/0.3105, allocations: 19.73 kB / 1.068 GB, free: 11.04 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.31e-05/0.3106, allocations: 29.7 kB / 1.068 GB, free: 11 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001305/0.3107, allocations: 322.8 kB / 1.068 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001143/0.3108, allocations: 27.97 kB / 1.068 GB, free: 10.65 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001317/0.311, allocations: 73.98 kB / 1.068 GB, free: 10.55 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002291/0.3112, allocations: 109.8 kB / 1.068 GB, free: 10.43 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.3112, allocations: 0 / 1.068 GB, free: 10.43 MB / 0.8419 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002986/0.3115, allocations: 133.5 kB / 1.069 GB, free: 10.29 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/0.3115, allocations: 8 kB / 1.069 GB, free: 10.28 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.3115, allocations: 0 / 1.069 GB, free: 10.28 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.3116, allocations: 7.938 kB / 1.069 GB, free: 10.27 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001211/0.3117, allocations: 19.92 kB / 1.069 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.3117, allocations: 3.984 kB / 1.069 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.166e-05/0.3118, allocations: 12 kB / 1.069 GB, free: 10.24 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.249e-05/0.3118, allocations: 4.188 kB / 1.069 GB, free: 10.23 MB / 0.8419 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.506e-05/0.3119, allocations: 129.4 kB / 1.069 GB, free: 10.1 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.428e-05/0.3119, allocations: 7.906 kB / 1.069 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.548e-05/0.312, allocations: 8.375 kB / 1.069 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.576e-06/0.312, allocations: 4 kB / 1.069 GB, free: 10.08 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.312, allocations: 0 / 1.069 GB, free: 10.08 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.312, allocations: 0 / 1.069 GB, free: 10.08 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004695/0.3125, allocations: 378.3 kB / 1.069 GB, free: 9.656 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.3125, allocations: 4 kB / 1.069 GB, free: 9.652 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.219e-05/0.3125, allocations: 7.984 kB / 1.069 GB, free: 9.645 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.3125, allocations: 0 / 1.069 GB, free: 9.645 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.929e-06/0.3125, allocations: 0 / 1.069 GB, free: 9.645 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.398e-06/0.3126, allocations: 11.88 kB / 1.069 GB, free: 9.633 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.3126, allocations: 0 / 1.069 GB, free: 9.633 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002881/0.3129, allocations: 203.8 kB / 1.069 GB, free: 9.418 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.487e-05/0.3129, allocations: 84.95 kB / 1.069 GB, free: 9.316 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.768e-05/0.3129, allocations: 12 kB / 1.069 GB, free: 9.305 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.428e-05/0.313, allocations: 11.92 kB / 1.069 GB, free: 9.293 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.094e-05/0.3131, allocations: 0 / 1.069 GB, free: 9.293 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.133e-06/0.3131, allocations: 4 kB / 1.069 GB, free: 9.289 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 5.733e-05/0.3131, allocations: 91.27 kB / 1.07 GB, free: 9.199 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3131, allocations: 0 / 1.07 GB, free: 9.199 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002458/0.3134, allocations: 28 kB / 1.07 GB, free: 9.172 MB / 0.8419 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.0001391/0.3135, allocations: 104.2 kB / 1.07 GB, free: 9.062 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002866/0.3138, allocations: 83.89 kB / 1.07 GB, free: 8.98 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.3138, allocations: 0 / 1.07 GB, free: 8.98 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001104/0.314, allocations: 32.41 kB / 1.07 GB, free: 8.949 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000251/0.3142, allocations: 21.7 kB / 1.07 GB, free: 8.93 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003539/0.3146, allocations: 203.7 kB / 1.07 GB, free: 8.695 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002981/0.3149, allocations: 0.6924 MB / 1.071 GB, free: 7.977 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.154e-05/0.3149, allocations: 11.44 kB / 1.071 GB, free: 7.965 MB / 0.8419 GB Notification: Performance of SimCode: time 2.31e-07/0.3149, allocations: 0 / 1.071 GB, free: 7.965 MB / 0.8419 GB Notification: Performance of Templates: time 0.002628/0.3176, allocations: 1.043 MB / 1.072 GB, free: 6.926 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.makefile (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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