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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.009696/0.009696, allocations: 101.2 kB / 15.73 MB, free: 6.047 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.002065/0.002065, allocations: 195.8 kB / 16.67 MB, free: 5.977 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.611/1.611, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.889/2.889, allocations: 461.9 MB / 0.7348 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 63.91 kB / 1.054 GB, free: 7.191 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3934/0.3948, allocations: 157.4 MB / 1.208 GB, free: 9.68 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.002587/0.3974, allocations: 0.7476 MB / 1.208 GB, free: 8.93 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.00194/0.3994, allocations: 1.163 MB / 1.21 GB, free: 7.754 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.927e-05/0.3995, allocations: 0 / 1.21 GB, free: 7.754 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 5.091e-05/0.3996, allocations: 7.875 kB / 1.21 GB, free: 7.746 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001223/0.3998, allocations: 11.92 kB / 1.21 GB, free: 7.734 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007568/0.4005, allocations: 138.1 kB / 1.21 GB, free: 7.602 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.000273/0.4008, allocations: 123.8 kB / 1.21 GB, free: 7.48 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001607/0.401, allocations: 24.17 kB / 1.21 GB, free: 7.453 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001699/0.4012, allocations: 59.83 kB / 1.21 GB, free: 7.395 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001462/0.4013, allocations: 43.88 kB / 1.21 GB, free: 7.352 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.415e-05/0.4013, allocations: 8 kB / 1.21 GB, free: 7.344 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001074/0.4015, allocations: 27.98 kB / 1.21 GB, free: 7.316 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 4.467e-05/0.4015, allocations: 19.92 kB / 1.21 GB, free: 7.297 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 9.68e-05/0.4016, allocations: 47.83 kB / 1.21 GB, free: 7.25 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002788/0.4019, allocations: 115.7 kB / 1.21 GB, free: 7.137 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 7.133e-06/0.4019, allocations: 3.938 kB / 1.21 GB, free: 7.133 MB / 0.9669 GB Notification: Performance of FrontEnd: time 5.451e-06/0.4019, allocations: 3.938 kB / 1.21 GB, free: 7.129 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.19e-05/0.4019, allocations: 3.938 kB / 1.21 GB, free: 7.125 MB / 0.9669 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.0008516/0.4028, allocations: 420.9 kB / 1.211 GB, free: 6.66 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.779e-05/0.4029, allocations: 8.031 kB / 1.211 GB, free: 6.652 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.365e-05/0.4029, allocations: 8.844 kB / 1.211 GB, free: 6.645 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001682/0.4031, allocations: 176.2 kB / 1.211 GB, free: 6.434 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.773e-05/0.4032, allocations: 12.38 kB / 1.211 GB, free: 6.422 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.199e-05/0.4032, allocations: 8.375 kB / 1.211 GB, free: 6.414 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002677/0.4035, allocations: 78.16 kB / 1.211 GB, free: 6.332 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.4035, allocations: 3.938 kB / 1.211 GB, free: 6.328 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.367e-05/0.4035, allocations: 0 / 1.211 GB, free: 6.328 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.738e-06/0.4035, allocations: 0 / 1.211 GB, free: 6.328 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002158/0.4037, allocations: 47.95 kB / 1.211 GB, free: 6.281 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006831/0.4044, allocations: 352.5 kB / 1.211 GB, free: 5.887 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002033/0.4047, allocations: 54.55 kB / 1.211 GB, free: 5.824 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000109/0.4048, allocations: 36.95 kB / 1.211 GB, free: 5.785 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.049e-05/0.4048, allocations: 0 / 1.211 GB, free: 5.785 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00025/0.4051, allocations: 95.36 kB / 1.211 GB, free: 5.68 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=8): time 1.633e-06/0.4051, allocations: 0 / 1.211 GB, free: 5.68 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8): time 0.0005135/0.4056, allocations: 149.6 kB / 1.212 GB, free: 5.527 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.106e-05/0.4057, allocations: 51.41 kB / 1.212 GB, free: 5.465 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001204/0.4058, allocations: 125.8 kB / 1.212 GB, free: 5.332 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.9e-05/0.4058, allocations: 33.7 kB / 1.212 GB, free: 5.293 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.655e-05/0.4059, allocations: 92.12 kB / 1.212 GB, free: 5.199 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.147e-05/0.4059, allocations: 27.64 kB / 1.212 GB, free: 5.172 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.56e-05/0.406, allocations: 37.7 kB / 1.212 GB, free: 5.129 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001325/0.4062, allocations: 326.8 kB / 1.212 GB, free: 4.801 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001672/0.4063, allocations: 51.91 kB / 1.212 GB, free: 4.75 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001832/0.4065, allocations: 90.86 kB / 1.212 GB, free: 4.645 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002952/0.4068, allocations: 150.7 kB / 1.213 GB, free: 4.473 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.4068, allocations: 4 kB / 1.213 GB, free: 4.469 MB / 0.9669 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004636/0.4073, allocations: 211.1 kB / 1.213 GB, free: 4.25 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 4.806e-05/0.4074, allocations: 35.42 kB / 1.213 GB, free: 4.211 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/0.4074, allocations: 4 kB / 1.213 GB, free: 4.207 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.753e-05/0.4074, allocations: 4.156 kB / 1.213 GB, free: 4.203 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00011/0.4075, allocations: 19.98 kB / 1.213 GB, free: 4.184 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.236e-06/0.4076, allocations: 4.25 kB / 1.213 GB, free: 4.18 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002208/0.4078, allocations: 35.95 kB / 1.213 GB, free: 4.145 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.093e-05/0.4078, allocations: 4 kB / 1.213 GB, free: 4.141 MB / 0.9669 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.0001204/0.4079, allocations: 129.7 kB / 1.213 GB, free: 4.004 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.991e-05/0.408, allocations: 15.89 kB / 1.213 GB, free: 3.988 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003054/0.4083, allocations: 122 kB / 1.213 GB, free: 3.859 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.135e-06/0.4083, allocations: 0 / 1.213 GB, free: 3.859 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.4083, allocations: 48 / 1.213 GB, free: 3.859 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.4083, allocations: 3.984 kB / 1.213 GB, free: 3.855 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004495/0.4088, allocations: 382.3 kB / 1.213 GB, free: 3.426 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.4088, allocations: 4 kB / 1.213 GB, free: 3.422 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.315e-05/0.4088, allocations: 15.98 kB / 1.213 GB, free: 3.406 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.4089, allocations: 0 / 1.213 GB, free: 3.406 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.067e-05/0.4089, allocations: 0 / 1.213 GB, free: 3.406 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.509e-06/0.4089, allocations: 4 kB / 1.213 GB, free: 3.402 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.4089, allocations: 3.938 kB / 1.213 GB, free: 3.398 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003244/0.4092, allocations: 223.3 kB / 1.214 GB, free: 3.164 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.697e-05/0.4093, allocations: 81.02 kB / 1.214 GB, free: 3.066 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.85e-05/0.4093, allocations: 4 kB / 1.214 GB, free: 3.062 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.52e-05/0.4094, allocations: 7.984 kB / 1.214 GB, free: 3.055 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.556e-05/0.4094, allocations: 11.92 kB / 1.214 GB, free: 3.043 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.796e-06/0.4095, allocations: 4 kB / 1.214 GB, free: 3.039 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.692e-05/0.4095, allocations: 95.2 kB / 1.214 GB, free: 2.945 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4095, allocations: 0 / 1.214 GB, free: 2.945 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002827/0.4098, allocations: 20 kB / 1.214 GB, free: 2.926 MB / 0.9669 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.0002075/0.41, allocations: 111.2 kB / 1.214 GB, free: 2.809 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0004281/0.4105, allocations: 175.3 kB / 1.214 GB, free: 2.625 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.4105, allocations: 0 / 1.214 GB, free: 2.625 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001379/0.4106, allocations: 43.91 kB / 1.214 GB, free: 2.582 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003106/0.4109, allocations: 13.33 kB / 1.214 GB, free: 2.57 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004868/0.4114, allocations: 180.7 kB / 1.214 GB, free: 2.367 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002805/0.4117, allocations: 0.6885 MB / 1.215 GB, free: 1.652 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.803e-05/0.4118, allocations: 7.984 kB / 1.215 GB, free: 1.645 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.795e-05/0.4118, allocations: 15.38 kB / 1.215 GB, free: 1.629 MB / 0.9669 GB Notification: Performance of SimCode: time 5.11e-07/0.4118, allocations: 0 / 1.215 GB, free: 1.629 MB / 0.9669 GB Notification: Performance of Templates: time 0.004816/0.4166, allocations: 1.48 MB / 1.217 GB, free: 164 kB / 0.9669 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/jenkins/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