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.001124/0.001124, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00123/0.00123, allocations: 191.7 kB / 16.13 MB, free: 6.691 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.5/1.5, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.768/2.768, allocations: 461.9 MB / 0.7342 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 70.97 kB / 0.8984 GB, free: 37.35 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3916/0.3929, allocations: 157.4 MB / 1.052 GB, free: 8.812 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.00237/0.3953, allocations: 0.8104 MB / 1.053 GB, free: 8 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001693/0.3971, allocations: 1.186 MB / 1.054 GB, free: 6.801 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.306e-05/0.3971, allocations: 4 kB / 1.054 GB, free: 6.797 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.075e-05/0.3972, allocations: 4 kB / 1.054 GB, free: 6.793 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.47e-05/0.3973, allocations: 3.938 kB / 1.054 GB, free: 6.789 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004966/0.3978, allocations: 118.9 kB / 1.054 GB, free: 6.676 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001396/0.3979, allocations: 115.7 kB / 1.054 GB, free: 6.562 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001406/0.3981, allocations: 20.17 kB / 1.054 GB, free: 6.539 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001175/0.3982, allocations: 51.84 kB / 1.054 GB, free: 6.488 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.498e-05/0.3983, allocations: 43.75 kB / 1.054 GB, free: 6.445 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.464e-05/0.3983, allocations: 8 kB / 1.054 GB, free: 6.438 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.25e-05/0.3984, allocations: 19.98 kB / 1.054 GB, free: 6.418 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.867e-05/0.3984, allocations: 11.98 kB / 1.054 GB, free: 6.406 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.388e-05/0.3985, allocations: 47.78 kB / 1.054 GB, free: 6.359 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002052/0.3987, allocations: 111.7 kB / 1.055 GB, free: 6.25 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.708e-06/0.3987, allocations: 0 / 1.055 GB, free: 6.25 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.162e-06/0.3988, allocations: 0 / 1.055 GB, free: 6.25 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.36e-06/0.3988, allocations: 0 / 1.055 GB, free: 6.25 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.0006953/0.3995, allocations: 433.1 kB / 1.055 GB, free: 5.773 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.251e-05/0.3995, allocations: 11.97 kB / 1.055 GB, free: 5.762 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.777e-05/0.3996, allocations: 8.938 kB / 1.055 GB, free: 5.754 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001521/0.3997, allocations: 172.2 kB / 1.055 GB, free: 5.547 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.016e-05/0.3998, allocations: 8.312 kB / 1.055 GB, free: 5.539 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.694e-05/0.3998, allocations: 12.38 kB / 1.055 GB, free: 5.527 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002156/0.4, allocations: 70.2 kB / 1.055 GB, free: 5.453 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.878e-06/0.4, allocations: 7.938 kB / 1.055 GB, free: 5.445 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.215e-05/0.4001, allocations: 0 / 1.055 GB, free: 5.445 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.926e-06/0.4001, allocations: 4 kB / 1.055 GB, free: 5.441 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001892/0.4003, allocations: 43.95 kB / 1.055 GB, free: 5.398 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005589/0.4008, allocations: 340.6 kB / 1.056 GB, free: 5.016 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001773/0.401, allocations: 62.55 kB / 1.056 GB, free: 4.945 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.97e-05/0.4011, allocations: 32.95 kB / 1.056 GB, free: 4.91 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.243e-05/0.4012, allocations: 0 / 1.056 GB, free: 4.91 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002314/0.4014, allocations: 99.39 kB / 1.056 GB, free: 4.801 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.362e-06/0.4014, allocations: 0 / 1.056 GB, free: 4.801 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.0004625/0.4019, allocations: 145.5 kB / 1.056 GB, free: 4.652 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.846e-05/0.4019, allocations: 59.39 kB / 1.056 GB, free: 4.582 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.238e-05/0.402, allocations: 113.8 kB / 1.056 GB, free: 4.461 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.827e-05/0.4021, allocations: 29.7 kB / 1.056 GB, free: 4.426 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.519e-05/0.4022, allocations: 96.03 kB / 1.056 GB, free: 4.328 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.602e-05/0.4022, allocations: 27.69 kB / 1.056 GB, free: 4.301 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.298e-05/0.4023, allocations: 37.7 kB / 1.056 GB, free: 4.258 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001218/0.4024, allocations: 322.8 kB / 1.057 GB, free: 3.934 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001716/0.4026, allocations: 55.95 kB / 1.057 GB, free: 3.879 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001767/0.4028, allocations: 89.12 kB / 1.057 GB, free: 3.773 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002906/0.4031, allocations: 158.6 kB / 1.057 GB, free: 3.594 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.4031, allocations: 4 kB / 1.057 GB, free: 3.59 MB / 0.8106 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004569/0.4035, allocations: 211.1 kB / 1.057 GB, free: 3.371 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 4.654e-05/0.4036, allocations: 37.7 kB / 1.057 GB, free: 3.328 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.4036, allocations: 0 / 1.057 GB, free: 3.328 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.124e-05/0.4036, allocations: 4 kB / 1.057 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001113/0.4037, allocations: 15.92 kB / 1.057 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.086e-05/0.4038, allocations: 8.453 kB / 1.057 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002236/0.404, allocations: 40.42 kB / 1.057 GB, free: 3.262 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.695e-05/0.404, allocations: 11.98 kB / 1.057 GB, free: 3.25 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.0001155/0.4041, allocations: 121.8 kB / 1.057 GB, free: 3.121 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.234e-05/0.4042, allocations: 0 / 1.057 GB, free: 3.121 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003239/0.4045, allocations: 137.9 kB / 1.057 GB, free: 2.98 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.4045, allocations: 0 / 1.057 GB, free: 2.98 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.4045, allocations: 0 / 1.057 GB, free: 2.98 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.109e-06/0.4045, allocations: 4 kB / 1.058 GB, free: 2.977 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004523/0.405, allocations: 378.3 kB / 1.058 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.405, allocations: 4 kB / 1.058 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.803e-05/0.4051, allocations: 11.92 kB / 1.058 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.4051, allocations: 4 kB / 1.058 GB, free: 2.531 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.073e-05/0.4051, allocations: 4 kB / 1.058 GB, free: 2.527 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.502e-06/0.4051, allocations: 0 / 1.058 GB, free: 2.527 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.4051, allocations: 3.938 kB / 1.058 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003038/0.4054, allocations: 207.5 kB / 1.058 GB, free: 2.305 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.679e-05/0.4055, allocations: 89.02 kB / 1.058 GB, free: 2.199 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.983e-05/0.4055, allocations: 8 kB / 1.058 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.581e-05/0.4056, allocations: 7.984 kB / 1.058 GB, free: 2.184 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.489e-05/0.4056, allocations: 7.938 kB / 1.058 GB, free: 2.176 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.398e-06/0.4057, allocations: 3.984 kB / 1.058 GB, free: 2.172 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.417e-05/0.4057, allocations: 95.22 kB / 1.058 GB, free: 2.078 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.11e-07/0.4057, allocations: 0 / 1.058 GB, free: 2.078 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000279/0.406, allocations: 27.98 kB / 1.058 GB, free: 2.051 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.0001602/0.4062, allocations: 107.1 kB / 1.058 GB, free: 1.938 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004045/0.4066, allocations: 183.2 kB / 1.059 GB, free: 1.746 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.4066, allocations: 0 / 1.059 GB, free: 1.746 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001237/0.4067, allocations: 39.97 kB / 1.059 GB, free: 1.707 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003034/0.407, allocations: 20.95 kB / 1.059 GB, free: 1.688 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004239/0.4075, allocations: 189 kB / 1.059 GB, free: 1.477 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003069/0.4078, allocations: 0.6887 MB / 1.06 GB, free: 0.7617 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.272e-05/0.4078, allocations: 4 kB / 1.06 GB, free: 0.7578 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.391e-05/0.4079, allocations: 15.44 kB / 1.06 GB, free: 0.7422 MB / 0.8106 GB Notification: Performance of SimCode: time 2.9e-07/0.4079, allocations: 0 / 1.06 GB, free: 0.7422 MB / 0.8106 GB Notification: Performance of Templates: time 0.003818/0.4117, allocations: 1.318 MB / 1.061 GB, free: 15.45 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/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