Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.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.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_latest_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_latest_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.001455/0.001455, allocations: 91.77 kB / 16.02 MB, free: 80 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.001814/0.001814, allocations: 176.2 kB / 16.92 MB, free: 6.652 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.472/1.472, allocations: 223.3 MB / 241 MB, free: 5.266 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.773/2.773, allocations: 462.7 MB / 0.7371 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000377/0.0003771, allocations: 8.812 kB / 0.9034 GB, free: 36.44 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3888/0.3892, allocations: 159.6 MB / 1.059 GB, free: 4.957 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001066/0.3904, allocations: 399.2 kB / 1.06 GB, free: 4.57 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001707/0.3921, allocations: 1.049 MB / 1.061 GB, free: 3.508 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.689e-05/0.3922, allocations: 0 / 1.061 GB, free: 3.508 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.132e-05/0.3922, allocations: 0 / 1.061 GB, free: 3.508 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.417e-05/0.3923, allocations: 7.938 kB / 1.061 GB, free: 3.5 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002882/0.3926, allocations: 39.89 kB / 1.061 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.844e-05/0.3927, allocations: 43.86 kB / 1.061 GB, free: 3.418 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001118/0.3928, allocations: 8 kB / 1.061 GB, free: 3.41 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.591e-05/0.3929, allocations: 15.92 kB / 1.061 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.004e-05/0.393, allocations: 23.91 kB / 1.061 GB, free: 3.371 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.036e-05/0.393, allocations: 4 kB / 1.061 GB, free: 3.367 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.039e-05/0.3931, allocations: 15.92 kB / 1.061 GB, free: 3.352 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.325e-05/0.3931, allocations: 7.984 kB / 1.061 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.607e-05/0.3932, allocations: 49.56 kB / 1.061 GB, free: 3.289 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001073/0.3933, allocations: 39.92 kB / 1.061 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.269e-06/0.3933, allocations: 0 / 1.061 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.124e-06/0.3933, allocations: 0 / 1.061 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.509e-06/0.3933, allocations: 0 / 1.061 GB, free: 3.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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006281/0.3939, allocations: 367.6 kB / 1.061 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/0.394, allocations: 12.02 kB / 1.061 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.523e-05/0.394, allocations: 4.938 kB / 1.061 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001561/0.3942, allocations: 160.4 kB / 1.061 GB, free: 2.629 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.477e-05/0.3942, allocations: 4.375 kB / 1.062 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.721e-05/0.3943, allocations: 4.375 kB / 1.062 GB, free: 2.621 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002289/0.3945, allocations: 66.22 kB / 1.062 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.3945, allocations: 192 / 1.062 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.673e-05/0.3945, allocations: 11.94 kB / 1.062 GB, free: 2.539 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.3945, allocations: 0 / 1.062 GB, free: 2.539 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002225/0.3948, allocations: 55.89 kB / 1.062 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005032/0.3953, allocations: 276.8 kB / 1.062 GB, free: 2.164 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001769/0.3955, allocations: 62.48 kB / 1.062 GB, free: 2.094 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001125/0.3956, allocations: 40.95 kB / 1.062 GB, free: 2.051 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.345e-05/0.3956, allocations: 7.938 kB / 1.062 GB, free: 2.043 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002242/0.3959, allocations: 83.31 kB / 1.062 GB, free: 1.949 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=6): time 1.433e-06/0.3959, allocations: 0 / 1.062 GB, free: 1.949 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0004388/0.3963, allocations: 133.6 kB / 1.062 GB, free: 1.812 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.688e-05/0.3964, allocations: 51.41 kB / 1.062 GB, free: 1.75 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.007e-05/0.3965, allocations: 106 kB / 1.062 GB, free: 1.637 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.027e-05/0.3965, allocations: 29.69 kB / 1.062 GB, free: 1.602 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.303e-05/0.3965, allocations: 92.2 kB / 1.062 GB, free: 1.508 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.596e-05/0.3966, allocations: 15.81 kB / 1.062 GB, free: 1.492 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.459e-05/0.3966, allocations: 13.72 kB / 1.063 GB, free: 1.473 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001122/0.3967, allocations: 322.8 kB / 1.063 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000106/0.3968, allocations: 27.98 kB / 1.063 GB, free: 1.121 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001244/0.397, allocations: 55.41 kB / 1.063 GB, free: 1.055 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002182/0.3972, allocations: 95.27 kB / 1.063 GB, free: 0.9492 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.3972, allocations: 0 / 1.063 GB, free: 0.9492 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002916/0.3975, allocations: 113.7 kB / 1.063 GB, free: 0.832 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/0.3975, allocations: 11.94 kB / 1.063 GB, free: 0.8203 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/0.3976, allocations: 4.406 kB / 1.063 GB, free: 0.8164 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.3976, allocations: 0 / 1.063 GB, free: 0.8164 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001156/0.3977, allocations: 19.98 kB / 1.063 GB, free: 0.7969 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.218e-06/0.3977, allocations: 7.922 kB / 1.063 GB, free: 0.7891 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.014e-05/0.3978, allocations: 8 kB / 1.063 GB, free: 0.7812 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.541e-05/0.3978, allocations: 7.984 kB / 1.063 GB, free: 0.7734 MB / 0.8106 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.461e-05/0.3979, allocations: 125.7 kB / 1.063 GB, free: 0.6406 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.496e-05/0.3979, allocations: 3.906 kB / 1.063 GB, free: 0.6367 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003073/0.3982, allocations: 118 kB / 1.063 GB, free: 0.5156 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.3983, allocations: 0 / 1.063 GB, free: 0.5156 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.251e-06/0.3983, allocations: 4 kB / 1.063 GB, free: 0.5117 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.3983, allocations: 0 / 1.063 GB, free: 0.5117 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004934/0.3988, allocations: 362.4 kB / 1.064 GB, free: 104 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.3988, allocations: 0 / 1.064 GB, free: 104 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.368e-05/0.3989, allocations: 15.98 kB / 1.064 GB, free: 88 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.3989, allocations: 0 / 1.064 GB, free: 88 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.485e-06/0.3989, allocations: 0 / 1.064 GB, free: 88 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.3989, allocations: 4 kB / 1.064 GB, free: 84 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.3989, allocations: 0 / 1.064 GB, free: 84 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003302/0.3992, allocations: 219.5 kB / 1.064 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.832e-05/0.3993, allocations: 77.11 kB / 1.064 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.794e-05/0.3993, allocations: 4 kB / 1.064 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001005/0.3994, allocations: 11.98 kB / 1.064 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.045e-05/0.3995, allocations: 4 kB / 1.064 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.537e-05/0.3995, allocations: 3.984 kB / 1.064 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.167e-05/0.3995, allocations: 95.41 kB / 1.064 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3995, allocations: 4 kB / 1.064 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000254/0.3998, allocations: 12 kB / 1.064 GB, free: 15.62 MB / 0.8262 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.0001942/0.4, allocations: 105.2 kB / 1.064 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002804/0.4003, allocations: 75.89 kB / 1.064 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.948e-06/0.4003, allocations: 0 / 1.064 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000124/0.4004, allocations: 35.92 kB / 1.064 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002694/0.4007, allocations: 11.98 kB / 1.064 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003982/0.4011, allocations: 184.5 kB / 1.065 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000274/0.4014, allocations: 0.6848 MB / 1.065 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.249e-05/0.4014, allocations: 11.44 kB / 1.065 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of SimCode: time 5.01e-07/0.4015, allocations: 0 / 1.065 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of Templates: time 0.002859/0.4043, allocations: 0.837 MB / 1.066 GB, free: 13.62 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches