Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001728/0.001728, allocations: 103.6 kB / 18.94 MB, free: 2.688 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.00224/0.00224, allocations: 212 kB / 22.24 MB, free: 5.25 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.526/1.526, allocations: 230.6 MB / 256 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.268/3.268, allocations: 0.4892 GB / 0.7943 GB, free: 35.52 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,fileNamePrefix="Buildings_12_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.002139/0.002139, allocations: 74.84 kB / 1.153 GB, free: 25.75 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3318/0.3339, allocations: 176.1 MB / 1.325 GB, free: 2.379 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.002247/0.3361, allocations: 0.7431 MB / 1.326 GB, free: 1.641 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.00188/0.338, allocations: 1.186 MB / 1.327 GB, free: 452 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.372e-05/0.3381, allocations: 0 / 1.327 GB, free: 452 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.455e-05/0.3381, allocations: 7.875 kB / 1.327 GB, free: 444 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 9.925e-05/0.3382, allocations: 19.86 kB / 1.327 GB, free: 424 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006383/0.3389, allocations: 140.7 kB / 1.327 GB, free: 288 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.000246/0.3391, allocations: 123.7 kB / 1.327 GB, free: 164 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001403/0.3393, allocations: 20.17 kB / 1.327 GB, free: 140 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001469/0.3394, allocations: 47.91 kB / 1.327 GB, free: 92 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001182/0.3395, allocations: 43.81 kB / 1.327 GB, free: 48 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 4.698e-05/0.3396, allocations: 12 kB / 1.327 GB, free: 36 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 9.274e-05/0.3397, allocations: 27.97 kB / 1.327 GB, free: 8 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 5.564e-05/0.3397, allocations: 20.02 kB / 1.327 GB, free: 15.98 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 8.507e-05/0.3398, allocations: 39.84 kB / 1.327 GB, free: 15.95 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002597/0.3401, allocations: 127.7 kB / 1.328 GB, free: 15.82 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.3401, allocations: 0 / 1.328 GB, free: 15.82 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.585e-06/0.3401, allocations: 4 kB / 1.328 GB, free: 15.82 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.935e-06/0.3401, allocations: 0 / 1.328 GB, free: 15.82 MB / 1.029 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.0007385/0.3408, allocations: 347.7 kB / 1.328 GB, free: 15.45 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.3409, allocations: 8.031 kB / 1.328 GB, free: 15.44 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.48e-05/0.3409, allocations: 34.75 kB / 1.328 GB, free: 15.39 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000127/0.341, allocations: 12.89 kB / 1.328 GB, free: 15.38 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000148/0.3412, allocations: 122.4 kB / 1.328 GB, free: 15.24 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.667e-05/0.3412, allocations: 8.375 kB / 1.328 GB, free: 15.23 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.841e-05/0.3413, allocations: 8.375 kB / 1.328 GB, free: 15.22 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002308/0.3415, allocations: 77.84 kB / 1.328 GB, free: 15.14 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.3415, allocations: 4 kB / 1.328 GB, free: 15.14 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.384e-05/0.3415, allocations: 4 kB / 1.328 GB, free: 15.13 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.786e-06/0.3415, allocations: 3.984 kB / 1.328 GB, free: 15.13 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002126/0.3417, allocations: 47.95 kB / 1.328 GB, free: 15.08 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006246/0.3424, allocations: 291.8 kB / 1.328 GB, free: 14.75 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001919/0.3425, allocations: 54.55 kB / 1.329 GB, free: 14.69 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001062/0.3427, allocations: 32.95 kB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.535e-05/0.3427, allocations: 0 / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003236/0.343, allocations: 91.34 kB / 1.329 GB, free: 14.55 MB / 1.029 GB Notification: Performance of pre-optimization done (n=8): time 1.352e-06/0.343, allocations: 4 kB / 1.329 GB, free: 14.55 MB / 1.029 GB Notification: Performance of matching and sorting (n=8): time 0.000515/0.3435, allocations: 149.6 kB / 1.329 GB, free: 14.4 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.186e-05/0.3436, allocations: 67.33 kB / 1.329 GB, free: 14.32 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000115/0.3437, allocations: 113.8 kB / 1.329 GB, free: 14.2 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.043e-05/0.3437, allocations: 29.7 kB / 1.329 GB, free: 14.16 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.01e-05/0.3438, allocations: 96.08 kB / 1.329 GB, free: 14.07 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.888e-05/0.3438, allocations: 23.8 kB / 1.329 GB, free: 14.04 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.022e-05/0.3439, allocations: 37.7 kB / 1.329 GB, free: 14 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001716/0.3441, allocations: 326.8 kB / 1.329 GB, free: 13.67 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001947/0.3443, allocations: 85.66 kB / 1.33 GB, free: 13.58 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002292/0.3445, allocations: 115.2 kB / 1.33 GB, free: 13.45 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000312/0.3448, allocations: 158.7 kB / 1.33 GB, free: 13.27 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.541e-06/0.3448, allocations: 8 kB / 1.33 GB, free: 13.26 MB / 1.029 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000534/0.3454, allocations: 240.8 kB / 1.33 GB, free: 13 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 4.923e-05/0.3454, allocations: 37.7 kB / 1.33 GB, free: 12.96 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.3454, allocations: 0 / 1.33 GB, free: 12.96 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.764e-05/0.3454, allocations: 4 kB / 1.33 GB, free: 12.96 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001247/0.3456, allocations: 11.98 kB / 1.33 GB, free: 12.95 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.109e-05/0.3456, allocations: 8.156 kB / 1.33 GB, free: 12.94 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002201/0.3458, allocations: 31.95 kB / 1.33 GB, free: 12.91 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.033e-05/0.3458, allocations: 15.94 kB / 1.33 GB, free: 12.89 MB / 1.029 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.0001403/0.346, allocations: 131.6 kB / 1.33 GB, free: 12.75 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.823e-05/0.346, allocations: 3.953 kB / 1.33 GB, free: 12.75 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003354/0.3463, allocations: 118 kB / 1.33 GB, free: 12.62 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.142e-06/0.3463, allocations: 8 kB / 1.33 GB, free: 12.62 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.3463, allocations: 0 / 1.33 GB, free: 12.62 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.3463, allocations: 3.984 kB / 1.33 GB, free: 12.61 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005312/0.3469, allocations: 345.9 kB / 1.331 GB, free: 12.23 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.3469, allocations: 0 / 1.331 GB, free: 12.23 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.267e-05/0.3469, allocations: 11.98 kB / 1.331 GB, free: 12.21 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.606e-06/0.3469, allocations: 3.938 kB / 1.331 GB, free: 12.21 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.959e-06/0.347, allocations: 3.938 kB / 1.331 GB, free: 12.21 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.356e-06/0.347, allocations: 11.94 kB / 1.331 GB, free: 12.2 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.347, allocations: 0 / 1.331 GB, free: 12.2 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003685/0.3473, allocations: 219.5 kB / 1.331 GB, free: 11.96 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.85e-05/0.3473, allocations: 7.953 kB / 1.331 GB, free: 11.96 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.501e-05/0.3474, allocations: 8 kB / 1.331 GB, free: 11.95 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.982e-05/0.3475, allocations: 11.92 kB / 1.331 GB, free: 11.94 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.072e-05/0.3475, allocations: 7.984 kB / 1.331 GB, free: 11.93 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.043e-05/0.3475, allocations: 4 kB / 1.331 GB, free: 11.93 MB / 1.029 GB Notification: Performance of sorting global known variables: time 8.638e-05/0.3476, allocations: 95.31 kB / 1.331 GB, free: 11.83 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3476, allocations: 4 kB / 1.331 GB, free: 11.83 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002914/0.3479, allocations: 24 kB / 1.331 GB, free: 11.8 MB / 1.029 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.0007488/0.3486, allocations: 0.7553 MB / 1.332 GB, free: 11.02 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004342/0.3491, allocations: 193 kB / 1.332 GB, free: 10.82 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3491, allocations: 320 / 1.332 GB, free: 10.82 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001287/0.3492, allocations: 35.97 kB / 1.332 GB, free: 10.78 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003145/0.3495, allocations: 23.86 kB / 1.332 GB, free: 10.76 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002543/0.3521, allocations: 1.836 MB / 1.334 GB, free: 8.781 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.168e-05/0.3522, allocations: 75.88 kB / 1.334 GB, free: 8.688 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.906e-05/0.3522, allocations: 7.938 kB / 1.334 GB, free: 8.68 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.298e-05/0.3523, allocations: 23.42 kB / 1.334 GB, free: 8.656 MB / 1.029 GB Notification: Performance of SimCode: time 7.02e-07/0.3523, allocations: 0 / 1.334 GB, free: 8.656 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03336/0.3856, allocations: 3.223 MB / 1.337 GB, free: 5.59 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.35/11.73, allocations: 3.281 kB / 1.337 GB, free: 5.59 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & python3 -m fmpy simulate --output-file Buildings_12_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_12_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.csv. Warning: Get data of variable booPul.y from file Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.822640225291252]