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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007693/0.0007693, allocations: 80.44 kB / 19.17 MB, free: 0.7344 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001118/0.001118, allocations: 166.3 kB / 22.46 MB, free: 2.098 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9141/0.9141, allocations: 177.1 MB / 202.8 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.777/1.777, allocations: 389 MB / 0.633 GB, free: 12.67 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.324e-06/2.324e-06, allocations: 0 / 0.9996 GB, free: 13.52 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.915e-05/2.147e-05, allocations: 4.672 kB / 0.9996 GB, free: 13.51 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.00132/0.001342, allocations: 0.6545 MB / 1 GB, free: 12.86 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.000942/0.002284, allocations: 1.085 MB / 1.001 GB, free: 11.76 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.935e-05/0.002323, allocations: 7.938 kB / 1.001 GB, free: 11.75 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 2.182e-05/0.002345, allocations: 4 kB / 1.001 GB, free: 11.75 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 4.902e-05/0.002394, allocations: 7.875 kB / 1.001 GB, free: 11.74 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002282/0.002622, allocations: 55.69 kB / 1.001 GB, free: 11.69 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 8.491e-05/0.002707, allocations: 43.86 kB / 1.001 GB, free: 11.64 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 7.99e-05/0.002787, allocations: 11.97 kB / 1.001 GB, free: 11.63 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 7.266e-05/0.00286, allocations: 23.98 kB / 1.001 GB, free: 11.61 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 4.45e-05/0.002904, allocations: 15.92 kB / 1.002 GB, free: 11.59 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.312e-05/0.002917, allocations: 4 kB / 1.002 GB, free: 11.59 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 5.132e-05/0.002969, allocations: 27.97 kB / 1.002 GB, free: 11.56 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 1.831e-05/0.002987, allocations: 7.984 kB / 1.002 GB, free: 11.55 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 2.484e-05/0.003012, allocations: 15.94 kB / 1.002 GB, free: 11.54 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001146/0.003126, allocations: 63.83 kB / 1.002 GB, free: 11.48 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.044e-06/0.003128, allocations: 0 / 1.002 GB, free: 11.48 MB / 0.9636 GB Notification: Performance of FrontEnd: time 7.71e-07/0.003129, allocations: 0 / 1.002 GB, free: 11.48 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 3.357e-06/0.003133, allocations: 0 / 1.002 GB, free: 11.48 MB / 0.9636 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.0003499/0.003482, allocations: 294.1 kB / 1.002 GB, free: 11.16 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.244e-05/0.003515, allocations: 12.75 kB / 1.002 GB, free: 11.14 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.466e-05/0.00354, allocations: 34.75 kB / 1.002 GB, free: 11.1 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.148e-05/0.003591, allocations: 12.89 kB / 1.002 GB, free: 11.09 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.164e-05/0.003673, allocations: 113.7 kB / 1.002 GB, free: 10.95 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.885e-06/0.003681, allocations: 4.375 kB / 1.002 GB, free: 10.95 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.486e-06/0.003689, allocations: 4.375 kB / 1.002 GB, free: 10.95 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001171/0.003806, allocations: 66.2 kB / 1.002 GB, free: 10.88 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.859e-06/0.003811, allocations: 192 / 1.002 GB, free: 10.88 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.974e-06/0.003818, allocations: 384 / 1.002 GB, free: 10.88 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.499e-06/0.003822, allocations: 4.125 kB / 1.002 GB, free: 10.87 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.296e-05/0.003915, allocations: 43.95 kB / 1.002 GB, free: 10.83 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002838/0.004199, allocations: 240 kB / 1.002 GB, free: 10.55 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 9.472e-05/0.004294, allocations: 54.48 kB / 1.002 GB, free: 10.49 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.014e-05/0.004344, allocations: 28.95 kB / 1.002 GB, free: 10.46 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.65e-05/0.004361, allocations: 3.938 kB / 1.002 GB, free: 10.45 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001264/0.004487, allocations: 71.39 kB / 1.003 GB, free: 10.37 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=6): time 7.72e-07/0.004488, allocations: 0 / 1.003 GB, free: 10.37 MB / 0.9636 GB Notification: Performance of matching and sorting (n=6): time 0.0002324/0.00472, allocations: 125.6 kB / 1.003 GB, free: 10.24 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.093e-05/0.004751, allocations: 55.41 kB / 1.003 GB, free: 10.18 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.908e-05/0.0048, allocations: 105.8 kB / 1.003 GB, free: 10.06 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 9.829e-06/0.00481, allocations: 29.7 kB / 1.003 GB, free: 10.03 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 3.43e-05/0.004844, allocations: 92.08 kB / 1.003 GB, free: 9.934 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.615e-05/0.00486, allocations: 15.91 kB / 1.003 GB, free: 9.918 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.95e-05/0.00489, allocations: 21.8 kB / 1.003 GB, free: 9.891 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 6.906e-05/0.004959, allocations: 318.8 kB / 1.003 GB, free: 9.57 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.747e-05/0.005006, allocations: 27.97 kB / 1.003 GB, free: 9.543 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.759e-05/0.005064, allocations: 51.41 kB / 1.003 GB, free: 9.48 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001028/0.005167, allocations: 79.33 kB / 1.003 GB, free: 9.391 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.005169, allocations: 3.938 kB / 1.003 GB, free: 9.387 MB / 0.9636 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001343/0.005303, allocations: 114 kB / 1.004 GB, free: 9.27 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.052e-05/0.005313, allocations: 4 kB / 1.004 GB, free: 9.266 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.737e-06/0.005317, allocations: 0 / 1.004 GB, free: 9.266 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.526e-06/0.005326, allocations: 4 kB / 1.004 GB, free: 9.262 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.496e-05/0.005381, allocations: 15.92 kB / 1.004 GB, free: 9.246 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.141e-06/0.005387, allocations: 12.14 kB / 1.004 GB, free: 9.234 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.29e-05/0.00542, allocations: 11.89 kB / 1.004 GB, free: 9.223 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.047e-06/0.005429, allocations: 11.98 kB / 1.004 GB, free: 9.211 MB / 0.9636 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.135e-05/0.00549, allocations: 113.9 kB / 1.004 GB, free: 9.09 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.456e-06/0.005499, allocations: 7.938 kB / 1.004 GB, free: 9.082 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001554/0.005654, allocations: 106 kB / 1.004 GB, free: 8.973 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.005656, allocations: 0 / 1.004 GB, free: 8.973 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.005659, allocations: 0 / 1.004 GB, free: 8.973 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.005662, allocations: 0 / 1.004 GB, free: 8.973 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002452/0.005908, allocations: 317.5 kB / 1.004 GB, free: 8.613 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.005909, allocations: 4 kB / 1.004 GB, free: 8.609 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.473e-05/0.005934, allocations: 11.98 kB / 1.004 GB, free: 8.598 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.122e-06/0.005935, allocations: 0 / 1.004 GB, free: 8.598 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.374e-06/0.005942, allocations: 4 kB / 1.004 GB, free: 8.594 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.21e-07/0.005943, allocations: 0 / 1.004 GB, free: 8.594 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-07/0.005943, allocations: 0 / 1.004 GB, free: 8.594 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001387/0.006082, allocations: 191.4 kB / 1.004 GB, free: 8.391 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 7.975e-06/0.00609, allocations: 11.97 kB / 1.004 GB, free: 8.379 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.072e-05/0.006101, allocations: 8 kB / 1.004 GB, free: 8.371 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.596e-05/0.006147, allocations: 11.98 kB / 1.004 GB, free: 8.359 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.701e-05/0.006174, allocations: 4 kB / 1.004 GB, free: 8.355 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.898e-06/0.006184, allocations: 0 / 1.004 GB, free: 8.355 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 2.952e-05/0.006213, allocations: 95.39 kB / 1.004 GB, free: 8.262 MB / 0.9636 GB Notification: Performance of sort global known variables: time 5e-08/0.006213, allocations: 0 / 1.004 GB, free: 8.262 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001552/0.006368, allocations: 12 kB / 1.004 GB, free: 8.25 MB / 0.9636 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.0003323/0.006701, allocations: 0.7241 MB / 1.005 GB, free: 7.496 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001299/0.006831, allocations: 67.89 kB / 1.005 GB, free: 7.43 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.122e-06/0.006832, allocations: 0 / 1.005 GB, free: 7.43 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 5.205e-05/0.006884, allocations: 27.97 kB / 1.005 GB, free: 7.402 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00016/0.007044, allocations: 18.17 kB / 1.005 GB, free: 7.387 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008857/0.007929, allocations: 1.375 MB / 1.007 GB, free: 5.91 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.858e-05/0.007968, allocations: 72.98 kB / 1.007 GB, free: 5.82 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 2.028e-05/0.007988, allocations: 4 kB / 1.007 GB, free: 5.816 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.838e-05/0.008017, allocations: 16.5 kB / 1.007 GB, free: 5.801 MB / 0.9636 GB Notification: Performance of SimCode: time 5.11e-07/0.008017, allocations: 0 / 1.007 GB, free: 5.801 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01347/0.02148, allocations: 2.445 MB / 1.009 GB, free: 3.492 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.662/6.684, allocations: 8 kB / 1.009 GB, free: 3.484 MB / 0.9636 GB " [Timeout remaining time 293] (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 800 --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) [Timeout 840.0] 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable sampler1.u in file Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.csv. Warning: Get data of variable sampler1.u from file Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.868926994502544]