Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.Discrete.Validation.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001744/0.001744, allocations: 108.6 kB / 15.99 MB, free: 6.348 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.001967/0.001967, allocations: 189.2 kB / 16.91 MB, free: 6.184 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.304/1.304, allocations: 222.9 MB / 240.6 MB, free: 15.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.546/2.546, allocations: 469.8 MB / 0.7427 GB, free: 3.613 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001791/0.001791, allocations: 58.89 kB / 0.9087 GB, free: 14.23 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2835/0.2853, allocations: 159.1 MB / 1.064 GB, free: 15.11 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001852/0.2872, allocations: 0.7247 MB / 1.065 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001243/0.2884, allocations: 1.061 MB / 1.066 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.785e-05/0.2885, allocations: 4 kB / 1.066 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.002e-05/0.2885, allocations: 0 / 1.066 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 5.553e-05/0.2886, allocations: 3.938 kB / 1.066 GB, free: 13.29 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002382/0.2888, allocations: 27.97 kB / 1.066 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 8.453e-05/0.2889, allocations: 51.84 kB / 1.066 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 7.504e-05/0.289, allocations: 8 kB / 1.066 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 5.833e-05/0.2891, allocations: 23.92 kB / 1.066 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 4.717e-05/0.2891, allocations: 19.92 kB / 1.066 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.445e-05/0.2891, allocations: 7.984 kB / 1.066 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 5.519e-05/0.2892, allocations: 15.98 kB / 1.066 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.365e-05/0.2892, allocations: 11.98 kB / 1.066 GB, free: 13.13 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 3.273e-05/0.2893, allocations: 23.86 kB / 1.066 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 9.286e-05/0.2893, allocations: 39.92 kB / 1.066 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.2894, allocations: 0 / 1.066 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.263e-06/0.2894, allocations: 0 / 1.066 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.508e-06/0.2894, allocations: 0 / 1.066 GB, free: 13.07 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005862/0.29, allocations: 363.7 kB / 1.066 GB, free: 12.66 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.755e-05/0.29, allocations: 8.031 kB / 1.066 GB, free: 12.65 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.703e-05/0.29, allocations: 4.938 kB / 1.066 GB, free: 12.65 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001525/0.2902, allocations: 180.2 kB / 1.067 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.408e-05/0.2902, allocations: 384 / 1.067 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.214e-05/0.2903, allocations: 8.375 kB / 1.067 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002103/0.2905, allocations: 58.22 kB / 1.067 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/0.2905, allocations: 4.188 kB / 1.067 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.588e-05/0.2905, allocations: 11.88 kB / 1.067 GB, free: 12.35 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.187e-06/0.2905, allocations: 0 / 1.067 GB, free: 12.35 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001907/0.2907, allocations: 39.95 kB / 1.067 GB, free: 12.31 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004975/0.2912, allocations: 280.8 kB / 1.067 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001658/0.2914, allocations: 62.48 kB / 1.067 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000103/0.2915, allocations: 40.89 kB / 1.067 GB, free: 11.87 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.375e-05/0.2915, allocations: 0 / 1.067 GB, free: 11.87 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002105/0.2918, allocations: 75.44 kB / 1.067 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=6): time 1.723e-06/0.2918, allocations: 4 kB / 1.067 GB, free: 11.78 MB / 0.8419 GB Notification: Performance of matching and sorting (n=6): time 0.0004088/0.2922, allocations: 121.5 kB / 1.067 GB, free: 11.66 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.917e-05/0.2922, allocations: 55.39 kB / 1.067 GB, free: 11.59 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.582e-05/0.2923, allocations: 101.9 kB / 1.067 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.878e-05/0.2924, allocations: 25.7 kB / 1.067 GB, free: 11.45 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 5.832e-05/0.2924, allocations: 88.12 kB / 1.068 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.294e-05/0.2925, allocations: 15.81 kB / 1.068 GB, free: 11.34 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.215e-05/0.2925, allocations: 25.72 kB / 1.068 GB, free: 11.31 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001294/0.2926, allocations: 314.8 kB / 1.068 GB, free: 11 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.489e-05/0.2927, allocations: 19.98 kB / 1.068 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000111/0.2929, allocations: 51.41 kB / 1.068 GB, free: 10.91 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002113/0.2931, allocations: 87.27 kB / 1.068 GB, free: 10.82 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.2931, allocations: 0 / 1.068 GB, free: 10.82 MB / 0.8419 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002602/0.2933, allocations: 109.4 kB / 1.068 GB, free: 10.7 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.2934, allocations: 8.094 kB / 1.068 GB, free: 10.7 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.2934, allocations: 0 / 1.068 GB, free: 10.7 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.526e-05/0.2934, allocations: 4 kB / 1.068 GB, free: 10.69 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001077/0.2935, allocations: 11.98 kB / 1.068 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.411e-06/0.2935, allocations: 0 / 1.068 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.047e-05/0.2936, allocations: 15.98 kB / 1.068 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.067e-06/0.2936, allocations: 0 / 1.068 GB, free: 10.66 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 (sampler1.firstTrigger,$PRE.sampler1.firstTrigger,sampler1.sampleTrigger,$whenCondition1,sampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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 9.533e-05/0.2937, allocations: 130.8 kB / 1.068 GB, free: 10.53 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.288e-05/0.2937, allocations: 8 kB / 1.068 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002919/0.294, allocations: 102 kB / 1.068 GB, free: 10.42 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.294, allocations: 0 / 1.068 GB, free: 10.42 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.2941, allocations: 0.5625 kB / 1.068 GB, free: 10.42 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.2941, allocations: 0 / 1.068 GB, free: 10.42 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004456/0.2945, allocations: 358.4 kB / 1.069 GB, free: 10.01 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.222e-06/0.2945, allocations: 7.984 kB / 1.069 GB, free: 10 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.729e-05/0.2946, allocations: 11.98 kB / 1.069 GB, free: 9.992 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.013e-06/0.2946, allocations: 0 / 1.069 GB, free: 9.992 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.446e-06/0.2946, allocations: 0 / 1.069 GB, free: 9.992 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.2946, allocations: 4 kB / 1.069 GB, free: 9.988 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2946, allocations: 3.938 kB / 1.069 GB, free: 9.984 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000292/0.2949, allocations: 199.4 kB / 1.069 GB, free: 9.773 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.48e-05/0.295, allocations: 84.95 kB / 1.069 GB, free: 9.672 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.69e-05/0.295, allocations: 4 kB / 1.069 GB, free: 9.668 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.694e-05/0.2951, allocations: 7.984 kB / 1.069 GB, free: 9.66 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.871e-05/0.2952, allocations: 8 kB / 1.069 GB, free: 9.652 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.476e-05/0.2952, allocations: 7.922 kB / 1.069 GB, free: 9.645 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 4.257e-05/0.2952, allocations: 79.28 kB / 1.069 GB, free: 9.566 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2952, allocations: 0 / 1.069 GB, free: 9.566 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002371/0.2955, allocations: 20 kB / 1.069 GB, free: 9.547 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: 4 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * 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.0001425/0.2956, allocations: 107.2 kB / 1.069 GB, free: 9.434 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002461/0.2959, allocations: 63.89 kB / 1.069 GB, free: 9.371 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.2959, allocations: 0 / 1.069 GB, free: 9.371 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001105/0.296, allocations: 35.95 kB / 1.069 GB, free: 9.336 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002484/0.2963, allocations: 12.19 kB / 1.069 GB, free: 9.324 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003186/0.2966, allocations: 167.7 kB / 1.07 GB, free: 9.129 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002864/0.2969, allocations: 0.6807 MB / 1.07 GB, free: 8.422 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.066e-05/0.2969, allocations: 11.44 kB / 1.07 GB, free: 8.41 MB / 0.8419 GB Notification: Performance of SimCode: time 2.51e-07/0.2969, allocations: 0 / 1.07 GB, free: 8.41 MB / 0.8419 GB Notification: Performance of Templates: time 0.002472/0.2994, allocations: 0.8602 MB / 1.071 GB, free: 7.555 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.makefile (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches