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.00182/0.00182, allocations: 101.1 kB / 16.27 MB, free: 6.414 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.002663/0.002663, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.487/1.487, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.756/2.756, allocations: 469.4 MB / 0.7427 GB, free: 3.672 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001316/0.001317, allocations: 63.81 kB / 0.9088 GB, free: 14.13 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3877/0.389, allocations: 159.1 MB / 1.064 GB, free: 15.02 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.002473/0.3916, allocations: 0.7535 MB / 1.065 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001937/0.3936, allocations: 1.158 MB / 1.066 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.432e-05/0.3937, allocations: 3.938 kB / 1.066 GB, free: 13.08 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.68e-05/0.3937, allocations: 15.86 kB / 1.066 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001019/0.3939, allocations: 11.88 kB / 1.066 GB, free: 13.05 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006233/0.3945, allocations: 130.8 kB / 1.066 GB, free: 12.93 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0002057/0.3947, allocations: 135.8 kB / 1.066 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001296/0.3948, allocations: 20.17 kB / 1.066 GB, free: 12.77 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000141/0.395, allocations: 51.89 kB / 1.066 GB, free: 12.72 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 9.73e-05/0.3951, allocations: 43.83 kB / 1.066 GB, free: 12.68 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 3.392e-05/0.3951, allocations: 8 kB / 1.066 GB, free: 12.67 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 8.714e-05/0.3952, allocations: 27.98 kB / 1.067 GB, free: 12.64 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.744e-05/0.3953, allocations: 11.98 kB / 1.067 GB, free: 12.63 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 8.124e-05/0.3953, allocations: 55.77 kB / 1.067 GB, free: 12.58 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0002313/0.3956, allocations: 115.7 kB / 1.067 GB, free: 12.46 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.3956, allocations: 0 / 1.067 GB, free: 12.46 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.984e-06/0.3956, allocations: 0 / 1.067 GB, free: 12.46 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 7.845e-06/0.3956, allocations: 0 / 1.067 GB, free: 12.46 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0007085/0.3963, allocations: 417.2 kB / 1.067 GB, free: 12 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/0.3964, allocations: 15.97 kB / 1.067 GB, free: 11.99 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.446e-05/0.3964, allocations: 8.844 kB / 1.067 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001492/0.3966, allocations: 180.2 kB / 1.067 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.705e-05/0.3966, allocations: 4.375 kB / 1.067 GB, free: 11.76 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.138e-05/0.3967, allocations: 12.38 kB / 1.067 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002323/0.3969, allocations: 66.22 kB / 1.067 GB, free: 11.68 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.3969, allocations: 7.938 kB / 1.067 GB, free: 11.67 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.731e-05/0.3969, allocations: 3.984 kB / 1.067 GB, free: 11.67 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.397, allocations: 0 / 1.067 GB, free: 11.67 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002122/0.3972, allocations: 51.89 kB / 1.067 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006242/0.3978, allocations: 340.6 kB / 1.068 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001831/0.398, allocations: 62.58 kB / 1.068 GB, free: 11.16 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001082/0.3981, allocations: 36.95 kB / 1.068 GB, free: 11.12 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.358e-05/0.3982, allocations: 0 / 1.068 GB, free: 11.12 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003011/0.3985, allocations: 95.33 kB / 1.068 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=8): time 1.433e-06/0.3985, allocations: 0 / 1.068 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of matching and sorting (n=8): time 0.0004951/0.399, allocations: 149.5 kB / 1.068 GB, free: 10.87 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.371e-05/0.399, allocations: 55.41 kB / 1.068 GB, free: 10.8 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001041/0.3991, allocations: 121.8 kB / 1.068 GB, free: 10.67 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.805e-05/0.3992, allocations: 25.7 kB / 1.068 GB, free: 10.64 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 7.475e-05/0.3993, allocations: 104 kB / 1.068 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.881e-05/0.3993, allocations: 19.72 kB / 1.068 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.948e-05/0.3994, allocations: 37.7 kB / 1.068 GB, free: 10.47 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001624/0.3996, allocations: 326.8 kB / 1.069 GB, free: 10.14 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001673/0.3997, allocations: 51.97 kB / 1.069 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001818/0.3999, allocations: 85.11 kB / 1.069 GB, free: 9.992 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003243/0.4003, allocations: 162.7 kB / 1.069 GB, free: 9.809 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.4003, allocations: 8 kB / 1.069 GB, free: 9.801 MB / 0.8419 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004876/0.4008, allocations: 207.2 kB / 1.069 GB, free: 9.586 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 4.383e-05/0.4008, allocations: 41.64 kB / 1.069 GB, free: 9.539 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.4008, allocations: 4 kB / 1.069 GB, free: 9.535 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/0.4009, allocations: 0 / 1.069 GB, free: 9.535 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001119/0.401, allocations: 15.98 kB / 1.069 GB, free: 9.52 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.634e-06/0.401, allocations: 0 / 1.069 GB, free: 9.52 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002373/0.4012, allocations: 43.86 kB / 1.069 GB, free: 9.477 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.525e-05/0.4013, allocations: 7.984 kB / 1.069 GB, free: 9.469 MB / 0.8419 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.0001157/0.4014, allocations: 131.9 kB / 1.069 GB, free: 9.332 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.954e-05/0.4014, allocations: 7.906 kB / 1.069 GB, free: 9.324 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003328/0.4018, allocations: 126 kB / 1.07 GB, free: 9.195 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.4018, allocations: 0 / 1.07 GB, free: 9.195 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.4018, allocations: 0 / 1.07 GB, free: 9.195 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.636e-06/0.4018, allocations: 0 / 1.07 GB, free: 9.195 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004741/0.4023, allocations: 382.4 kB / 1.07 GB, free: 8.766 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.4023, allocations: 0 / 1.07 GB, free: 8.766 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.23e-05/0.4024, allocations: 11.98 kB / 1.07 GB, free: 8.754 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.4024, allocations: 0 / 1.07 GB, free: 8.754 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.769e-06/0.4024, allocations: 0 / 1.07 GB, free: 8.754 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.4024, allocations: 0 / 1.07 GB, free: 8.754 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.4024, allocations: 3.984 kB / 1.07 GB, free: 8.75 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003209/0.4027, allocations: 219.4 kB / 1.07 GB, free: 8.52 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.643e-05/0.4028, allocations: 85.03 kB / 1.07 GB, free: 8.418 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.023e-05/0.4028, allocations: 8 kB / 1.07 GB, free: 8.41 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.717e-05/0.4029, allocations: 7.984 kB / 1.07 GB, free: 8.402 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.533e-05/0.403, allocations: 3.938 kB / 1.07 GB, free: 8.398 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.327e-06/0.403, allocations: 4 kB / 1.07 GB, free: 8.395 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 5.886e-05/0.403, allocations: 95.27 kB / 1.07 GB, free: 8.301 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.11e-07/0.403, allocations: 0 / 1.07 GB, free: 8.301 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003066/0.4033, allocations: 27.91 kB / 1.07 GB, free: 8.273 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 ($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.0001831/0.4035, allocations: 115.6 kB / 1.071 GB, free: 8.152 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004214/0.404, allocations: 183.3 kB / 1.071 GB, free: 7.961 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.404, allocations: 320 / 1.071 GB, free: 7.961 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001343/0.4041, allocations: 51.91 kB / 1.071 GB, free: 7.91 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002803/0.4044, allocations: 4 kB / 1.071 GB, free: 7.906 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004146/0.4048, allocations: 200.7 kB / 1.071 GB, free: 7.68 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002707/0.4051, allocations: 0.6885 MB / 1.072 GB, free: 6.965 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.139e-05/0.4052, allocations: 15.44 kB / 1.072 GB, free: 6.949 MB / 0.8419 GB Notification: Performance of SimCode: time 2.3e-07/0.4052, allocations: 0 / 1.072 GB, free: 6.949 MB / 0.8419 GB Notification: Performance of Templates: time 0.003172/0.4083, allocations: 1.291 MB / 1.073 GB, free: 5.676 MB / 0.8419 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