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.001574/0.001574, 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.001776/0.001776, 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.469/1.469, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.647/2.647, allocations: 469.4 MB / 0.7427 GB, free: 3.68 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001961/0.001961, allocations: 68.38 kB / 0.9088 GB, free: 14.14 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3085/0.3105, allocations: 159.1 MB / 1.064 GB, free: 15.03 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002148/0.3127, allocations: 0.6738 MB / 1.065 GB, free: 14.35 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001449/0.3142, allocations: 1.053 MB / 1.066 GB, free: 13.29 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.996e-05/0.3142, allocations: 0 / 1.066 GB, free: 13.29 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.305e-05/0.3143, allocations: 7.875 kB / 1.066 GB, free: 13.28 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 6.577e-05/0.3144, allocations: 7.922 kB / 1.066 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.000323/0.3147, allocations: 35.91 kB / 1.066 GB, free: 13.23 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.000107/0.3148, allocations: 51.84 kB / 1.066 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001089/0.3149, allocations: 15.98 kB / 1.066 GB, free: 13.17 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 7.549e-05/0.315, allocations: 23.92 kB / 1.066 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 5.341e-05/0.3151, allocations: 15.92 kB / 1.066 GB, free: 13.13 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.492e-05/0.3151, allocations: 4 kB / 1.066 GB, free: 13.12 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 7.438e-05/0.3152, allocations: 23.98 kB / 1.066 GB, free: 13.1 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.321e-05/0.3152, allocations: 11.97 kB / 1.066 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 3.688e-05/0.3153, allocations: 19.88 kB / 1.066 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001297/0.3154, allocations: 51.84 kB / 1.066 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.3154, allocations: 0 / 1.066 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.844e-06/0.3154, allocations: 0 / 1.066 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 9.618e-06/0.3154, allocations: 0 / 1.066 GB, free: 13.02 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.0006238/0.3161, allocations: 371.7 kB / 1.067 GB, free: 12.61 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.3161, allocations: 12.62 kB / 1.067 GB, free: 12.59 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.307e-05/0.3162, allocations: 0.9375 kB / 1.067 GB, free: 12.59 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001258/0.3163, allocations: 172.2 kB / 1.067 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.229e-05/0.3163, allocations: 384 / 1.067 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.625e-05/0.3163, allocations: 8.375 kB / 1.067 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001972/0.3165, allocations: 58.22 kB / 1.067 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.807e-06/0.3165, allocations: 4.188 kB / 1.067 GB, free: 12.31 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.607e-05/0.3166, allocations: 7.938 kB / 1.067 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.3166, allocations: 4 kB / 1.067 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001942/0.3168, allocations: 35.95 kB / 1.067 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004702/0.3173, allocations: 280.8 kB / 1.067 GB, free: 11.94 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001659/0.3174, allocations: 58.48 kB / 1.067 GB, free: 11.88 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001004/0.3175, allocations: 32.97 kB / 1.067 GB, free: 11.84 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.461e-05/0.3176, allocations: 0 / 1.067 GB, free: 11.84 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002111/0.3178, allocations: 71.38 kB / 1.067 GB, free: 11.76 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=6): time 3.176e-06/0.3178, allocations: 4 kB / 1.067 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of matching and sorting (n=6): time 0.0004228/0.3182, allocations: 129.4 kB / 1.067 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.587e-05/0.3183, allocations: 51.41 kB / 1.067 GB, free: 11.56 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.104e-05/0.3184, allocations: 109.9 kB / 1.068 GB, free: 11.44 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.912e-05/0.3184, allocations: 29.7 kB / 1.068 GB, free: 11.41 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 7.274e-05/0.3185, allocations: 88.12 kB / 1.068 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.263e-05/0.3185, allocations: 11.81 kB / 1.068 GB, free: 11.3 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.908e-05/0.3186, allocations: 29.7 kB / 1.068 GB, free: 11.27 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001322/0.3187, allocations: 310.8 kB / 1.068 GB, free: 10.96 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001001/0.3188, allocations: 23.97 kB / 1.068 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001132/0.3189, allocations: 51.91 kB / 1.068 GB, free: 10.87 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002058/0.3192, allocations: 83.28 kB / 1.068 GB, free: 10.78 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.3192, allocations: 0 / 1.068 GB, free: 10.78 MB / 0.8419 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002684/0.3194, allocations: 109.4 kB / 1.068 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.3195, allocations: 8.094 kB / 1.068 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.3195, allocations: 4 kB / 1.068 GB, free: 10.65 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.504e-05/0.3195, allocations: 4 kB / 1.068 GB, free: 10.65 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000104/0.3196, allocations: 11.98 kB / 1.068 GB, free: 10.64 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.747e-06/0.3196, allocations: 4 kB / 1.068 GB, free: 10.63 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.525e-05/0.3197, allocations: 11.98 kB / 1.068 GB, free: 10.62 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.017e-06/0.3197, allocations: 0 / 1.068 GB, free: 10.62 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 8.794e-05/0.3198, allocations: 126.2 kB / 1.068 GB, free: 10.49 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.541e-05/0.3198, allocations: 8 kB / 1.068 GB, free: 10.48 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002958/0.3201, allocations: 102 kB / 1.068 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.3202, allocations: 4.031 kB / 1.068 GB, free: 10.37 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.3202, allocations: 0 / 1.068 GB, free: 10.37 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.3202, allocations: 3.984 kB / 1.069 GB, free: 10.37 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000435/0.3206, allocations: 350.4 kB / 1.069 GB, free: 9.969 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/0.3206, allocations: 11.98 kB / 1.069 GB, free: 9.957 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.631e-05/0.3207, allocations: 4 kB / 1.069 GB, free: 9.953 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.3207, allocations: 0 / 1.069 GB, free: 9.953 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.103e-05/0.3207, allocations: 4 kB / 1.069 GB, free: 9.949 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.3207, allocations: 3.984 kB / 1.069 GB, free: 9.945 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.3207, allocations: 0 / 1.069 GB, free: 9.945 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002912/0.321, allocations: 191.5 kB / 1.069 GB, free: 9.742 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.333e-05/0.3211, allocations: 88.95 kB / 1.069 GB, free: 9.637 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.055e-05/0.3211, allocations: 3.984 kB / 1.069 GB, free: 9.633 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.564e-05/0.3212, allocations: 7.938 kB / 1.069 GB, free: 9.625 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.551e-05/0.3213, allocations: 12.17 kB / 1.069 GB, free: 9.613 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.412e-05/0.3213, allocations: 7.938 kB / 1.069 GB, free: 9.605 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 4.304e-05/0.3213, allocations: 79.28 kB / 1.069 GB, free: 9.527 MB / 0.8419 GB Notification: Performance of sort global known variables: time 5.11e-07/0.3213, allocations: 0 / 1.069 GB, free: 9.527 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002486/0.3216, allocations: 19.98 kB / 1.069 GB, free: 9.508 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.0001596/0.3218, allocations: 107.2 kB / 1.069 GB, free: 9.395 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002583/0.322, allocations: 63.89 kB / 1.069 GB, free: 9.332 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.322, allocations: 0 / 1.069 GB, free: 9.332 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001138/0.3222, allocations: 31.97 kB / 1.069 GB, free: 9.301 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002629/0.3224, allocations: 14.08 kB / 1.069 GB, free: 9.289 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003877/0.3228, allocations: 167.7 kB / 1.07 GB, free: 9.094 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002711/0.3231, allocations: 0.6807 MB / 1.07 GB, free: 8.387 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.073e-05/0.3231, allocations: 11.44 kB / 1.07 GB, free: 8.375 MB / 0.8419 GB Notification: Performance of SimCode: time 6.11e-07/0.3232, allocations: 0 / 1.07 GB, free: 8.375 MB / 0.8419 GB Notification: Performance of Templates: time 0.00239/0.3255, allocations: 0.8606 MB / 1.071 GB, free: 7.52 MB / 0.8419 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