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.009222/0.009222, allocations: 101.5 kB / 15.88 MB, free: 5.867 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.001848/0.001848, allocations: 194.4 kB / 16.79 MB, free: 5.809 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.442/1.442, allocations: 222.9 MB / 240.5 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.709/2.709, allocations: 461.9 MB / 0.7348 GB, free: 14.23 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001325/0.001325, allocations: 67.94 kB / 0.8991 GB, free: 36.99 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3285/0.3299, allocations: 157.4 MB / 1.053 GB, free: 8.297 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002326/0.3322, allocations: 0.7209 MB / 1.053 GB, free: 7.574 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001563/0.3338, allocations: 1.065 MB / 1.055 GB, free: 6.496 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.31e-05/0.3339, allocations: 0 / 1.055 GB, free: 6.496 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.241e-05/0.3339, allocations: 3.938 kB / 1.055 GB, free: 6.492 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.49e-05/0.3341, allocations: 3.984 kB / 1.055 GB, free: 6.488 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003023/0.3344, allocations: 31.92 kB / 1.055 GB, free: 6.457 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.759e-05/0.3345, allocations: 43.91 kB / 1.055 GB, free: 6.414 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001037/0.3346, allocations: 11.98 kB / 1.055 GB, free: 6.402 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.046e-05/0.3347, allocations: 19.86 kB / 1.055 GB, free: 6.383 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.365e-05/0.3348, allocations: 31.91 kB / 1.055 GB, free: 6.352 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.535e-05/0.3348, allocations: 0 / 1.055 GB, free: 6.352 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.398e-05/0.3349, allocations: 8 kB / 1.055 GB, free: 6.344 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.753e-05/0.3349, allocations: 15.92 kB / 1.055 GB, free: 6.328 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.994e-05/0.3349, allocations: 19.91 kB / 1.055 GB, free: 6.309 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001204/0.3351, allocations: 39.94 kB / 1.055 GB, free: 6.27 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.3351, allocations: 0 / 1.055 GB, free: 6.27 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.11e-07/0.3351, allocations: 0 / 1.055 GB, free: 6.27 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.469e-06/0.3351, allocations: 0 / 1.055 GB, free: 6.27 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.0007273/0.3358, allocations: 363.6 kB / 1.055 GB, free: 5.863 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.862e-05/0.3359, allocations: 8.031 kB / 1.055 GB, free: 5.855 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.449e-05/0.3359, allocations: 12.92 kB / 1.055 GB, free: 5.844 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001194/0.3361, allocations: 164.3 kB / 1.055 GB, free: 5.645 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.62e-05/0.3361, allocations: 4.375 kB / 1.055 GB, free: 5.641 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.623e-05/0.3361, allocations: 384 / 1.055 GB, free: 5.641 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002193/0.3363, allocations: 74.14 kB / 1.055 GB, free: 5.562 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.3363, allocations: 4.188 kB / 1.055 GB, free: 5.559 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.227e-05/0.3364, allocations: 3.938 kB / 1.055 GB, free: 5.555 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.3364, allocations: 0 / 1.055 GB, free: 5.555 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000186/0.3366, allocations: 43.95 kB / 1.055 GB, free: 5.512 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006938/0.3373, allocations: 272.8 kB / 1.056 GB, free: 5.195 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001885/0.3375, allocations: 70.41 kB / 1.056 GB, free: 5.117 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001069/0.3376, allocations: 32.95 kB / 1.056 GB, free: 5.082 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.465e-05/0.3376, allocations: 0 / 1.056 GB, free: 5.082 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002386/0.3379, allocations: 71.38 kB / 1.056 GB, free: 5 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=6): time 1.773e-06/0.3379, allocations: 0 / 1.056 GB, free: 5 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0004507/0.3383, allocations: 117.5 kB / 1.056 GB, free: 4.879 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.541e-05/0.3384, allocations: 67.33 kB / 1.056 GB, free: 4.801 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.472e-05/0.3385, allocations: 101.9 kB / 1.056 GB, free: 4.691 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.532e-05/0.3385, allocations: 25.7 kB / 1.056 GB, free: 4.66 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.519e-05/0.3386, allocations: 88.12 kB / 1.056 GB, free: 4.57 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.203e-05/0.3386, allocations: 15.81 kB / 1.056 GB, free: 4.555 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.628e-05/0.3386, allocations: 29.64 kB / 1.056 GB, free: 4.52 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001177/0.3388, allocations: 318.8 kB / 1.057 GB, free: 4.199 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000105/0.3389, allocations: 19.98 kB / 1.057 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000119/0.339, allocations: 51.47 kB / 1.057 GB, free: 4.117 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002183/0.3392, allocations: 87.27 kB / 1.057 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.3392, allocations: 0 / 1.057 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000276/0.3395, allocations: 101.6 kB / 1.057 GB, free: 3.914 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.3395, allocations: 8 kB / 1.057 GB, free: 3.906 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.3396, allocations: 4.594 kB / 1.057 GB, free: 3.902 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.3396, allocations: 0 / 1.057 GB, free: 3.902 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001174/0.3397, allocations: 19.92 kB / 1.057 GB, free: 3.883 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.792e-06/0.3397, allocations: 0 / 1.057 GB, free: 3.883 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.509e-05/0.3398, allocations: 15.89 kB / 1.057 GB, free: 3.867 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.02e-05/0.3398, allocations: 4 kB / 1.057 GB, free: 3.863 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.0001572/0.34, allocations: 121.7 kB / 1.057 GB, free: 3.734 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.463e-05/0.34, allocations: 4 kB / 1.057 GB, free: 3.73 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002921/0.3403, allocations: 106 kB / 1.057 GB, free: 3.621 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.3403, allocations: 4 kB / 1.057 GB, free: 3.617 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.3403, allocations: 0 / 1.057 GB, free: 3.617 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.766e-06/0.3403, allocations: 0 / 1.057 GB, free: 3.617 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006416/0.341, allocations: 346.5 kB / 1.057 GB, free: 3.223 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.341, allocations: 0 / 1.057 GB, free: 3.223 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.823e-05/0.3411, allocations: 19.92 kB / 1.057 GB, free: 3.203 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.3411, allocations: 0 / 1.057 GB, free: 3.203 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.135e-05/0.3411, allocations: 7.938 kB / 1.057 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.3411, allocations: 0 / 1.057 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.3411, allocations: 4 kB / 1.057 GB, free: 3.191 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002904/0.3414, allocations: 191.3 kB / 1.058 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.439e-05/0.3414, allocations: 85.11 kB / 1.058 GB, free: 2.887 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.895e-05/0.3415, allocations: 4 kB / 1.058 GB, free: 2.883 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001039/0.3416, allocations: 7.984 kB / 1.058 GB, free: 2.875 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.337e-05/0.3416, allocations: 3.984 kB / 1.058 GB, free: 2.871 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.716e-05/0.3417, allocations: 7.938 kB / 1.058 GB, free: 2.863 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.773e-05/0.3417, allocations: 87.47 kB / 1.058 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3417, allocations: 0 / 1.058 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002572/0.342, allocations: 19.91 kB / 1.058 GB, free: 2.758 MB / 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.0001635/0.3421, allocations: 111.2 kB / 1.058 GB, free: 2.641 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002593/0.3424, allocations: 59.95 kB / 1.058 GB, free: 2.582 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.3424, allocations: 3.938 kB / 1.058 GB, free: 2.578 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001146/0.3425, allocations: 35.91 kB / 1.058 GB, free: 2.543 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002627/0.3428, allocations: 4.141 kB / 1.058 GB, free: 2.539 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003662/0.3432, allocations: 169.8 kB / 1.058 GB, free: 2.34 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002494/0.3435, allocations: 0.6809 MB / 1.059 GB, free: 1.633 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.253e-05/0.3435, allocations: 11.44 kB / 1.059 GB, free: 1.621 MB / 0.8106 GB Notification: Performance of SimCode: time 2.31e-07/0.3435, allocations: 3.938 kB / 1.059 GB, free: 1.617 MB / 0.8106 GB Notification: Performance of Templates: time 0.002532/0.346, allocations: 0.8535 MB / 1.06 GB, free: 0.7734 MB / 0.8106 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