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.001534/0.001534, allocations: 108 kB / 15.6 MB, free: 132 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.001102/0.001102, allocations: 193.7 kB / 16.53 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.229/1.229, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.537/2.537, allocations: 469.4 MB / 0.742 GB, free: 7.699 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 66.27 kB / 0.9083 GB, free: 34.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2348/0.236, allocations: 159.1 MB / 1.064 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001732/0.2378, allocations: 0.661 MB / 1.064 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001113/0.2389, allocations: 1.055 MB / 1.065 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.249e-05/0.239, allocations: 4 kB / 1.065 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.372e-05/0.239, allocations: 7.875 kB / 1.065 GB, free: 12.78 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.065e-05/0.2391, allocations: 3.938 kB / 1.065 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002385/0.2393, allocations: 39.83 kB / 1.065 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 7.554e-05/0.2394, allocations: 47.91 kB / 1.065 GB, free: 12.69 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 8.48e-05/0.2395, allocations: 11.98 kB / 1.065 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 6.104e-05/0.2395, allocations: 23.92 kB / 1.065 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.714e-05/0.2396, allocations: 19.92 kB / 1.066 GB, free: 12.63 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.36e-05/0.2396, allocations: 4 kB / 1.066 GB, free: 12.63 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.143e-05/0.2397, allocations: 15.98 kB / 1.066 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.006e-05/0.2397, allocations: 11.98 kB / 1.066 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.706e-05/0.2398, allocations: 27.84 kB / 1.066 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001112/0.2399, allocations: 47.86 kB / 1.066 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.2399, allocations: 0 / 1.066 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.504e-06/0.2399, allocations: 4 kB / 1.066 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.628e-06/0.2399, allocations: 7.938 kB / 1.066 GB, free: 12.52 MB / 0.8262 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.0004969/0.2404, allocations: 361.4 kB / 1.066 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.214e-05/0.2404, allocations: 8.031 kB / 1.066 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.964e-05/0.2405, allocations: 30.75 kB / 1.066 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.719e-05/0.2405, allocations: 4.938 kB / 1.066 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001005/0.2406, allocations: 184.2 kB / 1.066 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.093e-06/0.2406, allocations: 384 / 1.066 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.432e-05/0.2406, allocations: 8.375 kB / 1.066 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000184/0.2408, allocations: 70.2 kB / 1.066 GB, free: 11.76 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.595e-06/0.2409, allocations: 3.938 kB / 1.066 GB, free: 11.76 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.002e-05/0.2409, allocations: 7.922 kB / 1.066 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.2409, allocations: 4 kB / 1.066 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001755/0.2411, allocations: 47.89 kB / 1.066 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003781/0.2414, allocations: 276.8 kB / 1.067 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00015/0.2416, allocations: 50.55 kB / 1.067 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.595e-05/0.2417, allocations: 32.95 kB / 1.067 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.688e-05/0.2417, allocations: 0 / 1.067 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001858/0.2419, allocations: 79.31 kB / 1.067 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=6): time 1.463e-06/0.2419, allocations: 3.938 kB / 1.067 GB, free: 11.19 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6): time 0.000381/0.2423, allocations: 117.5 kB / 1.067 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.771e-05/0.2424, allocations: 59.39 kB / 1.067 GB, free: 11 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.373e-05/0.2424, allocations: 101.9 kB / 1.067 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.487e-05/0.2425, allocations: 25.7 kB / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.618e-05/0.2425, allocations: 92.12 kB / 1.067 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.932e-05/0.2425, allocations: 15.88 kB / 1.067 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.956e-05/0.2426, allocations: 21.72 kB / 1.067 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 8.204e-05/0.2427, allocations: 322.8 kB / 1.067 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.903e-05/0.2428, allocations: 19.98 kB / 1.067 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001081/0.2429, allocations: 55.34 kB / 1.068 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001919/0.2431, allocations: 79.33 kB / 1.068 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.2431, allocations: 0 / 1.068 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002559/0.2434, allocations: 113.5 kB / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.155e-05/0.2434, allocations: 4 kB / 1.068 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.2434, allocations: 0 / 1.068 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.203e-05/0.2434, allocations: 4 kB / 1.068 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.673e-05/0.2435, allocations: 11.98 kB / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.164e-06/0.2435, allocations: 4 kB / 1.068 GB, free: 10.08 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.661e-05/0.2436, allocations: 11.92 kB / 1.068 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.608e-06/0.2436, allocations: 0 / 1.068 GB, free: 10.07 MB / 0.8262 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 7.379e-05/0.2437, allocations: 127.6 kB / 1.068 GB, free: 9.938 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.356e-05/0.2437, allocations: 4 kB / 1.068 GB, free: 9.934 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002651/0.244, allocations: 102.6 kB / 1.068 GB, free: 9.828 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.244, allocations: 0 / 1.068 GB, free: 9.828 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.244, allocations: 0 / 1.068 GB, free: 9.828 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.244, allocations: 0 / 1.068 GB, free: 9.828 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003941/0.2444, allocations: 362.3 kB / 1.068 GB, free: 9.418 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.2444, allocations: 4 kB / 1.068 GB, free: 9.414 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.847e-05/0.2445, allocations: 7.984 kB / 1.068 GB, free: 9.406 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.2445, allocations: 0 / 1.068 GB, free: 9.406 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.06e-05/0.2445, allocations: 8 kB / 1.068 GB, free: 9.398 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.2445, allocations: 0 / 1.068 GB, free: 9.398 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.2445, allocations: 0 / 1.068 GB, free: 9.398 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002616/0.2448, allocations: 199.3 kB / 1.069 GB, free: 9.188 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.207e-05/0.2448, allocations: 85.02 kB / 1.069 GB, free: 9.086 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.624e-05/0.2448, allocations: 7.938 kB / 1.069 GB, free: 9.078 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.682e-05/0.2449, allocations: 7.984 kB / 1.069 GB, free: 9.07 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.656e-05/0.245, allocations: 15.95 kB / 1.069 GB, free: 9.055 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.037e-05/0.245, allocations: 0 / 1.069 GB, free: 9.055 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.04e-05/0.245, allocations: 87.28 kB / 1.069 GB, free: 8.969 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.245, allocations: 0 / 1.069 GB, free: 8.969 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002379/0.2453, allocations: 12 kB / 1.069 GB, free: 8.957 MB / 0.8262 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.000518/0.2458, allocations: 0.7286 MB / 1.069 GB, free: 8.203 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002418/0.2461, allocations: 67.88 kB / 1.07 GB, free: 8.137 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.2461, allocations: 0 / 1.07 GB, free: 8.137 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001067/0.2462, allocations: 31.98 kB / 1.07 GB, free: 8.105 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002452/0.2464, allocations: 14.3 kB / 1.07 GB, free: 8.094 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001374/0.2478, allocations: 1.387 MB / 1.071 GB, free: 6.613 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000191/0.248, allocations: 0.6807 MB / 1.072 GB, free: 5.906 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.855e-05/0.2481, allocations: 3.984 kB / 1.072 GB, free: 5.902 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.478e-05/0.2481, allocations: 15.44 kB / 1.072 GB, free: 5.887 MB / 0.8262 GB Notification: Performance of SimCode: time 2.91e-07/0.2481, allocations: 0 / 1.072 GB, free: 5.887 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01631/0.2644, allocations: 1.725 MB / 1.073 GB, free: 4.242 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.9/7.165, allocations: 5.703 kB / 1.073 GB, free: 4.238 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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