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.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.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.001108/0.001108, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.0118/0.0118, allocations: 169.1 kB / 16.26 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.552/1.552, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.871/2.871, allocations: 462.7 MB / 0.7364 GB, free: 304 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003997/0.0003995, allocations: 10.94 kB / 0.9028 GB, free: 36.67 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3911/0.3915, allocations: 159.6 MB / 1.059 GB, free: 5.492 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001071/0.3926, allocations: 399.1 kB / 1.059 GB, free: 5.105 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001718/0.3944, allocations: 1.049 MB / 1.06 GB, free: 4.043 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.24e-05/0.3944, allocations: 0 / 1.06 GB, free: 4.043 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.433e-05/0.3945, allocations: 7.875 kB / 1.06 GB, free: 4.035 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.995e-05/0.3946, allocations: 0 / 1.06 GB, free: 4.035 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003125/0.3949, allocations: 39.91 kB / 1.06 GB, free: 3.996 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.428e-05/0.395, allocations: 43.91 kB / 1.06 GB, free: 3.953 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001216/0.3951, allocations: 15.88 kB / 1.06 GB, free: 3.938 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.186e-05/0.3952, allocations: 15.92 kB / 1.06 GB, free: 3.922 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.717e-05/0.3953, allocations: 23.91 kB / 1.06 GB, free: 3.898 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.503e-05/0.3953, allocations: 0 / 1.06 GB, free: 3.898 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.598e-05/0.3954, allocations: 15.98 kB / 1.06 GB, free: 3.883 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.459e-05/0.3955, allocations: 7.984 kB / 1.06 GB, free: 3.875 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.544e-05/0.3955, allocations: 45.56 kB / 1.06 GB, free: 3.824 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001654/0.3957, allocations: 51.84 kB / 1.06 GB, free: 3.773 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.3957, allocations: 4 kB / 1.06 GB, free: 3.77 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.906e-06/0.3957, allocations: 0 / 1.06 GB, free: 3.77 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.332e-06/0.3957, allocations: 0 / 1.06 GB, free: 3.77 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.0008717/0.3966, allocations: 367.6 kB / 1.061 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.918e-05/0.3967, allocations: 8.031 kB / 1.061 GB, free: 3.352 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.872e-05/0.3968, allocations: 4.938 kB / 1.061 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001976/0.397, allocations: 168.4 kB / 1.061 GB, free: 3.145 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.563e-05/0.397, allocations: 384 / 1.061 GB, free: 3.145 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.003e-05/0.397, allocations: 12.31 kB / 1.061 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002839/0.3973, allocations: 62.23 kB / 1.061 GB, free: 3.066 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.524e-05/0.3974, allocations: 192 / 1.061 GB, free: 3.066 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.299e-05/0.3974, allocations: 7.938 kB / 1.061 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.314e-05/0.3974, allocations: 7.984 kB / 1.061 GB, free: 3.051 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002346/0.3976, allocations: 47.95 kB / 1.061 GB, free: 3.004 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007811/0.3984, allocations: 284.7 kB / 1.061 GB, free: 2.676 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002472/0.3987, allocations: 66.42 kB / 1.061 GB, free: 2.602 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001223/0.3988, allocations: 32.97 kB / 1.061 GB, free: 2.566 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 4.933e-05/0.3989, allocations: 7.984 kB / 1.061 GB, free: 2.559 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003245/0.3992, allocations: 75.39 kB / 1.061 GB, free: 2.473 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=6): time 4.308e-06/0.3992, allocations: 0 / 1.061 GB, free: 2.473 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0005754/0.3998, allocations: 141.5 kB / 1.062 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.799e-05/0.3999, allocations: 51.41 kB / 1.062 GB, free: 2.266 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001279/0.4, allocations: 109.8 kB / 1.062 GB, free: 2.148 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.015e-05/0.4001, allocations: 29.7 kB / 1.062 GB, free: 2.113 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.03e-05/0.4002, allocations: 84.14 kB / 1.062 GB, free: 2.027 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.428e-05/0.4002, allocations: 19.8 kB / 1.062 GB, free: 2.008 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.433e-05/0.4003, allocations: 13.72 kB / 1.062 GB, free: 1.988 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001745/0.4004, allocations: 318.8 kB / 1.062 GB, free: 1.668 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001151/0.4006, allocations: 27.97 kB / 1.062 GB, free: 1.641 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001436/0.4007, allocations: 55.41 kB / 1.062 GB, free: 1.574 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002603/0.401, allocations: 95.27 kB / 1.062 GB, free: 1.469 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.401, allocations: 4 kB / 1.062 GB, free: 1.465 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003278/0.4013, allocations: 109.6 kB / 1.062 GB, free: 1.352 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.617e-05/0.4014, allocations: 4 kB / 1.062 GB, free: 1.348 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.819e-06/0.4014, allocations: 8.031 kB / 1.062 GB, free: 1.34 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.38e-05/0.4014, allocations: 4 kB / 1.062 GB, free: 1.336 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001467/0.4016, allocations: 19.92 kB / 1.062 GB, free: 1.316 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.191e-05/0.4016, allocations: 8.125 kB / 1.063 GB, free: 1.309 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.483e-05/0.4017, allocations: 8.5 kB / 1.063 GB, free: 1.301 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.263e-05/0.4017, allocations: 0 / 1.063 GB, free: 1.301 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 0.0001833/0.4019, allocations: 130.4 kB / 1.063 GB, free: 1.168 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.262e-05/0.4019, allocations: 11.89 kB / 1.063 GB, free: 1.156 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003889/0.4023, allocations: 118 kB / 1.063 GB, free: 1.035 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-06/0.4024, allocations: 3.984 kB / 1.063 GB, free: 1.031 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.336e-06/0.4024, allocations: 0 / 1.063 GB, free: 1.031 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.604e-06/0.4024, allocations: 4 kB / 1.063 GB, free: 1.027 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006618/0.4031, allocations: 362.6 kB / 1.063 GB, free: 0.6172 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.873e-06/0.4031, allocations: 0 / 1.063 GB, free: 0.6172 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.367e-05/0.4032, allocations: 15.94 kB / 1.063 GB, free: 0.6016 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.244e-06/0.4032, allocations: 7.984 kB / 1.063 GB, free: 0.5938 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.302e-05/0.4032, allocations: 0 / 1.063 GB, free: 0.5938 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.4032, allocations: 0 / 1.063 GB, free: 0.5938 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.4032, allocations: 0 / 1.063 GB, free: 0.5938 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004/0.4036, allocations: 207.4 kB / 1.063 GB, free: 384 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 7.193e-05/0.4037, allocations: 81.09 kB / 1.063 GB, free: 284 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.704e-05/0.4037, allocations: 8 kB / 1.063 GB, free: 276 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001023/0.4038, allocations: 15.92 kB / 1.063 GB, free: 260 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.376e-05/0.4039, allocations: 0 / 1.063 GB, free: 260 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.345e-05/0.4039, allocations: 7.938 kB / 1.063 GB, free: 252 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 8.186e-05/0.404, allocations: 87.27 kB / 1.064 GB, free: 164 kB / 0.8106 GB Notification: Performance of sort global known variables: time 1.31e-07/0.404, allocations: 4 kB / 1.064 GB, free: 160 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000286/0.4043, allocations: 16 kB / 1.064 GB, free: 144 kB / 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: 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.0002438/0.4046, allocations: 99.19 kB / 1.064 GB, free: 36 kB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003163/0.4049, allocations: 79.94 kB / 1.064 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 5.801e-06/0.4049, allocations: 0 / 1.064 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001257/0.4051, allocations: 36.3 kB / 1.064 GB, free: 15.92 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003004/0.4054, allocations: 11.98 kB / 1.064 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004759/0.4059, allocations: 150.8 kB / 1.064 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003569/0.4062, allocations: 0.6828 MB / 1.065 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.582e-05/0.4063, allocations: 8.062 kB / 1.065 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.077e-05/0.4063, allocations: 11.44 kB / 1.065 GB, free: 15 MB / 0.8262 GB Notification: Performance of SimCode: time 6.01e-07/0.4063, allocations: 0 / 1.065 GB, free: 15 MB / 0.8262 GB Notification: Performance of Templates: time 0.004342/0.4107, allocations: 0.6958 MB / 1.065 GB, free: 14.32 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/jenkins/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