Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.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.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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.Discrete.Validation.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001414/0.001414, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001639/0.001639, allocations: 196.5 kB / 16.79 MB, free: 6.828 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.368/1.368, allocations: 222.9 MB / 240.5 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.753/2.753, allocations: 461.8 MB / 0.7348 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001327/0.001327, allocations: 65.3 kB / 0.899 GB, free: 37.04 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3317/0.333, allocations: 157.4 MB / 1.053 GB, free: 8.312 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.002337/0.3354, allocations: 0.8142 MB / 1.054 GB, free: 7.496 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001661/0.3371, allocations: 1.178 MB / 1.055 GB, free: 6.305 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.97e-05/0.3372, allocations: 8 kB / 1.055 GB, free: 6.297 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.564e-05/0.3373, allocations: 3.938 kB / 1.055 GB, free: 6.293 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.232e-05/0.3374, allocations: 3.938 kB / 1.055 GB, free: 6.289 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005588/0.3379, allocations: 122.7 kB / 1.055 GB, free: 6.172 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001661/0.3381, allocations: 111.8 kB / 1.055 GB, free: 6.062 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001358/0.3383, allocations: 28.16 kB / 1.055 GB, free: 6.031 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001342/0.3384, allocations: 39.91 kB / 1.055 GB, free: 5.992 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.933e-05/0.3385, allocations: 35.83 kB / 1.055 GB, free: 5.957 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.471e-05/0.3385, allocations: 8 kB / 1.055 GB, free: 5.949 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001003/0.3386, allocations: 23.97 kB / 1.055 GB, free: 5.926 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.822e-05/0.3387, allocations: 11.98 kB / 1.055 GB, free: 5.914 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.915e-05/0.3388, allocations: 47.78 kB / 1.055 GB, free: 5.867 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001572/0.3389, allocations: 79.83 kB / 1.055 GB, free: 5.789 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.339, allocations: 3.938 kB / 1.055 GB, free: 5.785 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.613e-06/0.339, allocations: 4 kB / 1.055 GB, free: 5.781 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.392e-06/0.339, allocations: 4 kB / 1.055 GB, free: 5.777 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0007016/0.3397, allocations: 426.8 kB / 1.056 GB, free: 5.309 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.55e-05/0.3397, allocations: 15.97 kB / 1.056 GB, free: 5.293 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.358e-05/0.3398, allocations: 4.938 kB / 1.056 GB, free: 5.289 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000138/0.34, allocations: 176.2 kB / 1.056 GB, free: 5.078 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.253e-05/0.34, allocations: 8.375 kB / 1.056 GB, free: 5.07 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.77e-05/0.34, allocations: 8.375 kB / 1.056 GB, free: 5.062 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002235/0.3403, allocations: 74.2 kB / 1.056 GB, free: 4.984 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/0.3403, allocations: 3.938 kB / 1.056 GB, free: 4.98 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.657e-05/0.3403, allocations: 8 kB / 1.056 GB, free: 4.973 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.3403, allocations: 0 / 1.056 GB, free: 4.973 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001954/0.3405, allocations: 47.89 kB / 1.056 GB, free: 4.926 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005627/0.3411, allocations: 340.6 kB / 1.056 GB, free: 4.543 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001905/0.3413, allocations: 66.56 kB / 1.056 GB, free: 4.469 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001092/0.3414, allocations: 32.95 kB / 1.056 GB, free: 4.434 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.626e-05/0.3414, allocations: 7.984 kB / 1.056 GB, free: 4.426 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002888/0.3417, allocations: 91.36 kB / 1.056 GB, free: 4.324 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.793e-06/0.3417, allocations: 0 / 1.056 GB, free: 4.324 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.00047/0.3422, allocations: 149.5 kB / 1.057 GB, free: 4.172 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.563e-05/0.3423, allocations: 55.39 kB / 1.057 GB, free: 4.105 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.322e-05/0.3424, allocations: 117.8 kB / 1.057 GB, free: 3.98 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.665e-05/0.3424, allocations: 29.7 kB / 1.057 GB, free: 3.945 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.434e-05/0.3425, allocations: 100 kB / 1.057 GB, free: 3.844 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.594e-05/0.3425, allocations: 27.67 kB / 1.057 GB, free: 3.816 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.89e-05/0.3426, allocations: 37.7 kB / 1.057 GB, free: 3.773 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001278/0.3427, allocations: 322.8 kB / 1.057 GB, free: 3.449 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001673/0.3429, allocations: 47.97 kB / 1.057 GB, free: 3.402 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001818/0.3431, allocations: 93.11 kB / 1.057 GB, free: 3.293 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002915/0.3434, allocations: 150.7 kB / 1.058 GB, free: 3.121 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3434, allocations: 0 / 1.058 GB, free: 3.121 MB / 0.8106 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004596/0.3439, allocations: 211.1 kB / 1.058 GB, free: 2.902 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 4.454e-05/0.3439, allocations: 37.64 kB / 1.058 GB, free: 2.859 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.344, allocations: 4 kB / 1.058 GB, free: 2.855 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.422e-05/0.344, allocations: 0 / 1.058 GB, free: 2.855 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000114/0.3441, allocations: 24.08 kB / 1.058 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.043e-06/0.3441, allocations: 0 / 1.058 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002329/0.3443, allocations: 39.86 kB / 1.058 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.773e-05/0.3444, allocations: 12.3 kB / 1.058 GB, free: 2.781 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$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): 10 * Array equations: 0 * Algorithm blocks: 1 * 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.0001096/0.3445, allocations: 127 kB / 1.058 GB, free: 2.648 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.748e-05/0.3445, allocations: 8 kB / 1.058 GB, free: 2.641 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003141/0.3448, allocations: 126 kB / 1.058 GB, free: 2.512 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.3449, allocations: 4 kB / 1.058 GB, free: 2.508 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.3449, allocations: 0 / 1.058 GB, free: 2.508 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.3449, allocations: 0 / 1.058 GB, free: 2.508 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004719/0.3454, allocations: 382.3 kB / 1.058 GB, free: 2.078 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.3454, allocations: 0 / 1.058 GB, free: 2.078 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.488e-05/0.3454, allocations: 15.98 kB / 1.058 GB, free: 2.062 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.125e-06/0.3454, allocations: 0 / 1.058 GB, free: 2.062 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.263e-05/0.3455, allocations: 4 kB / 1.058 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.3455, allocations: 0 / 1.058 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.03e-06/0.3455, allocations: 7.938 kB / 1.059 GB, free: 2.051 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003161/0.3458, allocations: 215.5 kB / 1.059 GB, free: 1.824 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.366e-05/0.3459, allocations: 88.95 kB / 1.059 GB, free: 1.719 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.726e-05/0.3459, allocations: 0 / 1.059 GB, free: 1.719 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.843e-05/0.346, allocations: 7.984 kB / 1.059 GB, free: 1.711 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.606e-05/0.346, allocations: 11.88 kB / 1.059 GB, free: 1.699 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.086e-05/0.346, allocations: 8 kB / 1.059 GB, free: 1.691 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.655e-05/0.3461, allocations: 91.81 kB / 1.059 GB, free: 1.602 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3461, allocations: 0 / 1.059 GB, free: 1.602 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002746/0.3464, allocations: 20 kB / 1.059 GB, free: 1.582 MB / 0.8106 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 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001664/0.3466, allocations: 111.2 kB / 1.059 GB, free: 1.465 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004221/0.347, allocations: 171.3 kB / 1.059 GB, free: 1.285 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.347, allocations: 0 / 1.059 GB, free: 1.285 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001333/0.3471, allocations: 47.91 kB / 1.059 GB, free: 1.238 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002943/0.3474, allocations: 8.641 kB / 1.059 GB, free: 1.23 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004352/0.3479, allocations: 218.5 kB / 1.059 GB, free: 0.9844 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002643/0.3482, allocations: 0.6887 MB / 1.06 GB, free: 276 kB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.075e-05/0.3482, allocations: 11.44 kB / 1.06 GB, free: 264 kB / 0.8106 GB Notification: Performance of SimCode: time 4.11e-07/0.3482, allocations: 4 kB / 1.06 GB, free: 260 kB / 0.8106 GB Notification: Performance of Templates: time 0.003435/0.3516, allocations: 1.285 MB / 1.061 GB, free: 14.98 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches