Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_13_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.0009545/0.0009545, allocations: 80.52 kB / 19.95 MB, free: 4.602 MB / 18.57 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.001472/0.001472, allocations: 173.2 kB / 23.24 MB, free: 1.324 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.9296/0.9296, allocations: 177.1 MB / 203.5 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/package.mo): time 1.942/1.942, allocations: 389.6 MB / 0.6343 GB, free: 12.57 MB / 0.6042 GB " [Timeout remaining time 177] Using package Buildings with version 13.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/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_13_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,fileNamePrefix="Buildings_13_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.236e-06/3.236e-06, allocations: 0 / 1.001 GB, free: 13.53 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.234e-05/2.558e-05, allocations: 5.938 kB / 1.001 GB, free: 13.52 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001631/0.001657, allocations: 0.6468 MB / 1.001 GB, free: 12.88 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001226/0.002882, allocations: 1.093 MB / 1.002 GB, free: 11.77 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.976e-05/0.002932, allocations: 0 / 1.002 GB, free: 11.77 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 2.692e-05/0.002959, allocations: 3.938 kB / 1.002 GB, free: 11.77 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 6.634e-05/0.003025, allocations: 3.938 kB / 1.002 GB, free: 11.77 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002879/0.003313, allocations: 51.7 kB / 1.002 GB, free: 11.71 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0001003/0.003413, allocations: 47.84 kB / 1.002 GB, free: 11.67 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 9.354e-05/0.003507, allocations: 8 kB / 1.002 GB, free: 11.66 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 8.681e-05/0.003594, allocations: 31.89 kB / 1.002 GB, free: 11.63 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 4.827e-05/0.003642, allocations: 15.98 kB / 1.003 GB, free: 11.61 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.531e-05/0.003657, allocations: 8 kB / 1.003 GB, free: 11.61 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 6.187e-05/0.003719, allocations: 15.98 kB / 1.003 GB, free: 11.59 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 2.452e-05/0.003744, allocations: 15.91 kB / 1.003 GB, free: 11.57 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 2.948e-05/0.003773, allocations: 12 kB / 1.003 GB, free: 11.56 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001452/0.003918, allocations: 67.77 kB / 1.003 GB, free: 11.5 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.003921, allocations: 0 / 1.003 GB, free: 11.5 MB / 0.9636 GB Notification: Performance of FrontEnd: time 8.61e-07/0.003922, allocations: 0 / 1.003 GB, free: 11.5 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.128e-06/0.003926, allocations: 0 / 1.003 GB, free: 11.5 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.0004922/0.004419, allocations: 294.2 kB / 1.003 GB, free: 11.18 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.00446, allocations: 13.34 kB / 1.003 GB, free: 11.16 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.861e-05/0.004499, allocations: 38.67 kB / 1.003 GB, free: 11.12 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.907e-05/0.004578, allocations: 8.891 kB / 1.003 GB, free: 11.11 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.53e-05/0.004663, allocations: 113.7 kB / 1.003 GB, free: 10.97 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.164e-05/0.004675, allocations: 384 / 1.003 GB, free: 10.97 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.073e-05/0.004686, allocations: 4.375 kB / 1.003 GB, free: 10.97 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001601/0.004846, allocations: 66.2 kB / 1.003 GB, free: 10.9 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/0.004854, allocations: 192 / 1.003 GB, free: 10.9 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.161e-05/0.004866, allocations: 8.359 kB / 1.003 GB, free: 10.89 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.004871, allocations: 4.125 kB / 1.003 GB, free: 10.89 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001222/0.004993, allocations: 47.95 kB / 1.003 GB, free: 10.84 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003815/0.005375, allocations: 235.9 kB / 1.003 GB, free: 10.57 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001304/0.005505, allocations: 50.55 kB / 1.003 GB, free: 10.51 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.659e-05/0.005572, allocations: 24.97 kB / 1.003 GB, free: 10.48 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 2.011e-05/0.005592, allocations: 7.938 kB / 1.003 GB, free: 10.47 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001778/0.00577, allocations: 75.38 kB / 1.004 GB, free: 10.39 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=6): time 1.252e-06/0.005771, allocations: 3.938 kB / 1.004 GB, free: 10.38 MB / 0.9636 GB Notification: Performance of matching and sorting (n=6): time 0.0003126/0.006083, allocations: 121.6 kB / 1.004 GB, free: 10.26 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.614e-05/0.00612, allocations: 51.41 kB / 1.004 GB, free: 10.2 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.278e-05/0.006192, allocations: 110.1 kB / 1.004 GB, free: 10.08 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.297e-05/0.006205, allocations: 25.7 kB / 1.004 GB, free: 10.05 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 5.221e-05/0.006258, allocations: 92.03 kB / 1.004 GB, free: 9.953 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.754e-05/0.006275, allocations: 15.91 kB / 1.004 GB, free: 9.938 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.195e-05/0.006317, allocations: 29.7 kB / 1.004 GB, free: 9.902 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 8.702e-05/0.006404, allocations: 314.8 kB / 1.004 GB, free: 9.586 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.918e-05/0.006473, allocations: 23.97 kB / 1.004 GB, free: 9.562 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.108e-05/0.006554, allocations: 55.39 kB / 1.004 GB, free: 9.496 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002756/0.00683, allocations: 83.34 kB / 1.004 GB, free: 9.402 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.006834, allocations: 7.922 kB / 1.004 GB, free: 9.395 MB / 0.9636 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001922/0.007026, allocations: 101.5 kB / 1.005 GB, free: 9.289 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.007041, allocations: 8 kB / 1.005 GB, free: 9.281 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.007047, allocations: 0 / 1.005 GB, free: 9.281 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.007061, allocations: 0 / 1.005 GB, free: 9.281 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.972e-05/0.00714, allocations: 15.98 kB / 1.005 GB, free: 9.266 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.007146, allocations: 0 / 1.005 GB, free: 9.266 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.585e-05/0.007202, allocations: 19.97 kB / 1.005 GB, free: 9.246 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.07e-05/0.007212, allocations: 4 kB / 1.005 GB, free: 9.242 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 7.483e-05/0.007287, allocations: 122.7 kB / 1.005 GB, free: 9.117 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.374e-05/0.007301, allocations: 11.92 kB / 1.005 GB, free: 9.105 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002106/0.007511, allocations: 98.08 kB / 1.005 GB, free: 9.004 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.007515, allocations: 4 kB / 1.005 GB, free: 9 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.007519, allocations: 0 / 1.005 GB, free: 9 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.007523, allocations: 0 / 1.005 GB, free: 9 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003373/0.00786, allocations: 321.6 kB / 1.005 GB, free: 8.637 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-06/0.007862, allocations: 0 / 1.005 GB, free: 8.637 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.831e-05/0.0079, allocations: 11.98 kB / 1.005 GB, free: 8.625 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.007903, allocations: 0 / 1.005 GB, free: 8.625 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.127e-06/0.007912, allocations: 4 kB / 1.005 GB, free: 8.621 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.007915, allocations: 4 kB / 1.005 GB, free: 8.617 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.007918, allocations: 3.984 kB / 1.005 GB, free: 8.613 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002033/0.008121, allocations: 199.7 kB / 1.005 GB, free: 8.402 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 8.726e-06/0.00813, allocations: 7.953 kB / 1.005 GB, free: 8.395 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.256e-05/0.008142, allocations: 0 / 1.005 GB, free: 8.395 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.915e-05/0.008211, allocations: 11.98 kB / 1.005 GB, free: 8.383 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.002e-05/0.008251, allocations: 8.031 kB / 1.005 GB, free: 8.375 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.386e-05/0.008265, allocations: 3.984 kB / 1.005 GB, free: 8.371 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 3.567e-05/0.008301, allocations: 87.28 kB / 1.005 GB, free: 8.285 MB / 0.9636 GB Notification: Performance of sort global known variables: time 7e-08/0.008301, allocations: 3.938 kB / 1.005 GB, free: 8.281 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0002462/0.008547, allocations: 11.98 kB / 1.005 GB, free: 8.27 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.0004578/0.009005, allocations: 0.7319 MB / 1.006 GB, free: 7.508 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.000194/0.009199, allocations: 63.89 kB / 1.006 GB, free: 7.445 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.009201, allocations: 0 / 1.006 GB, free: 7.445 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 7.126e-05/0.009272, allocations: 31.91 kB / 1.006 GB, free: 7.414 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002673/0.009539, allocations: 16.12 kB / 1.006 GB, free: 7.398 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001552/0.01109, allocations: 1.371 MB / 1.008 GB, free: 5.926 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.456e-05/0.01115, allocations: 63.34 kB / 1.008 GB, free: 5.844 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 3.828e-05/0.01118, allocations: 11.98 kB / 1.008 GB, free: 5.832 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.258e-05/0.01123, allocations: 16.5 kB / 1.008 GB, free: 5.816 MB / 0.9636 GB Notification: Performance of SimCode: time 7.51e-07/0.01123, allocations: 0 / 1.008 GB, free: 5.816 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1006/0.1118, allocations: 2.453 MB / 1.01 GB, free: 3.504 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.137/7.249, allocations: 4.266 kB / 1.01 GB, free: 3.504 MB / 0.9636 GB " [Timeout remaining time 293] (rm -f Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & (cd run_OMSimulator && /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --stripRoot --tempDir=temp_Buildings_13_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ../Buildings_13_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.fmu) > Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 52.5] (rm -f Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_fmpy.pipe ; mkfifo Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_fmpy.pipe ; head -c 1048576 < Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_fmpy.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_fmpy.sim & (cd run_fmpy && python3 -m fmpy simulate --output-file ../Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_fmpy_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ../Buildings_13_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.fmu) > Buildings_13_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_fmpy.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.976576769724488]