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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002034/0.002033, allocations: 106.1 kB / 16.4 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001587/0.001587, allocations: 192.5 kB / 19.35 MB, free: 3.734 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.435/1.435, allocations: 222.9 MB / 245.1 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.878/2.878, allocations: 489 MB / 0.7678 GB, free: 8 kB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.00202/0.00202, allocations: 71.88 kB / 1.101 GB, free: 6.156 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7942/0.7962, allocations: 163.8 MB / 1.261 GB, free: 7.188 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001918/0.7982, allocations: 0.673 MB / 1.262 GB, free: 6.52 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001452/0.7996, allocations: 1.049 MB / 1.263 GB, free: 5.457 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.318e-05/0.7997, allocations: 4 kB / 1.263 GB, free: 5.453 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.74e-05/0.7997, allocations: 0 / 1.263 GB, free: 5.453 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.466e-05/0.7998, allocations: 11.86 kB / 1.263 GB, free: 5.441 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002499/0.8, allocations: 31.91 kB / 1.263 GB, free: 5.41 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001037/0.8002, allocations: 55.78 kB / 1.263 GB, free: 5.355 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 9.469e-05/0.8003, allocations: 14.66 kB / 1.263 GB, free: 5.344 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.26e-05/0.8003, allocations: 23.92 kB / 1.263 GB, free: 5.32 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 5.569e-05/0.8004, allocations: 19.92 kB / 1.263 GB, free: 5.301 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.57e-05/0.8004, allocations: 4 kB / 1.263 GB, free: 5.297 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 6.605e-05/0.8005, allocations: 15.98 kB / 1.263 GB, free: 5.281 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.466e-05/0.8005, allocations: 11.98 kB / 1.263 GB, free: 5.27 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.371e-05/0.8006, allocations: 27.84 kB / 1.263 GB, free: 5.242 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001373/0.8007, allocations: 51.8 kB / 1.263 GB, free: 5.191 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.8007, allocations: 0 / 1.263 GB, free: 5.191 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.483e-06/0.8007, allocations: 4 kB / 1.263 GB, free: 5.188 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.558e-06/0.8008, allocations: 0 / 1.263 GB, free: 5.188 MB / 0.9669 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.0006347/0.8014, allocations: 367.3 kB / 1.263 GB, free: 4.777 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.8014, allocations: 8.031 kB / 1.263 GB, free: 4.77 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.02e-05/0.8015, allocations: 38.69 kB / 1.263 GB, free: 4.723 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.001e-05/0.8015, allocations: 0.9375 kB / 1.263 GB, free: 4.723 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001611/0.8017, allocations: 180.3 kB / 1.264 GB, free: 4.508 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.543e-05/0.8017, allocations: 4.375 kB / 1.264 GB, free: 4.504 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.605e-05/0.8017, allocations: 4.375 kB / 1.264 GB, free: 4.5 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002174/0.8019, allocations: 66.2 kB / 1.264 GB, free: 4.43 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.802, allocations: 3.938 kB / 1.264 GB, free: 4.426 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.088e-05/0.802, allocations: 0 / 1.264 GB, free: 4.426 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.802, allocations: 4 kB / 1.264 GB, free: 4.422 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001919/0.8022, allocations: 43.89 kB / 1.264 GB, free: 4.379 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004354/0.8026, allocations: 276.8 kB / 1.264 GB, free: 4.059 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001692/0.8028, allocations: 50.55 kB / 1.264 GB, free: 4 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001054/0.8029, allocations: 32.95 kB / 1.264 GB, free: 3.965 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.019e-05/0.803, allocations: 3.938 kB / 1.264 GB, free: 3.961 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002187/0.8032, allocations: 79.31 kB / 1.264 GB, free: 3.871 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=6): time 1.423e-06/0.8032, allocations: 7.938 kB / 1.264 GB, free: 3.863 MB / 0.9669 GB Notification: Performance of matching and sorting (n=6): time 0.0004124/0.8036, allocations: 113.6 kB / 1.264 GB, free: 3.746 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.881e-05/0.8037, allocations: 59.39 kB / 1.264 GB, free: 3.676 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.092e-05/0.8038, allocations: 101.9 kB / 1.264 GB, free: 3.566 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.88e-05/0.8038, allocations: 25.7 kB / 1.264 GB, free: 3.535 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.282e-05/0.8039, allocations: 92.2 kB / 1.264 GB, free: 3.441 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.173e-05/0.8039, allocations: 19.83 kB / 1.264 GB, free: 3.422 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.31e-05/0.8039, allocations: 21.72 kB / 1.265 GB, free: 3.395 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001394/0.8041, allocations: 322.8 kB / 1.265 GB, free: 3.07 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001048/0.8042, allocations: 23.98 kB / 1.265 GB, free: 3.047 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001199/0.8043, allocations: 55.34 kB / 1.265 GB, free: 2.98 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002224/0.8046, allocations: 75.38 kB / 1.265 GB, free: 2.895 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.8046, allocations: 0.5 kB / 1.265 GB, free: 2.895 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002841/0.8049, allocations: 117.5 kB / 1.265 GB, free: 2.773 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/0.8049, allocations: 4 kB / 1.265 GB, free: 2.77 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.648e-06/0.8049, allocations: 0 / 1.265 GB, free: 2.77 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.294e-05/0.8049, allocations: 4 kB / 1.265 GB, free: 2.766 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001054/0.805, allocations: 15.98 kB / 1.265 GB, free: 2.75 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.877e-06/0.805, allocations: 4 kB / 1.265 GB, free: 2.746 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.909e-05/0.8051, allocations: 7.984 kB / 1.265 GB, free: 2.738 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.005e-05/0.8051, allocations: 4 kB / 1.265 GB, free: 2.734 MB / 0.9669 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 0.0001084/0.8052, allocations: 128.7 kB / 1.265 GB, free: 2.602 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.292e-05/0.8053, allocations: 3.953 kB / 1.265 GB, free: 2.598 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003007/0.8056, allocations: 102 kB / 1.265 GB, free: 2.488 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.8056, allocations: 0 / 1.265 GB, free: 2.488 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.8056, allocations: 0 / 1.265 GB, free: 2.488 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.8056, allocations: 0 / 1.265 GB, free: 2.488 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000495/0.8061, allocations: 358.4 kB / 1.266 GB, free: 2.082 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.8061, allocations: 0 / 1.266 GB, free: 2.082 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.114e-05/0.8062, allocations: 7.984 kB / 1.266 GB, free: 2.074 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.8062, allocations: 0 / 1.266 GB, free: 2.074 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.696e-06/0.8062, allocations: 4 kB / 1.266 GB, free: 2.07 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.8062, allocations: 0 / 1.266 GB, free: 2.07 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-06/0.8062, allocations: 0 / 1.266 GB, free: 2.07 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003311/0.8065, allocations: 199.4 kB / 1.266 GB, free: 1.859 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.861e-05/0.8066, allocations: 85.06 kB / 1.266 GB, free: 1.758 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.735e-05/0.8066, allocations: 7.938 kB / 1.266 GB, free: 1.75 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001112/0.8067, allocations: 7.984 kB / 1.266 GB, free: 1.742 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.984e-05/0.8068, allocations: 7.938 kB / 1.266 GB, free: 1.734 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.46e-05/0.8068, allocations: 4.172 kB / 1.266 GB, free: 1.73 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.311e-05/0.8069, allocations: 91.22 kB / 1.266 GB, free: 1.641 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8069, allocations: 8 kB / 1.266 GB, free: 1.633 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002418/0.8071, allocations: 8 kB / 1.266 GB, free: 1.625 MB / 0.9669 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.000697/0.8078, allocations: 0.7318 MB / 1.267 GB, free: 0.8672 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002668/0.8081, allocations: 63.94 kB / 1.267 GB, free: 0.8047 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.8081, allocations: 4 kB / 1.267 GB, free: 0.8008 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001257/0.8083, allocations: 31.92 kB / 1.267 GB, free: 0.7695 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002859/0.8085, allocations: 11.92 kB / 1.267 GB, free: 0.7578 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001768/0.8103, allocations: 1.381 MB / 1.268 GB, free: 15.28 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003692/0.8107, allocations: 0.6904 MB / 1.269 GB, free: 14.57 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.272e-05/0.8107, allocations: 0 / 1.269 GB, free: 14.57 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.627e-05/0.8108, allocations: 15.44 kB / 1.269 GB, free: 14.55 MB / 0.9825 GB Notification: Performance of SimCode: time 2.5e-07/0.8108, allocations: 0 / 1.269 GB, free: 14.55 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02332/0.8341, allocations: 1.756 MB / 1.271 GB, free: 12.89 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.156/8.99, allocations: 2.031 kB / 1.271 GB, free: 12.89 MB / 0.9825 GB " [Timeout remaining time 291] (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 --stepSize=0.0004 --timeout=800 --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) [Timeout 840.0] 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_2/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.16035723593086]