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.001052/0.001052, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001094/0.001094, allocations: 188.8 kB / 16.25 MB, free: 6.633 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.228/1.228, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.397/2.397, allocations: 461.9 MB / 0.7343 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001183/0.001183, allocations: 65.27 kB / 0.8987 GB, free: 37.14 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2342/0.2354, allocations: 157.4 MB / 1.052 GB, free: 8.699 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001729/0.2372, allocations: 0.7247 MB / 1.053 GB, free: 7.973 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00107/0.2383, allocations: 1.061 MB / 1.054 GB, free: 6.898 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.47e-05/0.2383, allocations: 4 kB / 1.054 GB, free: 6.895 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.592e-05/0.2383, allocations: 3.938 kB / 1.054 GB, free: 6.891 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 2.996e-05/0.2384, allocations: 3.938 kB / 1.054 GB, free: 6.887 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001662/0.2386, allocations: 39.89 kB / 1.054 GB, free: 6.848 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.53e-05/0.2386, allocations: 43.92 kB / 1.054 GB, free: 6.805 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 7.276e-05/0.2387, allocations: 7.984 kB / 1.054 GB, free: 6.797 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 5.083e-05/0.2388, allocations: 19.94 kB / 1.054 GB, free: 6.777 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 3.983e-05/0.2388, allocations: 23.89 kB / 1.054 GB, free: 6.754 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.141e-05/0.2388, allocations: 8 kB / 1.054 GB, free: 6.746 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 5.205e-05/0.2389, allocations: 23.98 kB / 1.054 GB, free: 6.723 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.396e-05/0.2389, allocations: 4 kB / 1.054 GB, free: 6.719 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.096e-05/0.2389, allocations: 27.86 kB / 1.054 GB, free: 6.691 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001008/0.239, allocations: 47.84 kB / 1.054 GB, free: 6.645 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.2391, allocations: 0 / 1.054 GB, free: 6.645 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.213e-06/0.2391, allocations: 3.938 kB / 1.054 GB, free: 6.641 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.787e-06/0.2391, allocations: 0 / 1.054 GB, free: 6.641 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.0004702/0.2395, allocations: 371.7 kB / 1.055 GB, free: 6.227 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 2.839e-05/0.2396, allocations: 12.62 kB / 1.055 GB, free: 6.215 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.801e-05/0.2396, allocations: 30.75 kB / 1.055 GB, free: 6.176 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.678e-05/0.2396, allocations: 4.938 kB / 1.055 GB, free: 6.172 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.103e-05/0.2397, allocations: 168.2 kB / 1.055 GB, free: 5.969 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.19e-05/0.2397, allocations: 8.375 kB / 1.055 GB, free: 5.961 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.041e-05/0.2398, allocations: 384 / 1.055 GB, free: 5.961 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001678/0.2399, allocations: 66.22 kB / 1.055 GB, free: 5.891 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.735e-06/0.24, allocations: 11.88 kB / 1.055 GB, free: 5.879 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.807e-06/0.24, allocations: 0 / 1.055 GB, free: 5.879 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.436e-06/0.24, allocations: 0 / 1.055 GB, free: 5.879 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001662/0.2401, allocations: 55.86 kB / 1.055 GB, free: 5.824 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003419/0.2405, allocations: 268.8 kB / 1.055 GB, free: 5.512 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001405/0.2406, allocations: 62.55 kB / 1.055 GB, free: 5.441 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.448e-05/0.2407, allocations: 24.97 kB / 1.055 GB, free: 5.414 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.065e-05/0.2408, allocations: 4 kB / 1.055 GB, free: 5.41 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001708/0.2409, allocations: 75.31 kB / 1.056 GB, free: 5.324 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=6): time 1.363e-06/0.2409, allocations: 3.938 kB / 1.056 GB, free: 5.32 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0003501/0.2413, allocations: 121.5 kB / 1.056 GB, free: 5.195 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.418e-05/0.2413, allocations: 55.41 kB / 1.056 GB, free: 5.129 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.359e-05/0.2414, allocations: 109.8 kB / 1.056 GB, free: 5.012 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.313e-05/0.2414, allocations: 25.7 kB / 1.056 GB, free: 4.98 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.317e-05/0.2415, allocations: 80.14 kB / 1.056 GB, free: 4.898 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.844e-05/0.2415, allocations: 15.81 kB / 1.056 GB, free: 4.883 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.783e-05/0.2415, allocations: 25.7 kB / 1.056 GB, free: 4.852 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.003e-05/0.2416, allocations: 322.8 kB / 1.056 GB, free: 4.527 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.828e-05/0.2417, allocations: 27.91 kB / 1.056 GB, free: 4.5 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.567e-05/0.2418, allocations: 47.91 kB / 1.056 GB, free: 4.441 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000171/0.242, allocations: 83.33 kB / 1.056 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.242, allocations: 0 / 1.056 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002238/0.2422, allocations: 101.6 kB / 1.057 GB, free: 4.242 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.097e-05/0.2422, allocations: 8 kB / 1.057 GB, free: 4.234 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.748e-06/0.2423, allocations: 8.094 kB / 1.057 GB, free: 4.227 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.016e-06/0.2423, allocations: 0 / 1.057 GB, free: 4.227 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.993e-05/0.2424, allocations: 15.98 kB / 1.057 GB, free: 4.211 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.2424, allocations: 0 / 1.057 GB, free: 4.211 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.35e-05/0.2424, allocations: 15.83 kB / 1.057 GB, free: 4.195 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.017e-06/0.2425, allocations: 7.938 kB / 1.057 GB, free: 4.188 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 6.527e-05/0.2425, allocations: 117.8 kB / 1.057 GB, free: 4.062 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.119e-05/0.2425, allocations: 4 kB / 1.057 GB, free: 4.059 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002393/0.2428, allocations: 102 kB / 1.057 GB, free: 3.953 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.2428, allocations: 7.984 kB / 1.057 GB, free: 3.945 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.2428, allocations: 0 / 1.057 GB, free: 3.945 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.2428, allocations: 0 / 1.057 GB, free: 3.945 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003669/0.2432, allocations: 358.4 kB / 1.057 GB, free: 3.539 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.2432, allocations: 0 / 1.057 GB, free: 3.539 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.509e-05/0.2433, allocations: 12 kB / 1.057 GB, free: 3.527 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.2433, allocations: 0 / 1.057 GB, free: 3.527 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.478e-06/0.2433, allocations: 3.984 kB / 1.057 GB, free: 3.523 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.2433, allocations: 0 / 1.057 GB, free: 3.523 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.2433, allocations: 3.938 kB / 1.057 GB, free: 3.52 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002388/0.2435, allocations: 195.4 kB / 1.057 GB, free: 3.312 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.118e-05/0.2436, allocations: 85.02 kB / 1.057 GB, free: 3.211 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.427e-05/0.2436, allocations: 7.922 kB / 1.057 GB, free: 3.203 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.396e-05/0.2437, allocations: 12 kB / 1.057 GB, free: 3.191 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.913e-05/0.2437, allocations: 8.109 kB / 1.057 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.101e-05/0.2437, allocations: 8 kB / 1.057 GB, free: 3.176 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.265e-05/0.2438, allocations: 87.27 kB / 1.058 GB, free: 3.09 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2438, allocations: 0 / 1.058 GB, free: 3.09 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002195/0.244, allocations: 12 kB / 1.058 GB, free: 3.078 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.0004697/0.2445, allocations: 0.728 MB / 1.058 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002119/0.2447, allocations: 59.89 kB / 1.058 GB, free: 2.266 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.512e-06/0.2447, allocations: 4.188 kB / 1.058 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.856e-05/0.2448, allocations: 35.97 kB / 1.058 GB, free: 2.227 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002275/0.2451, allocations: 7.938 kB / 1.058 GB, free: 2.219 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001228/0.2463, allocations: 1.386 MB / 1.06 GB, free: 0.7383 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001772/0.2465, allocations: 0.6807 MB / 1.06 GB, free: 32 kB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.808e-05/0.2465, allocations: 8 kB / 1.06 GB, free: 24 kB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.173e-05/0.2466, allocations: 11.44 kB / 1.06 GB, free: 12 kB / 0.8106 GB Notification: Performance of SimCode: time 2.4e-07/0.2466, allocations: 0 / 1.06 GB, free: 12 kB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.178/1.424, allocations: 1.586 MB / 1.062 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004195/1.425, allocations: 223 kB / 1.062 GB, free: 14.28 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.057/3.482, allocations: 0 / 1.062 GB, free: 14.28 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