Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.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.001349/0.001349, allocations: 114.3 kB / 18.94 MB, free: 2.793 MB / 14.72 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.001489/0.001489, allocations: 219.9 kB / 22.26 MB, free: 5.211 MB / 14.72 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 1.476/1.476, allocations: 230.6 MB / 256 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.852/2.852, allocations: 476.7 MB / 0.7707 GB, free: 4.266 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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.TriggeredSampler,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002031/0.002031, allocations: 65.27 kB / 1.117 GB, free: 40.38 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3524/0.3545, allocations: 170 MB / 1.283 GB, free: 11.69 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.002376/0.3568, allocations: 0.7529 MB / 1.284 GB, free: 10.94 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001857/0.3587, allocations: 1.219 MB / 1.285 GB, free: 9.707 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.232e-05/0.3587, allocations: 0 / 1.285 GB, free: 9.707 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 4.198e-05/0.3588, allocations: 11.86 kB / 1.285 GB, free: 9.695 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 8.223e-05/0.3589, allocations: 11.88 kB / 1.285 GB, free: 9.684 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005655/0.3594, allocations: 143.4 kB / 1.285 GB, free: 9.547 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.000232/0.3597, allocations: 123.8 kB / 1.286 GB, free: 9.426 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00012/0.3598, allocations: 20.17 kB / 1.286 GB, free: 9.402 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001048/0.3599, allocations: 59.83 kB / 1.286 GB, free: 9.344 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000118/0.36, allocations: 51.81 kB / 1.286 GB, free: 9.293 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.411e-05/0.36, allocations: 8 kB / 1.286 GB, free: 9.285 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 8.192e-05/0.3601, allocations: 27.98 kB / 1.286 GB, free: 9.258 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.702e-05/0.3601, allocations: 11.94 kB / 1.286 GB, free: 9.246 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 7.779e-05/0.3602, allocations: 51.83 kB / 1.286 GB, free: 9.195 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002004/0.3604, allocations: 123.1 kB / 1.286 GB, free: 9.078 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.3604, allocations: 4 kB / 1.286 GB, free: 9.074 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.633e-06/0.3604, allocations: 0 / 1.286 GB, free: 9.074 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.03e-05/0.3604, allocations: 0 / 1.286 GB, free: 9.074 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006077/0.361, allocations: 347.8 kB / 1.286 GB, free: 8.699 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.3611, allocations: 8.031 kB / 1.286 GB, free: 8.691 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.788e-05/0.3611, allocations: 34.75 kB / 1.286 GB, free: 8.648 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.162e-05/0.3612, allocations: 8.891 kB / 1.286 GB, free: 8.641 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000127/0.3613, allocations: 130.4 kB / 1.286 GB, free: 8.488 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.844e-05/0.3614, allocations: 8.375 kB / 1.286 GB, free: 8.48 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.564e-05/0.3614, allocations: 8.312 kB / 1.286 GB, free: 8.473 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002033/0.3616, allocations: 81.97 kB / 1.287 GB, free: 8.387 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.265e-06/0.3616, allocations: 0 / 1.287 GB, free: 8.387 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.839e-06/0.3616, allocations: 0 / 1.287 GB, free: 8.387 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.3616, allocations: 0 / 1.287 GB, free: 8.387 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002029/0.3618, allocations: 51.89 kB / 1.287 GB, free: 8.336 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005563/0.3624, allocations: 315.7 kB / 1.287 GB, free: 7.984 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001834/0.3626, allocations: 62.58 kB / 1.287 GB, free: 7.914 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001093/0.3627, allocations: 28.97 kB / 1.287 GB, free: 7.883 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.137e-05/0.3627, allocations: 0 / 1.287 GB, free: 7.883 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002601/0.3629, allocations: 83.36 kB / 1.287 GB, free: 7.789 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=8): time 1.172e-06/0.3629, allocations: 4 kB / 1.287 GB, free: 7.785 MB / 0.9825 GB Notification: Performance of matching and sorting (n=8): time 0.0004677/0.3634, allocations: 153.5 kB / 1.287 GB, free: 7.629 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.978e-05/0.3635, allocations: 59.39 kB / 1.287 GB, free: 7.559 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001025/0.3636, allocations: 113.8 kB / 1.287 GB, free: 7.438 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.729e-05/0.3636, allocations: 33.64 kB / 1.287 GB, free: 7.398 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.596e-05/0.3637, allocations: 108 kB / 1.287 GB, free: 7.289 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.512e-05/0.3637, allocations: 23.86 kB / 1.288 GB, free: 7.266 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.952e-05/0.3638, allocations: 29.7 kB / 1.288 GB, free: 7.23 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001646/0.3639, allocations: 326.8 kB / 1.288 GB, free: 6.902 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000161/0.3641, allocations: 55.95 kB / 1.288 GB, free: 6.848 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001825/0.3643, allocations: 89.11 kB / 1.288 GB, free: 6.742 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003036/0.3646, allocations: 150.7 kB / 1.288 GB, free: 6.57 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.3646, allocations: 4 kB / 1.288 GB, free: 6.566 MB / 0.9825 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004518/0.365, allocations: 211.1 kB / 1.288 GB, free: 6.348 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.264e-05/0.3651, allocations: 37.69 kB / 1.288 GB, free: 6.305 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.3651, allocations: 0 / 1.288 GB, free: 6.305 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.519e-05/0.3651, allocations: 4 kB / 1.288 GB, free: 6.301 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.776e-05/0.3652, allocations: 15.98 kB / 1.288 GB, free: 6.285 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.49e-06/0.3652, allocations: 4.094 kB / 1.288 GB, free: 6.281 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002138/0.3654, allocations: 35.97 kB / 1.288 GB, free: 6.246 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.61e-05/0.3654, allocations: 15.92 kB / 1.288 GB, free: 6.23 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * 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.0001125/0.3656, allocations: 129.7 kB / 1.289 GB, free: 6.094 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.372e-05/0.3656, allocations: 3.953 kB / 1.289 GB, free: 6.09 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000321/0.3659, allocations: 130 kB / 1.289 GB, free: 5.953 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.3659, allocations: 0 / 1.289 GB, free: 5.953 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.3659, allocations: 4 kB / 1.289 GB, free: 5.949 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.3659, allocations: 0 / 1.289 GB, free: 5.949 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004704/0.3664, allocations: 353.5 kB / 1.289 GB, free: 5.555 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.3664, allocations: 0 / 1.289 GB, free: 5.555 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.151e-05/0.3664, allocations: 11.98 kB / 1.289 GB, free: 5.543 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.067e-06/0.3665, allocations: 4 kB / 1.289 GB, free: 5.539 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.905e-06/0.3665, allocations: 4 kB / 1.289 GB, free: 5.535 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.639e-06/0.3665, allocations: 3.938 kB / 1.289 GB, free: 5.531 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.3665, allocations: 0 / 1.289 GB, free: 5.531 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003327/0.3668, allocations: 219.4 kB / 1.289 GB, free: 5.301 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.077e-05/0.3668, allocations: 7.953 kB / 1.289 GB, free: 5.293 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.776e-05/0.3668, allocations: 0 / 1.289 GB, free: 5.293 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.837e-05/0.3669, allocations: 15.92 kB / 1.289 GB, free: 5.277 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.672e-05/0.367, allocations: 8 kB / 1.289 GB, free: 5.27 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.005e-05/0.367, allocations: 7.984 kB / 1.289 GB, free: 5.262 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.954e-05/0.367, allocations: 87.28 kB / 1.289 GB, free: 5.176 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9e-08/0.367, allocations: 0 / 1.289 GB, free: 5.176 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002697/0.3673, allocations: 23.98 kB / 1.289 GB, free: 5.152 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.000694/0.368, allocations: 0.7519 MB / 1.29 GB, free: 4.375 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004028/0.3684, allocations: 171.2 kB / 1.29 GB, free: 4.195 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.3684, allocations: 0 / 1.29 GB, free: 4.195 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001211/0.3685, allocations: 40.28 kB / 1.29 GB, free: 4.156 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002979/0.3688, allocations: 24.14 kB / 1.29 GB, free: 4.133 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00225/0.3711, allocations: 1.708 MB / 1.292 GB, free: 2.305 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003581/0.3714, allocations: 0.6962 MB / 1.293 GB, free: 1.582 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.221e-05/0.3715, allocations: 4 kB / 1.293 GB, free: 1.578 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.204e-05/0.3715, allocations: 23.42 kB / 1.293 GB, free: 1.555 MB / 0.9825 GB Notification: Performance of SimCode: time 3.11e-07/0.3715, allocations: 0 / 1.293 GB, free: 1.555 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03024/0.4018, allocations: 2.704 MB / 1.295 GB, free: 15 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.21/11.61, allocations: 0.75 kB / 1.295 GB, free: 15 MB / 0.9981 GB " [Timeout remaining time 288] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.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: 18.27455070312135]