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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007132/0.007133, allocations: 102.2 kB / 15.73 MB, free: 6.477 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.001716/0.001716, allocations: 195.6 kB / 16.67 MB, free: 6.391 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.437/1.437, allocations: 222.9 MB / 240.4 MB, free: 4.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.757/2.757, allocations: 461.9 MB / 0.7348 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001302, allocations: 63.89 kB / 1.054 GB, free: 7.703 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2971/0.2984, allocations: 157.4 MB / 1.207 GB, free: 10.2 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.00199/0.3005, allocations: 0.6591 MB / 1.208 GB, free: 9.535 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001388/0.3019, allocations: 1.053 MB / 1.209 GB, free: 8.469 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.302e-05/0.302, allocations: 4 kB / 1.209 GB, free: 8.465 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.046e-05/0.302, allocations: 3.938 kB / 1.209 GB, free: 8.461 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 7.353e-05/0.3021, allocations: 7.922 kB / 1.209 GB, free: 8.453 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003225/0.3024, allocations: 43.84 kB / 1.209 GB, free: 8.41 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001024/0.3025, allocations: 51.83 kB / 1.209 GB, free: 8.359 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 9.224e-05/0.3026, allocations: 8 kB / 1.209 GB, free: 8.352 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.676e-05/0.3027, allocations: 19.92 kB / 1.209 GB, free: 8.332 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.087e-05/0.3028, allocations: 27.91 kB / 1.209 GB, free: 8.305 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.652e-05/0.3028, allocations: 4 kB / 1.209 GB, free: 8.301 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 6.713e-05/0.3029, allocations: 11.98 kB / 1.209 GB, free: 8.289 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.728e-05/0.3029, allocations: 15.98 kB / 1.209 GB, free: 8.273 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.15e-05/0.303, allocations: 19.86 kB / 1.209 GB, free: 8.254 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001425/0.3031, allocations: 63.78 kB / 1.209 GB, free: 8.191 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.3031, allocations: 4 kB / 1.209 GB, free: 8.188 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.282e-06/0.3032, allocations: 0 / 1.209 GB, free: 8.188 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.791e-06/0.3032, allocations: 0 / 1.209 GB, free: 8.188 MB / 0.9669 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.0007164/0.3039, allocations: 355.7 kB / 1.21 GB, free: 7.789 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.661e-05/0.3039, allocations: 8.625 kB / 1.21 GB, free: 7.781 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.525e-05/0.304, allocations: 42.73 kB / 1.21 GB, free: 7.73 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.794e-05/0.304, allocations: 8.844 kB / 1.21 GB, free: 7.723 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001255/0.3042, allocations: 168.3 kB / 1.21 GB, free: 7.52 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.142e-05/0.3042, allocations: 384 / 1.21 GB, free: 7.52 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.308e-05/0.3042, allocations: 8.375 kB / 1.21 GB, free: 7.512 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002061/0.3044, allocations: 58.22 kB / 1.21 GB, free: 7.449 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.197e-05/0.3044, allocations: 3.938 kB / 1.21 GB, free: 7.445 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.108e-05/0.3045, allocations: 3.938 kB / 1.21 GB, free: 7.441 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.296e-06/0.3045, allocations: 4 kB / 1.21 GB, free: 7.438 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001904/0.3047, allocations: 47.94 kB / 1.21 GB, free: 7.391 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004793/0.3052, allocations: 280.7 kB / 1.21 GB, free: 7.066 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001686/0.3053, allocations: 54.48 kB / 1.21 GB, free: 7.004 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.678e-05/0.3054, allocations: 32.97 kB / 1.21 GB, free: 6.969 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.778e-05/0.3055, allocations: 8.016 kB / 1.21 GB, free: 6.961 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002353/0.3057, allocations: 75.36 kB / 1.21 GB, free: 6.875 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=6): time 1.523e-06/0.3057, allocations: 0 / 1.21 GB, free: 6.875 MB / 0.9669 GB Notification: Performance of matching and sorting (n=6): time 0.0004175/0.3062, allocations: 117.8 kB / 1.21 GB, free: 6.754 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.665e-05/0.3062, allocations: 51.41 kB / 1.21 GB, free: 6.691 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.314e-05/0.3063, allocations: 113.9 kB / 1.211 GB, free: 6.57 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.756e-05/0.3064, allocations: 25.7 kB / 1.211 GB, free: 6.539 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.262e-05/0.3064, allocations: 92.05 kB / 1.211 GB, free: 6.445 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.074e-05/0.3065, allocations: 11.84 kB / 1.211 GB, free: 6.434 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.188e-05/0.3065, allocations: 29.64 kB / 1.211 GB, free: 6.398 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001233/0.3066, allocations: 314.8 kB / 1.211 GB, free: 6.082 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.823e-05/0.3067, allocations: 23.97 kB / 1.211 GB, free: 6.059 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001189/0.3069, allocations: 55.91 kB / 1.211 GB, free: 5.992 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002094/0.3071, allocations: 79.33 kB / 1.211 GB, free: 5.902 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.3071, allocations: 4 kB / 1.211 GB, free: 5.898 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002685/0.3074, allocations: 105.5 kB / 1.211 GB, free: 5.789 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.519e-05/0.3074, allocations: 4 kB / 1.211 GB, free: 5.785 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.3074, allocations: 0 / 1.211 GB, free: 5.785 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.703e-05/0.3074, allocations: 4 kB / 1.211 GB, free: 5.781 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001124/0.3075, allocations: 11.98 kB / 1.211 GB, free: 5.77 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.138e-05/0.3076, allocations: 7.938 kB / 1.211 GB, free: 5.762 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.266e-05/0.3077, allocations: 20.02 kB / 1.211 GB, free: 5.742 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.021e-05/0.3077, allocations: 0 / 1.211 GB, free: 5.742 MB / 0.9669 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.487e-05/0.3078, allocations: 117.8 kB / 1.211 GB, free: 5.617 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.351e-05/0.3078, allocations: 7.906 kB / 1.211 GB, free: 5.609 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002785/0.3081, allocations: 102 kB / 1.212 GB, free: 5.5 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.3081, allocations: 0 / 1.212 GB, free: 5.5 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.3081, allocations: 0 / 1.212 GB, free: 5.5 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.3081, allocations: 11.92 kB / 1.212 GB, free: 5.488 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004291/0.3085, allocations: 342.5 kB / 1.212 GB, free: 5.098 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.3085, allocations: 4 kB / 1.212 GB, free: 5.094 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.702e-05/0.3086, allocations: 7.984 kB / 1.212 GB, free: 5.086 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.3086, allocations: 0 / 1.212 GB, free: 5.086 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.213e-05/0.3086, allocations: 4 kB / 1.212 GB, free: 5.082 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.3086, allocations: 3.938 kB / 1.212 GB, free: 5.078 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/0.3087, allocations: 4.359 kB / 1.212 GB, free: 5.074 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002817/0.3089, allocations: 203.3 kB / 1.212 GB, free: 4.859 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.58e-05/0.309, allocations: 81.11 kB / 1.212 GB, free: 4.762 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.606e-05/0.309, allocations: 3.984 kB / 1.212 GB, free: 4.758 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.271e-05/0.3091, allocations: 4 kB / 1.212 GB, free: 4.754 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.211e-05/0.3092, allocations: 15.92 kB / 1.212 GB, free: 4.738 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.186e-05/0.3092, allocations: 4 kB / 1.212 GB, free: 4.734 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.918e-05/0.3092, allocations: 79.28 kB / 1.212 GB, free: 4.656 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3092, allocations: 0 / 1.212 GB, free: 4.656 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002515/0.3095, allocations: 20 kB / 1.212 GB, free: 4.637 MB / 0.9669 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.0006426/0.3101, allocations: 0.7357 MB / 1.213 GB, free: 3.875 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002704/0.3104, allocations: 63.89 kB / 1.213 GB, free: 3.812 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3104, allocations: 0 / 1.213 GB, free: 3.812 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001198/0.3106, allocations: 35.95 kB / 1.213 GB, free: 3.777 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002722/0.3108, allocations: 11.94 kB / 1.213 GB, free: 3.766 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001588/0.3124, allocations: 1.387 MB / 1.214 GB, free: 2.285 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002534/0.3127, allocations: 0.682 MB / 1.215 GB, free: 1.578 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.308e-05/0.3127, allocations: 4 kB / 1.215 GB, free: 1.574 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.351e-05/0.3128, allocations: 19.42 kB / 1.215 GB, free: 1.555 MB / 0.9669 GB Notification: Performance of SimCode: time 2.51e-07/0.3128, allocations: 0 / 1.215 GB, free: 1.555 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0189/0.3317, allocations: 1.75 MB / 1.217 GB, free: 15.9 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.811/8.142, allocations: 10.11 kB / 1.217 GB, free: 15.89 MB / 0.9825 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.fmu > 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