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.001573/0.001573, allocations: 104.5 kB / 16.41 MB, free: 6.398 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.001873/0.001873, allocations: 195.7 kB / 17.35 MB, free: 5.695 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.356/1.356, allocations: 222.9 MB / 241 MB, free: 15.07 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.402/2.402, allocations: 390.3 MB / 0.6655 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001453/0.001454, allocations: 63.91 kB / 0.9516 GB, free: 7.617 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8269/0.8284, allocations: 140.4 MB / 1.089 GB, free: 5.5 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.001827/0.8303, allocations: 0.7504 MB / 1.089 GB, free: 5.02 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00113/0.8314, allocations: 1.073 MB / 1.09 GB, free: 4.227 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.641e-05/0.8315, allocations: 1 kB / 1.09 GB, free: 4.227 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.771e-05/0.8315, allocations: 9.094 kB / 1.09 GB, free: 4.219 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.528e-05/0.8316, allocations: 7.375 kB / 1.09 GB, free: 4.215 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002937/0.8319, allocations: 57.97 kB / 1.09 GB, free: 4.18 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000123/0.832, allocations: 70.62 kB / 1.091 GB, free: 4.148 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001048/0.8321, allocations: 22.44 kB / 1.091 GB, free: 4.133 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.927e-05/0.8322, allocations: 31.69 kB / 1.091 GB, free: 4.117 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.523e-05/0.8323, allocations: 31.62 kB / 1.091 GB, free: 4.102 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.971e-05/0.8323, allocations: 6.5 kB / 1.091 GB, free: 4.102 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.494e-05/0.8324, allocations: 19.7 kB / 1.091 GB, free: 4.098 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.096e-05/0.8324, allocations: 13.48 kB / 1.091 GB, free: 4.09 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.378e-05/0.8325, allocations: 40.22 kB / 1.091 GB, free: 4.062 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001534/0.8326, allocations: 74.98 kB / 1.091 GB, free: 4.035 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.8326, allocations: 0.75 kB / 1.091 GB, free: 4.035 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.623e-06/0.8326, allocations: 0 / 1.091 GB, free: 4.035 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.72e-06/0.8327, allocations: 0 / 1.091 GB, free: 4.035 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.0004843/0.8331, allocations: 376.8 kB / 1.091 GB, free: 3.664 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.702e-05/0.8332, allocations: 10.39 kB / 1.091 GB, free: 3.664 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.106e-05/0.8332, allocations: 8.25 kB / 1.091 GB, free: 3.66 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.637e-05/0.8333, allocations: 174.4 kB / 1.091 GB, free: 3.457 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.351e-05/0.8333, allocations: 6.469 kB / 1.091 GB, free: 3.453 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.861e-05/0.8334, allocations: 8.328 kB / 1.091 GB, free: 3.449 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002096/0.8336, allocations: 63.97 kB / 1.091 GB, free: 3.41 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.8336, allocations: 5.609 kB / 1.091 GB, free: 3.406 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.113e-05/0.8336, allocations: 3.938 kB / 1.091 GB, free: 3.402 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.8336, allocations: 1.094 kB / 1.091 GB, free: 3.402 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001897/0.8338, allocations: 49.09 kB / 1.091 GB, free: 3.391 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005664/0.8344, allocations: 334.8 kB / 1.092 GB, free: 3.082 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001644/0.8346, allocations: 50.92 kB / 1.092 GB, free: 3.051 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000104/0.8347, allocations: 36.97 kB / 1.092 GB, free: 3.031 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.445e-05/0.8347, allocations: 6.047 kB / 1.092 GB, free: 3.027 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001848/0.8349, allocations: 77.55 kB / 1.092 GB, free: 2.969 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.453e-06/0.8349, allocations: 3.938 kB / 1.092 GB, free: 2.965 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004275/0.8353, allocations: 123.7 kB / 1.092 GB, free: 2.914 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.123e-05/0.8354, allocations: 57.83 kB / 1.092 GB, free: 2.848 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.419e-05/0.8355, allocations: 123.1 kB / 1.092 GB, free: 2.738 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.483e-05/0.8355, allocations: 30.36 kB / 1.092 GB, free: 2.703 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.981e-05/0.8355, allocations: 97.12 kB / 1.092 GB, free: 2.609 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.912e-05/0.8356, allocations: 15.92 kB / 1.092 GB, free: 2.598 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.787e-05/0.8356, allocations: 34 kB / 1.092 GB, free: 2.57 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.032e-05/0.8357, allocations: 323.4 kB / 1.093 GB, free: 2.25 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001151/0.8358, allocations: 26.55 kB / 1.093 GB, free: 2.246 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001383/0.8359, allocations: 78.58 kB / 1.093 GB, free: 2.176 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002429/0.8362, allocations: 106.4 kB / 1.093 GB, free: 2.098 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.8362, allocations: 0.75 kB / 1.093 GB, free: 2.098 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003226/0.8365, allocations: 139.4 kB / 1.093 GB, free: 2.027 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.559e-05/0.8366, allocations: 5.844 kB / 1.093 GB, free: 2.027 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.8366, allocations: 1.516 kB / 1.093 GB, free: 2.027 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.596e-05/0.8366, allocations: 2.719 kB / 1.093 GB, free: 2.027 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001311/0.8367, allocations: 17.55 kB / 1.093 GB, free: 2.027 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.164e-05/0.8367, allocations: 6.5 kB / 1.093 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.563e-05/0.8368, allocations: 12.28 kB / 1.093 GB, free: 2.02 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.654e-05/0.8369, allocations: 8.156 kB / 1.093 GB, free: 2.016 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 7.359e-05/0.8369, allocations: 126.8 kB / 1.093 GB, free: 1.891 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.544e-05/0.837, allocations: 7.406 kB / 1.093 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.859e-05/0.837, allocations: 11.75 kB / 1.093 GB, free: 1.879 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.837, allocations: 0.875 kB / 1.093 GB, free: 1.879 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.837, allocations: 0 / 1.093 GB, free: 1.879 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.837, allocations: 5.438 kB / 1.093 GB, free: 1.875 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000443/0.8375, allocations: 379.7 kB / 1.094 GB, free: 1.535 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.8375, allocations: 0.9688 kB / 1.094 GB, free: 1.535 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.558e-05/0.8375, allocations: 7.906 kB / 1.094 GB, free: 1.535 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.8375, allocations: 0.9688 kB / 1.094 GB, free: 1.535 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.857e-06/0.8376, allocations: 1.531 kB / 1.094 GB, free: 1.535 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.027e-06/0.8376, allocations: 4.969 kB / 1.094 GB, free: 1.531 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.8376, allocations: 3.938 kB / 1.094 GB, free: 1.527 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002687/0.8379, allocations: 199.4 kB / 1.094 GB, free: 1.375 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.209e-05/0.8379, allocations: 84.38 kB / 1.094 GB, free: 1.277 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.718e-05/0.8379, allocations: 1.625 kB / 1.094 GB, free: 1.277 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.866e-05/0.838, allocations: 14.02 kB / 1.094 GB, free: 1.27 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.454e-05/0.8381, allocations: 5 kB / 1.094 GB, free: 1.27 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.313e-06/0.8381, allocations: 3.078 kB / 1.094 GB, free: 1.27 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.159e-05/0.8381, allocations: 91.36 kB / 1.094 GB, free: 1.191 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8381, allocations: 0.75 kB / 1.094 GB, free: 1.191 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002643/0.8384, allocations: 20.62 kB / 1.094 GB, free: 1.184 MB / 0.8575 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.0001373/0.8385, allocations: 107.1 kB / 1.094 GB, free: 1.094 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002972/0.8388, allocations: 78.44 kB / 1.094 GB, free: 1.074 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.8388, allocations: 0.7812 kB / 1.094 GB, free: 1.074 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001269/0.839, allocations: 40.33 kB / 1.094 GB, free: 1.062 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002749/0.8393, allocations: 15.3 kB / 1.094 GB, free: 1.055 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003466/0.8396, allocations: 184.9 kB / 1.094 GB, free: 0.8828 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001307/0.8398, allocations: 0.6895 MB / 1.095 GB, free: 192 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.266e-05/0.8398, allocations: 16.2 kB / 1.095 GB, free: 180 kB / 0.8575 GB Notification: Performance of SimCode: time 3.71e-07/0.8398, allocations: 0 / 1.095 GB, free: 180 kB / 0.8575 GB Notification: Performance of Templates: time 0.004104/0.8439, allocations: 1.057 MB / 1.096 GB, free: 80 kB / 0.8575 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