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.001431/0.001431, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001668/0.001668, allocations: 212 kB / 22.24 MB, free: 4.855 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.501/1.501, allocations: 230.6 MB / 256 MB, free: 7.801 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.889/2.889, allocations: 476 MB / 0.7699 GB, free: 4.738 MB / 0.6231 GB " [Timeout remaining time 176] 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.002123/0.002123, allocations: 72.22 kB / 1.117 GB, free: 41.07 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3365/0.3386, allocations: 170 MB / 1.283 GB, free: 12.46 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.00251/0.3411, allocations: 0.7444 MB / 1.283 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002037/0.3431, allocations: 1.18 MB / 1.284 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.538e-05/0.3432, allocations: 7.938 kB / 1.284 GB, free: 10.53 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 5.063e-05/0.3433, allocations: 7.922 kB / 1.284 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001069/0.3434, allocations: 11.88 kB / 1.284 GB, free: 10.51 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007113/0.3441, allocations: 141.7 kB / 1.285 GB, free: 10.37 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.000273/0.3444, allocations: 115.8 kB / 1.285 GB, free: 10.26 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001585/0.3445, allocations: 21.86 kB / 1.285 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001666/0.3447, allocations: 47.89 kB / 1.285 GB, free: 10.19 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001424/0.3448, allocations: 47.81 kB / 1.285 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.744e-05/0.3449, allocations: 12 kB / 1.285 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 9.743e-05/0.345, allocations: 27.94 kB / 1.285 GB, free: 10.1 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.933e-05/0.345, allocations: 19.92 kB / 1.285 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 8.007e-05/0.3451, allocations: 43.83 kB / 1.285 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002799/0.3454, allocations: 127.1 kB / 1.285 GB, free: 9.918 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.3454, allocations: 0 / 1.285 GB, free: 9.918 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.114e-06/0.3454, allocations: 0 / 1.285 GB, free: 9.918 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.484e-06/0.3454, allocations: 0 / 1.285 GB, free: 9.918 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.0007311/0.3461, allocations: 341.8 kB / 1.285 GB, free: 9.551 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/0.3461, allocations: 12.03 kB / 1.285 GB, free: 9.539 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.139e-05/0.3462, allocations: 42.73 kB / 1.285 GB, free: 9.488 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001077/0.3463, allocations: 8.891 kB / 1.285 GB, free: 9.48 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001368/0.3464, allocations: 118.4 kB / 1.286 GB, free: 9.34 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.994e-05/0.3465, allocations: 12.3 kB / 1.286 GB, free: 9.328 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.904e-05/0.3465, allocations: 12.38 kB / 1.286 GB, free: 9.316 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002277/0.3467, allocations: 73.97 kB / 1.286 GB, free: 9.238 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.3467, allocations: 0 / 1.286 GB, free: 9.238 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.433e-05/0.3468, allocations: 4 kB / 1.286 GB, free: 9.234 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.169e-06/0.3468, allocations: 0 / 1.286 GB, free: 9.234 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001953/0.347, allocations: 51.95 kB / 1.286 GB, free: 9.184 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005728/0.3475, allocations: 291.8 kB / 1.286 GB, free: 8.855 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001792/0.3477, allocations: 58.48 kB / 1.286 GB, free: 8.789 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001027/0.3478, allocations: 32.95 kB / 1.286 GB, free: 8.754 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.821e-05/0.3478, allocations: 96 / 1.286 GB, free: 8.754 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002666/0.3481, allocations: 95.28 kB / 1.286 GB, free: 8.648 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=8): time 1.523e-06/0.3481, allocations: 0 / 1.286 GB, free: 8.648 MB / 0.9825 GB Notification: Performance of matching and sorting (n=8): time 0.000495/0.3486, allocations: 153.5 kB / 1.286 GB, free: 8.492 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.37e-05/0.3486, allocations: 55.41 kB / 1.286 GB, free: 8.426 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000179/0.3488, allocations: 117.8 kB / 1.286 GB, free: 8.301 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.235e-05/0.3489, allocations: 33.7 kB / 1.286 GB, free: 8.262 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 9.037e-05/0.3489, allocations: 99.97 kB / 1.287 GB, free: 8.16 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.858e-05/0.349, allocations: 27.83 kB / 1.287 GB, free: 8.133 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.974e-05/0.3491, allocations: 37.7 kB / 1.287 GB, free: 8.09 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001772/0.3492, allocations: 322.8 kB / 1.287 GB, free: 7.766 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001976/0.3494, allocations: 85.66 kB / 1.287 GB, free: 7.676 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002068/0.3496, allocations: 116.2 kB / 1.287 GB, free: 7.539 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003413/0.35, allocations: 154.8 kB / 1.287 GB, free: 7.363 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.35, allocations: 0 / 1.287 GB, free: 7.363 MB / 0.9825 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004978/0.3505, allocations: 236.8 kB / 1.288 GB, free: 7.113 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.872e-05/0.3505, allocations: 41.69 kB / 1.288 GB, free: 7.066 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.3505, allocations: 4 kB / 1.288 GB, free: 7.062 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.3506, allocations: 8.156 kB / 1.288 GB, free: 7.055 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001114/0.3507, allocations: 19.92 kB / 1.288 GB, free: 7.035 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.623e-06/0.3507, allocations: 0 / 1.288 GB, free: 7.035 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002107/0.3509, allocations: 35.91 kB / 1.288 GB, free: 7 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.451e-05/0.3509, allocations: 11.94 kB / 1.288 GB, free: 6.988 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.0001374/0.351, allocations: 121.8 kB / 1.288 GB, free: 6.859 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.108e-05/0.3511, allocations: 11.94 kB / 1.288 GB, free: 6.848 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003737/0.3514, allocations: 125.9 kB / 1.288 GB, free: 6.715 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.3514, allocations: 4 kB / 1.288 GB, free: 6.711 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.3514, allocations: 0 / 1.288 GB, free: 6.711 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.3514, allocations: 0 / 1.288 GB, free: 6.711 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004743/0.3519, allocations: 345.5 kB / 1.288 GB, free: 6.324 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.3519, allocations: 7.938 kB / 1.288 GB, free: 6.316 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.153e-05/0.352, allocations: 7.984 kB / 1.288 GB, free: 6.309 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.352, allocations: 7.938 kB / 1.288 GB, free: 6.301 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.128e-05/0.352, allocations: 4 kB / 1.288 GB, free: 6.297 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.099e-06/0.352, allocations: 7.922 kB / 1.288 GB, free: 6.289 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.352, allocations: 0 / 1.288 GB, free: 6.289 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003374/0.3523, allocations: 215.4 kB / 1.288 GB, free: 6.062 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.21e-05/0.3524, allocations: 3.953 kB / 1.288 GB, free: 6.059 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.779e-05/0.3524, allocations: 4.047 kB / 1.288 GB, free: 6.055 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.959e-05/0.3525, allocations: 19.91 kB / 1.288 GB, free: 6.035 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.834e-05/0.3525, allocations: 11.92 kB / 1.288 GB, free: 6.023 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.477e-06/0.3525, allocations: 4 kB / 1.288 GB, free: 6.02 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.277e-05/0.3526, allocations: 91.27 kB / 1.289 GB, free: 5.93 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.3526, allocations: 0 / 1.289 GB, free: 5.93 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002719/0.3529, allocations: 31.94 kB / 1.289 GB, free: 5.898 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.0006856/0.3535, allocations: 0.7437 MB / 1.289 GB, free: 5.129 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004129/0.354, allocations: 197.6 kB / 1.29 GB, free: 4.918 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.354, allocations: 0 / 1.29 GB, free: 4.918 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.000132/0.3541, allocations: 43.91 kB / 1.29 GB, free: 4.875 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002824/0.3544, allocations: 11.94 kB / 1.29 GB, free: 4.863 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002519/0.3569, allocations: 1.842 MB / 1.291 GB, free: 2.875 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.778e-05/0.357, allocations: 83.2 kB / 1.291 GB, free: 2.773 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.734e-05/0.357, allocations: 4 kB / 1.291 GB, free: 2.77 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.065e-05/0.3571, allocations: 15.44 kB / 1.291 GB, free: 2.754 MB / 0.9825 GB Notification: Performance of SimCode: time 5.21e-07/0.3571, allocations: 4 kB / 1.291 GB, free: 2.75 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03328/0.3903, allocations: 3.221 MB / 1.295 GB, free: 15.7 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.55/11.94, allocations: 0 / 1.295 GB, free: 15.7 MB / 0.9981 GB " [Timeout remaining time 287] (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 & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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] "Error: Could not read variable booPul.y in file Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.csv. Warning: Get data of variable booPul.y from file Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.79482489824295]