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.001187/0.001187, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001222/0.001222, allocations: 192.4 kB / 16.53 MB, free: 6.664 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.205/1.205, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.464/2.464, allocations: 461.9 MB / 0.7346 GB, free: 14.81 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 64.39 kB / 0.8992 GB, free: 37.08 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2286/0.2298, allocations: 157.4 MB / 1.053 GB, free: 8.344 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001722/0.2316, allocations: 0.6618 MB / 1.054 GB, free: 7.684 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001063/0.2327, allocations: 1.065 MB / 1.055 GB, free: 6.605 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.535e-05/0.2327, allocations: 3.938 kB / 1.055 GB, free: 6.602 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.277e-05/0.2328, allocations: 3.938 kB / 1.055 GB, free: 6.598 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.242e-05/0.2328, allocations: 11.92 kB / 1.055 GB, free: 6.586 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002497/0.2331, allocations: 35.91 kB / 1.055 GB, free: 6.551 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.126e-05/0.2332, allocations: 47.84 kB / 1.055 GB, free: 6.504 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.388e-05/0.2332, allocations: 11.98 kB / 1.055 GB, free: 6.492 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 5.653e-05/0.2333, allocations: 19.92 kB / 1.055 GB, free: 6.473 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.673e-05/0.2334, allocations: 27.92 kB / 1.055 GB, free: 6.445 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.393e-05/0.2334, allocations: 4 kB / 1.055 GB, free: 6.441 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.592e-05/0.2335, allocations: 15.98 kB / 1.055 GB, free: 6.426 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.611e-05/0.2335, allocations: 15.97 kB / 1.055 GB, free: 6.41 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.24e-05/0.2335, allocations: 15.88 kB / 1.055 GB, free: 6.395 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001177/0.2337, allocations: 55.78 kB / 1.055 GB, free: 6.34 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.2337, allocations: 0 / 1.055 GB, free: 6.34 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.733e-06/0.2337, allocations: 0 / 1.055 GB, free: 6.34 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.388e-06/0.2337, allocations: 0 / 1.055 GB, free: 6.34 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.0004976/0.2342, allocations: 375.7 kB / 1.055 GB, free: 5.922 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.389e-05/0.2342, allocations: 8.625 kB / 1.055 GB, free: 5.914 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.913e-05/0.2343, allocations: 34.69 kB / 1.055 GB, free: 5.871 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.693e-05/0.2343, allocations: 4.938 kB / 1.055 GB, free: 5.867 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.143e-05/0.2344, allocations: 168.2 kB / 1.055 GB, free: 5.664 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.092e-05/0.2344, allocations: 12.36 kB / 1.055 GB, free: 5.652 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.155e-05/0.2344, allocations: 384 / 1.055 GB, free: 5.652 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000175/0.2346, allocations: 70.23 kB / 1.055 GB, free: 5.578 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.175e-06/0.2346, allocations: 3.938 kB / 1.056 GB, free: 5.574 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.648e-06/0.2346, allocations: 3.984 kB / 1.056 GB, free: 5.57 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.517e-06/0.2346, allocations: 0 / 1.056 GB, free: 5.57 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001685/0.2348, allocations: 43.89 kB / 1.056 GB, free: 5.527 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003597/0.2352, allocations: 272.8 kB / 1.056 GB, free: 5.211 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001427/0.2353, allocations: 62.55 kB / 1.056 GB, free: 5.141 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.185e-05/0.2354, allocations: 28.97 kB / 1.056 GB, free: 5.109 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.652e-05/0.2355, allocations: 0 / 1.056 GB, free: 5.109 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001795/0.2356, allocations: 79.33 kB / 1.056 GB, free: 5.02 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=6): time 1.322e-06/0.2357, allocations: 4 kB / 1.056 GB, free: 5.016 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0003746/0.236, allocations: 121.5 kB / 1.056 GB, free: 4.891 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.844e-05/0.2361, allocations: 55.39 kB / 1.056 GB, free: 4.824 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.696e-05/0.2361, allocations: 106.1 kB / 1.056 GB, free: 4.711 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.344e-05/0.2362, allocations: 29.7 kB / 1.056 GB, free: 4.676 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.424e-05/0.2362, allocations: 80.14 kB / 1.056 GB, free: 4.594 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.935e-05/0.2362, allocations: 19.8 kB / 1.056 GB, free: 4.574 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.144e-05/0.2363, allocations: 21.72 kB / 1.056 GB, free: 4.547 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.00012/0.2364, allocations: 326.8 kB / 1.057 GB, free: 4.219 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.227e-05/0.2365, allocations: 20.23 kB / 1.057 GB, free: 4.199 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001026/0.2366, allocations: 51.34 kB / 1.057 GB, free: 4.137 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001913/0.2368, allocations: 83.39 kB / 1.057 GB, free: 4.043 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.2368, allocations: 0 / 1.057 GB, free: 4.043 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002567/0.2371, allocations: 97.62 kB / 1.057 GB, free: 3.941 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.109e-05/0.2371, allocations: 12 kB / 1.057 GB, free: 3.93 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/0.2371, allocations: 3.984 kB / 1.057 GB, free: 3.926 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.268e-05/0.2371, allocations: 0 / 1.057 GB, free: 3.926 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.118e-05/0.2372, allocations: 19.98 kB / 1.057 GB, free: 3.906 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.2372, allocations: 0 / 1.057 GB, free: 3.906 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.269e-05/0.2373, allocations: 11.84 kB / 1.057 GB, free: 3.895 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.314e-06/0.2373, allocations: 4 kB / 1.057 GB, free: 3.891 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.125e-05/0.2374, allocations: 129.6 kB / 1.057 GB, free: 3.754 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.158e-05/0.2374, allocations: 8 kB / 1.057 GB, free: 3.746 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002491/0.2377, allocations: 98.02 kB / 1.057 GB, free: 3.645 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.2377, allocations: 4 kB / 1.057 GB, free: 3.641 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.2377, allocations: 0 / 1.057 GB, free: 3.641 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.2377, allocations: 0 / 1.057 GB, free: 3.641 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003797/0.2381, allocations: 358.3 kB / 1.058 GB, free: 3.234 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.2381, allocations: 0 / 1.058 GB, free: 3.234 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.604e-05/0.2382, allocations: 11.98 kB / 1.058 GB, free: 3.223 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.2382, allocations: 0 / 1.058 GB, free: 3.223 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.224e-06/0.2382, allocations: 0 / 1.058 GB, free: 3.223 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.2382, allocations: 0 / 1.058 GB, free: 3.223 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.2382, allocations: 4 kB / 1.058 GB, free: 3.219 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002543/0.2385, allocations: 199.4 kB / 1.058 GB, free: 3.008 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 2.976e-05/0.2385, allocations: 84.95 kB / 1.058 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.786e-05/0.2385, allocations: 4.188 kB / 1.058 GB, free: 2.902 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.385e-05/0.2386, allocations: 16.03 kB / 1.058 GB, free: 2.887 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.139e-05/0.2386, allocations: 7.922 kB / 1.058 GB, free: 2.879 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.071e-05/0.2387, allocations: 4 kB / 1.058 GB, free: 2.875 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.432e-05/0.2387, allocations: 87.27 kB / 1.058 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2387, allocations: 0 / 1.058 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002258/0.2389, allocations: 12 kB / 1.058 GB, free: 2.777 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.0004913/0.2394, allocations: 0.7241 MB / 1.059 GB, free: 2.027 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002296/0.2397, allocations: 67.95 kB / 1.059 GB, free: 1.961 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.095e-06/0.2397, allocations: 0 / 1.059 GB, free: 1.961 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.000106/0.2398, allocations: 35.91 kB / 1.059 GB, free: 1.926 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002342/0.24, allocations: 17.81 kB / 1.059 GB, free: 1.91 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001305/0.2414, allocations: 1.36 MB / 1.06 GB, free: 464 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002032/0.2416, allocations: 0.6846 MB / 1.061 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.676e-05/0.2416, allocations: 4 kB / 1.061 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.461e-05/0.2416, allocations: 31.3 kB / 1.061 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of SimCode: time 2.2e-07/0.2416, allocations: 0 / 1.061 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7241/0.9657, allocations: 1.718 MB / 1.063 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.948/8.914, allocations: 8.938 kB / 1.063 GB, free: 14.06 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