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.006088/0.006088, allocations: 100.4 kB / 15.73 MB, free: 6.043 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.001312/0.001312, allocations: 195.8 kB / 16.67 MB, free: 5.977 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.422/1.422, allocations: 222.9 MB / 240.4 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.773/2.773, allocations: 461.9 MB / 0.7348 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001363/0.001363, allocations: 64.09 kB / 1.054 GB, free: 7.684 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2918/0.2932, allocations: 157.4 MB / 1.207 GB, free: 10.18 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002011/0.2952, allocations: 0.6792 MB / 1.208 GB, free: 9.504 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.00149/0.2967, allocations: 1.046 MB / 1.209 GB, free: 8.445 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.907e-05/0.2968, allocations: 0 / 1.209 GB, free: 8.445 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.29e-05/0.2969, allocations: 7.938 kB / 1.209 GB, free: 8.438 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.797e-05/0.2969, allocations: 7.938 kB / 1.209 GB, free: 8.43 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002817/0.2972, allocations: 43.83 kB / 1.209 GB, free: 8.387 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 9.888e-05/0.2973, allocations: 47.84 kB / 1.209 GB, free: 8.34 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 9.624e-05/0.2975, allocations: 8 kB / 1.209 GB, free: 8.332 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 7.19e-05/0.2975, allocations: 19.92 kB / 1.209 GB, free: 8.312 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 5.572e-05/0.2976, allocations: 31.89 kB / 1.209 GB, free: 8.281 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.688e-05/0.2976, allocations: 4 kB / 1.209 GB, free: 8.277 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 7.288e-05/0.2977, allocations: 15.94 kB / 1.209 GB, free: 8.262 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.45e-05/0.2977, allocations: 11.98 kB / 1.209 GB, free: 8.25 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.31e-05/0.2978, allocations: 19.86 kB / 1.209 GB, free: 8.23 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001444/0.2979, allocations: 59.84 kB / 1.209 GB, free: 8.172 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.2979, allocations: 0 / 1.209 GB, free: 8.172 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.853e-06/0.2979, allocations: 0 / 1.209 GB, free: 8.172 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 9.888e-06/0.298, allocations: 4 kB / 1.209 GB, free: 8.168 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.0005783/0.2985, allocations: 359.7 kB / 1.21 GB, free: 7.766 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.627e-05/0.2986, allocations: 8.625 kB / 1.21 GB, free: 7.758 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.471e-05/0.2986, allocations: 38.67 kB / 1.21 GB, free: 7.711 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.24e-05/0.2987, allocations: 12.84 kB / 1.21 GB, free: 7.699 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001055/0.2988, allocations: 168.3 kB / 1.21 GB, free: 7.496 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.145e-05/0.2988, allocations: 4.375 kB / 1.21 GB, free: 7.492 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.882e-05/0.2988, allocations: 4.375 kB / 1.21 GB, free: 7.488 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001945/0.299, allocations: 66.16 kB / 1.21 GB, free: 7.418 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.299, allocations: 3.938 kB / 1.21 GB, free: 7.414 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.036e-05/0.2991, allocations: 0 / 1.21 GB, free: 7.414 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.2991, allocations: 0 / 1.21 GB, free: 7.414 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001868/0.2993, allocations: 43.95 kB / 1.21 GB, free: 7.371 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004159/0.2997, allocations: 276.7 kB / 1.21 GB, free: 7.051 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001701/0.2999, allocations: 62.48 kB / 1.21 GB, free: 6.98 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000101/0.3, allocations: 36.89 kB / 1.21 GB, free: 6.941 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.166e-05/0.3, allocations: 4 kB / 1.21 GB, free: 6.938 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002451/0.3003, allocations: 71.38 kB / 1.21 GB, free: 6.855 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=6): time 1.503e-06/0.3003, allocations: 0 / 1.21 GB, free: 6.855 MB / 0.9669 GB Notification: Performance of matching and sorting (n=6): time 0.0004244/0.3007, allocations: 121.6 kB / 1.21 GB, free: 6.73 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.547e-05/0.3008, allocations: 51.41 kB / 1.21 GB, free: 6.668 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.272e-05/0.3008, allocations: 105.9 kB / 1.211 GB, free: 6.555 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.886e-05/0.3009, allocations: 33.69 kB / 1.211 GB, free: 6.516 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 4.324e-05/0.3009, allocations: 84.05 kB / 1.211 GB, free: 6.43 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.01e-05/0.3009, allocations: 11.91 kB / 1.211 GB, free: 6.418 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.224e-05/0.301, allocations: 21.7 kB / 1.211 GB, free: 6.391 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001285/0.3011, allocations: 322.8 kB / 1.211 GB, free: 6.066 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.905e-05/0.3012, allocations: 24.47 kB / 1.211 GB, free: 6.043 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001129/0.3014, allocations: 47.92 kB / 1.211 GB, free: 5.984 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002057/0.3016, allocations: 79.33 kB / 1.211 GB, free: 5.895 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.3016, allocations: 4 kB / 1.211 GB, free: 5.891 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002914/0.3019, allocations: 113.5 kB / 1.211 GB, free: 5.773 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/0.3019, allocations: 5.562 kB / 1.211 GB, free: 5.77 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.3019, allocations: 0 / 1.211 GB, free: 5.77 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.568e-05/0.3019, allocations: 4 kB / 1.211 GB, free: 5.766 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001192/0.3021, allocations: 19.92 kB / 1.211 GB, free: 5.746 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.3021, allocations: 0 / 1.211 GB, free: 5.746 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.33e-05/0.3021, allocations: 20.02 kB / 1.211 GB, free: 5.727 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.779e-06/0.3022, allocations: 0 / 1.211 GB, free: 5.727 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 0.0001203/0.3023, allocations: 120.2 kB / 1.211 GB, free: 5.602 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.623e-05/0.3023, allocations: 7.906 kB / 1.211 GB, free: 5.594 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003042/0.3026, allocations: 102 kB / 1.212 GB, free: 5.484 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.3026, allocations: 4 kB / 1.212 GB, free: 5.48 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.3026, allocations: 0 / 1.212 GB, free: 5.48 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.3027, allocations: 4 kB / 1.212 GB, free: 5.477 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004812/0.3031, allocations: 354.5 kB / 1.212 GB, free: 5.074 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.3032, allocations: 0 / 1.212 GB, free: 5.074 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.409e-05/0.3032, allocations: 15.92 kB / 1.212 GB, free: 5.059 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-06/0.3032, allocations: 0 / 1.212 GB, free: 5.059 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.009e-05/0.3033, allocations: 0 / 1.212 GB, free: 5.059 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.39e-06/0.3033, allocations: 4 kB / 1.212 GB, free: 5.055 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.3033, allocations: 3.938 kB / 1.212 GB, free: 5.051 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002989/0.3036, allocations: 199.3 kB / 1.212 GB, free: 4.84 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 3.826e-05/0.3036, allocations: 77.11 kB / 1.212 GB, free: 4.746 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.813e-05/0.3036, allocations: 4 kB / 1.212 GB, free: 4.742 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001033/0.3038, allocations: 12.17 kB / 1.212 GB, free: 4.73 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.956e-05/0.3038, allocations: 11.92 kB / 1.212 GB, free: 4.719 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.334e-05/0.3038, allocations: 8 kB / 1.212 GB, free: 4.711 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001166/0.3039, allocations: 83.28 kB / 1.212 GB, free: 4.629 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3039, allocations: 0 / 1.212 GB, free: 4.629 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002819/0.3042, allocations: 16 kB / 1.212 GB, free: 4.613 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.0007194/0.305, allocations: 0.7318 MB / 1.213 GB, free: 3.855 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002768/0.3053, allocations: 63.89 kB / 1.213 GB, free: 3.793 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3053, allocations: 0 / 1.213 GB, free: 3.793 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001182/0.3054, allocations: 27.98 kB / 1.213 GB, free: 3.766 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002866/0.3057, allocations: 15.92 kB / 1.213 GB, free: 3.75 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001744/0.3074, allocations: 1.387 MB / 1.214 GB, free: 2.266 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002347/0.3077, allocations: 0.6807 MB / 1.215 GB, free: 1.559 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.484e-05/0.3077, allocations: 4 kB / 1.215 GB, free: 1.555 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.859e-05/0.3078, allocations: 11.44 kB / 1.215 GB, free: 1.543 MB / 0.9669 GB Notification: Performance of SimCode: time 2.5e-07/0.3078, allocations: 0 / 1.215 GB, free: 1.543 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01845/0.3262, allocations: 1.777 MB / 1.217 GB, free: 15.86 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.695/8.021, allocations: 18.33 kB / 1.217 GB, free: 15.85 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