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: "" <> 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.001269/0.001269, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001313/0.001313, allocations: 193.5 kB / 16.14 MB, free: 6.711 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.213/1.213, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.419/2.419, allocations: 461.8 MB / 0.7342 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001182/0.001182, allocations: 62.19 kB / 0.8985 GB, free: 37.04 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2294/0.2306, allocations: 157.4 MB / 1.052 GB, free: 8.23 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001858/0.2325, allocations: 0.7288 MB / 1.053 GB, free: 7.5 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001184/0.2337, allocations: 1.053 MB / 1.054 GB, free: 6.434 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.416e-05/0.2338, allocations: 0 / 1.054 GB, free: 6.434 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.222e-05/0.2338, allocations: 3.938 kB / 1.054 GB, free: 6.43 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.056e-05/0.2339, allocations: 4 kB / 1.054 GB, free: 6.426 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002256/0.2341, allocations: 35.91 kB / 1.054 GB, free: 6.391 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.959e-05/0.2342, allocations: 47.91 kB / 1.054 GB, free: 6.344 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.121e-05/0.2343, allocations: 8 kB / 1.054 GB, free: 6.336 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.295e-05/0.2343, allocations: 23.91 kB / 1.054 GB, free: 6.312 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.301e-05/0.2344, allocations: 15.92 kB / 1.054 GB, free: 6.297 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.59e-05/0.2344, allocations: 4 kB / 1.054 GB, free: 6.293 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.354e-05/0.2345, allocations: 23.86 kB / 1.054 GB, free: 6.27 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.346e-05/0.2345, allocations: 11.92 kB / 1.054 GB, free: 6.258 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.484e-05/0.2346, allocations: 19.92 kB / 1.054 GB, free: 6.238 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001143/0.2347, allocations: 47.84 kB / 1.054 GB, free: 6.191 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.2347, allocations: 4 kB / 1.054 GB, free: 6.188 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.61e-07/0.2347, allocations: 0 / 1.054 GB, free: 6.188 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.356e-06/0.2347, allocations: 0 / 1.054 GB, free: 6.188 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.0005253/0.2352, allocations: 363.7 kB / 1.055 GB, free: 5.781 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.2353, allocations: 15.97 kB / 1.055 GB, free: 5.766 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.665e-05/0.2353, allocations: 34.75 kB / 1.055 GB, free: 5.723 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.27e-05/0.2354, allocations: 8.922 kB / 1.055 GB, free: 5.715 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.122e-05/0.2355, allocations: 172.2 kB / 1.055 GB, free: 5.508 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.207e-05/0.2355, allocations: 4.375 kB / 1.055 GB, free: 5.504 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.002e-05/0.2355, allocations: 384 / 1.055 GB, free: 5.504 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001886/0.2357, allocations: 74.14 kB / 1.055 GB, free: 5.426 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.2357, allocations: 11.86 kB / 1.055 GB, free: 5.414 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.488e-06/0.2357, allocations: 0 / 1.055 GB, free: 5.414 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.2357, allocations: 0 / 1.055 GB, free: 5.414 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001736/0.2359, allocations: 43.95 kB / 1.055 GB, free: 5.371 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003829/0.2363, allocations: 272.8 kB / 1.055 GB, free: 5.055 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001551/0.2365, allocations: 58.48 kB / 1.055 GB, free: 4.988 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.228e-05/0.2366, allocations: 28.95 kB / 1.055 GB, free: 4.957 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.878e-05/0.2366, allocations: 8 kB / 1.055 GB, free: 4.949 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001858/0.2368, allocations: 71.38 kB / 1.055 GB, free: 4.867 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=6): time 1.353e-06/0.2368, allocations: 0 / 1.055 GB, free: 4.867 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0003883/0.2372, allocations: 121.5 kB / 1.055 GB, free: 4.742 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.627e-05/0.2372, allocations: 59.34 kB / 1.055 GB, free: 4.672 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.812e-05/0.2373, allocations: 105.9 kB / 1.056 GB, free: 4.559 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.508e-05/0.2373, allocations: 29.69 kB / 1.056 GB, free: 4.523 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.645e-05/0.2374, allocations: 88.14 kB / 1.056 GB, free: 4.434 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.876e-05/0.2374, allocations: 11.81 kB / 1.056 GB, free: 4.422 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.891e-05/0.2374, allocations: 21.78 kB / 1.056 GB, free: 4.395 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.69e-05/0.2375, allocations: 322.8 kB / 1.056 GB, free: 4.07 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.694e-05/0.2376, allocations: 27.95 kB / 1.056 GB, free: 4.043 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001018/0.2377, allocations: 51.42 kB / 1.056 GB, free: 3.98 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001887/0.2379, allocations: 79.33 kB / 1.056 GB, free: 3.891 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.2379, allocations: 4 kB / 1.056 GB, free: 3.887 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002478/0.2382, allocations: 97.58 kB / 1.056 GB, free: 3.785 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.324e-05/0.2382, allocations: 8 kB / 1.056 GB, free: 3.777 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.2382, allocations: 0.5 kB / 1.056 GB, free: 3.777 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.017e-05/0.2382, allocations: 0 / 1.056 GB, free: 3.777 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001018/0.2383, allocations: 19.92 kB / 1.056 GB, free: 3.758 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.2384, allocations: 3.938 kB / 1.056 GB, free: 3.754 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.849e-05/0.2384, allocations: 23.92 kB / 1.056 GB, free: 3.73 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.378e-06/0.2384, allocations: 4 kB / 1.056 GB, free: 3.727 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 8.388e-05/0.2385, allocations: 117.8 kB / 1.056 GB, free: 3.602 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.079e-05/0.2385, allocations: 0 / 1.056 GB, free: 3.602 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00027/0.2388, allocations: 106 kB / 1.057 GB, free: 3.492 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.2388, allocations: 0 / 1.057 GB, free: 3.492 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.2388, allocations: 4 kB / 1.057 GB, free: 3.488 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.2389, allocations: 4 kB / 1.057 GB, free: 3.484 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003927/0.2392, allocations: 354.3 kB / 1.057 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.2393, allocations: 0 / 1.057 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.261e-05/0.2393, allocations: 19.92 kB / 1.057 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.2393, allocations: 0 / 1.057 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.255e-06/0.2394, allocations: 0 / 1.057 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.2394, allocations: 0 / 1.057 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.2394, allocations: 4 kB / 1.057 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002685/0.2396, allocations: 195.4 kB / 1.057 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.124e-05/0.2397, allocations: 85.05 kB / 1.057 GB, free: 2.75 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.389e-05/0.2397, allocations: 0 / 1.057 GB, free: 2.75 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.819e-05/0.2398, allocations: 11.98 kB / 1.057 GB, free: 2.738 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.757e-05/0.2398, allocations: 7.922 kB / 1.057 GB, free: 2.73 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.292e-05/0.2399, allocations: 8 kB / 1.057 GB, free: 2.723 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4e-05/0.2399, allocations: 87.47 kB / 1.057 GB, free: 2.637 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2399, allocations: 0 / 1.057 GB, free: 2.637 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002295/0.2401, allocations: 8 kB / 1.057 GB, free: 2.629 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.0005126/0.2407, allocations: 0.7358 MB / 1.058 GB, free: 1.867 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002268/0.2409, allocations: 59.89 kB / 1.058 GB, free: 1.809 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2409, allocations: 0 / 1.058 GB, free: 1.809 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001066/0.241, allocations: 31.98 kB / 1.058 GB, free: 1.777 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002424/0.2413, allocations: 13.2 kB / 1.058 GB, free: 1.766 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001624/0.2429, allocations: 1.386 MB / 1.059 GB, free: 288 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000198/0.2431, allocations: 0.6887 MB / 1.06 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.12e-05/0.2432, allocations: 3.984 kB / 1.06 GB, free: 15.56 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.577e-05/0.2432, allocations: 15.44 kB / 1.06 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of SimCode: time 2.5e-07/0.2432, allocations: 0 / 1.06 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1602/0.4034, allocations: 1.528 MB / 1.062 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002112/0.4036, allocations: 214.3 kB / 1.062 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.528/1.932, allocations: 3.938 kB / 1.062 GB, free: 13.86 MB / 0.8262 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