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.006404/0.006404, allocations: 103.4 kB / 15.73 MB, free: 6.047 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.001271/0.001271, allocations: 188.1 kB / 16.67 MB, free: 5.969 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.521/1.521, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.727/2.727, allocations: 461.9 MB / 0.7347 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001465, allocations: 67.88 kB / 1.054 GB, free: 7.676 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.261/1.262, allocations: 157.4 MB / 1.208 GB, free: 13.58 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001984/1.264, allocations: 0.6633 MB / 1.208 GB, free: 12.93 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001487/1.266, allocations: 1.053 MB / 1.209 GB, free: 11.86 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.068e-05/1.266, allocations: 4 kB / 1.209 GB, free: 11.86 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.905e-05/1.266, allocations: 3.938 kB / 1.209 GB, free: 11.85 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 8.481e-05/1.266, allocations: 7.922 kB / 1.209 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003946/1.267, allocations: 35.84 kB / 1.209 GB, free: 11.81 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001278/1.267, allocations: 55.84 kB / 1.209 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001341/1.267, allocations: 7.984 kB / 1.21 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 9.459e-05/1.267, allocations: 23.92 kB / 1.21 GB, free: 11.72 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.368e-05/1.267, allocations: 23.91 kB / 1.21 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.954e-05/1.267, allocations: 4 kB / 1.21 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 7.246e-05/1.267, allocations: 15.94 kB / 1.21 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.055e-05/1.267, allocations: 11.98 kB / 1.21 GB, free: 11.67 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.862e-05/1.267, allocations: 23.84 kB / 1.21 GB, free: 11.64 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001583/1.267, allocations: 47.86 kB / 1.21 GB, free: 11.6 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 7.895e-06/1.267, allocations: 8 kB / 1.21 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.986e-06/1.267, allocations: 0 / 1.21 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 8.325e-06/1.267, allocations: 0 / 1.21 GB, free: 11.59 MB / 0.9356 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.0007506/1.268, allocations: 363.2 kB / 1.21 GB, free: 11.19 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.684e-05/1.268, allocations: 11.97 kB / 1.21 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.466e-05/1.268, allocations: 8.844 kB / 1.21 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001628/1.268, allocations: 168.4 kB / 1.21 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.445e-05/1.268, allocations: 8.375 kB / 1.21 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.621e-05/1.268, allocations: 384 / 1.21 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002287/1.269, allocations: 66.17 kB / 1.21 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/1.269, allocations: 192 / 1.21 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.865e-05/1.269, allocations: 7.922 kB / 1.21 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/1.269, allocations: 0 / 1.21 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002067/1.269, allocations: 39.97 kB / 1.21 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000549/1.27, allocations: 274.7 kB / 1.211 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001708/1.27, allocations: 62.42 kB / 1.211 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001063/1.27, allocations: 32.95 kB / 1.211 GB, free: 10.42 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.332e-05/1.27, allocations: 7.938 kB / 1.211 GB, free: 10.41 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002202/1.27, allocations: 67.39 kB / 1.211 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=6): time 1.713e-06/1.27, allocations: 0 / 1.211 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of matching and sorting (n=6): time 0.0004637/1.271, allocations: 125.5 kB / 1.211 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.456e-05/1.271, allocations: 55.41 kB / 1.211 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.856e-05/1.271, allocations: 106.1 kB / 1.211 GB, free: 10.02 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.972e-05/1.271, allocations: 25.7 kB / 1.211 GB, free: 9.992 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 6.988e-05/1.271, allocations: 92.12 kB / 1.211 GB, free: 9.898 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.657e-05/1.271, allocations: 19.81 kB / 1.211 GB, free: 9.879 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.726e-05/1.271, allocations: 21.72 kB / 1.211 GB, free: 9.852 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.000161/1.271, allocations: 318.8 kB / 1.211 GB, free: 9.531 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.48e-05/1.271, allocations: 20.23 kB / 1.211 GB, free: 9.512 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001197/1.271, allocations: 55.41 kB / 1.212 GB, free: 9.445 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002085/1.272, allocations: 87.27 kB / 1.212 GB, free: 9.348 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/1.272, allocations: 0 / 1.212 GB, free: 9.348 MB / 0.9356 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002543/1.272, allocations: 105.5 kB / 1.212 GB, free: 9.238 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/1.272, allocations: 8 kB / 1.212 GB, free: 9.23 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/1.272, allocations: 0 / 1.212 GB, free: 9.23 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/1.272, allocations: 0 / 1.212 GB, free: 9.23 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001175/1.272, allocations: 19.92 kB / 1.212 GB, free: 9.211 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/1.272, allocations: 0 / 1.212 GB, free: 9.211 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.194e-05/1.272, allocations: 4.047 kB / 1.212 GB, free: 9.207 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.601e-05/1.272, allocations: 15.97 kB / 1.212 GB, free: 9.191 MB / 0.9356 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.113e-05/1.272, allocations: 121.9 kB / 1.212 GB, free: 9.062 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.219e-05/1.272, allocations: 4 kB / 1.212 GB, free: 9.059 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002845/1.272, allocations: 102 kB / 1.212 GB, free: 8.949 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/1.273, allocations: 4 kB / 1.212 GB, free: 8.945 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/1.273, allocations: 0 / 1.212 GB, free: 8.945 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/1.273, allocations: 0 / 1.212 GB, free: 8.945 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004443/1.273, allocations: 358.3 kB / 1.212 GB, free: 8.539 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/1.273, allocations: 0 / 1.212 GB, free: 8.539 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.072e-05/1.273, allocations: 15.92 kB / 1.212 GB, free: 8.523 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/1.273, allocations: 0 / 1.212 GB, free: 8.523 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.737e-06/1.273, allocations: 0 / 1.212 GB, free: 8.523 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/1.273, allocations: 0 / 1.212 GB, free: 8.523 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/1.273, allocations: 0 / 1.212 GB, free: 8.523 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002837/1.273, allocations: 203.4 kB / 1.213 GB, free: 8.309 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.892e-05/1.273, allocations: 84.95 kB / 1.213 GB, free: 8.207 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.443e-05/1.273, allocations: 192 / 1.213 GB, free: 8.207 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.837e-05/1.274, allocations: 15.98 kB / 1.213 GB, free: 8.191 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.094e-05/1.274, allocations: 0 / 1.213 GB, free: 8.191 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.812e-05/1.274, allocations: 11.94 kB / 1.213 GB, free: 8.18 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.122e-05/1.274, allocations: 83.27 kB / 1.213 GB, free: 8.098 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.2e-07/1.274, allocations: 0 / 1.213 GB, free: 8.098 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002385/1.274, allocations: 20 kB / 1.213 GB, free: 8.078 MB / 0.9356 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.0001902/1.274, allocations: 103.2 kB / 1.213 GB, free: 7.969 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002678/1.274, allocations: 63.89 kB / 1.213 GB, free: 7.906 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/1.274, allocations: 4 kB / 1.213 GB, free: 7.902 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001141/1.275, allocations: 24.17 kB / 1.213 GB, free: 7.879 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002659/1.275, allocations: 12.14 kB / 1.213 GB, free: 7.867 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004246/1.275, allocations: 138 kB / 1.213 GB, free: 7.707 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003633/1.276, allocations: 0.6846 MB / 1.214 GB, free: 6.996 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.239e-05/1.276, allocations: 4 kB / 1.214 GB, free: 6.992 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.22e-05/1.276, allocations: 11.44 kB / 1.214 GB, free: 6.98 MB / 0.9356 GB Notification: Performance of SimCode: time 3.41e-07/1.276, allocations: 0 / 1.214 GB, free: 6.98 MB / 0.9356 GB Notification: Performance of Templates: time 0.003661/1.279, allocations: 0.8141 MB / 1.215 GB, free: 6.172 MB / 0.9356 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