Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.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.001388/0.001388, allocations: 108.9 kB / 16.46 MB, free: 6.453 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.00167/0.00167, allocations: 216.2 kB / 19.43 MB, free: 3.625 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.56/1.56, allocations: 230.6 MB / 252.8 MB, free: 8.969 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.303/3.303, allocations: 0.49 GB / 0.7916 GB, free: 33.32 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.Logical.Validation.Edge,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_Edge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Edge,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_Edge",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.00215/0.00215, allocations: 68.42 kB / 1.149 GB, free: 26.37 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3527/0.3549, allocations: 176.1 MB / 1.321 GB, free: 3.34 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Edge): time 0.00219/0.357, allocations: 0.7427 MB / 1.322 GB, free: 2.602 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001547/0.3586, allocations: 1.186 MB / 1.323 GB, free: 1.402 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.517e-05/0.3586, allocations: 4 kB / 1.323 GB, free: 1.398 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.477e-05/0.3587, allocations: 7.922 kB / 1.323 GB, free: 1.391 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 6.629e-05/0.3587, allocations: 7.922 kB / 1.323 GB, free: 1.383 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004791/0.3592, allocations: 135.2 kB / 1.323 GB, free: 1.254 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.000178/0.3594, allocations: 115.8 kB / 1.323 GB, free: 1.141 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 8.781e-05/0.3595, allocations: 15.97 kB / 1.323 GB, free: 1.125 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 8.479e-05/0.3596, allocations: 47.91 kB / 1.323 GB, free: 1.078 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 9.279e-05/0.3597, allocations: 51.81 kB / 1.323 GB, free: 1.027 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.544e-05/0.3597, allocations: 12 kB / 1.323 GB, free: 1.016 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 6.378e-05/0.3597, allocations: 19.98 kB / 1.323 GB, free: 0.9961 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.501e-05/0.3598, allocations: 15.98 kB / 1.323 GB, free: 0.9805 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 7.11e-05/0.3598, allocations: 35.86 kB / 1.323 GB, free: 0.9453 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001827/0.36, allocations: 115.9 kB / 1.323 GB, free: 0.832 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.36, allocations: 0 / 1.323 GB, free: 0.832 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.122e-06/0.36, allocations: 0 / 1.323 GB, free: 0.832 MB / 1.014 GB Notification: Performance of Transformations before backend: time 4.698e-06/0.36, allocations: 0 / 1.323 GB, free: 0.832 MB / 1.014 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.0006089/0.3606, allocations: 420.9 kB / 1.324 GB, free: 372 kB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.3607, allocations: 11.98 kB / 1.324 GB, free: 360 kB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.926e-05/0.3607, allocations: 34.69 kB / 1.324 GB, free: 316 kB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.586e-05/0.3608, allocations: 20.81 kB / 1.324 GB, free: 296 kB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001315/0.3609, allocations: 172.2 kB / 1.324 GB, free: 84 kB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.412e-05/0.3609, allocations: 12.31 kB / 1.324 GB, free: 72 kB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.259e-05/0.3609, allocations: 8.375 kB / 1.324 GB, free: 64 kB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002007/0.3611, allocations: 62.22 kB / 1.324 GB, free: 16 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.3611, allocations: 7.938 kB / 1.324 GB, free: 15.99 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.087e-06/0.3612, allocations: 4 kB / 1.324 GB, free: 15.98 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.3612, allocations: 0 / 1.324 GB, free: 15.98 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001926/0.3614, allocations: 43.95 kB / 1.324 GB, free: 15.94 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004989/0.3619, allocations: 328.7 kB / 1.324 GB, free: 15.57 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002061/0.3621, allocations: 58.62 kB / 1.324 GB, free: 15.5 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001149/0.3622, allocations: 32.95 kB / 1.324 GB, free: 15.47 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.373e-05/0.3622, allocations: 0 / 1.324 GB, free: 15.47 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002917/0.3625, allocations: 95.25 kB / 1.325 GB, free: 15.36 MB / 1.029 GB Notification: Performance of pre-optimization done (n=8): time 1.432e-06/0.3625, allocations: 4 kB / 1.325 GB, free: 15.36 MB / 1.029 GB Notification: Performance of matching and sorting (n=8): time 0.000504/0.363, allocations: 129.6 kB / 1.325 GB, free: 15.23 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.374e-05/0.363, allocations: 59.39 kB / 1.325 GB, free: 15.16 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001285/0.3632, allocations: 117.8 kB / 1.325 GB, free: 15.03 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.754e-05/0.3632, allocations: 29.7 kB / 1.325 GB, free: 15 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.036e-05/0.3633, allocations: 92.14 kB / 1.325 GB, free: 14.9 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.171e-05/0.3633, allocations: 19.95 kB / 1.325 GB, free: 14.88 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.662e-05/0.3634, allocations: 41.7 kB / 1.325 GB, free: 14.84 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000185/0.3636, allocations: 326.7 kB / 1.325 GB, free: 14.51 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00018/0.3638, allocations: 47.97 kB / 1.325 GB, free: 14.46 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002073/0.364, allocations: 88.25 kB / 1.325 GB, free: 14.36 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003199/0.3643, allocations: 141.9 kB / 1.326 GB, free: 14.2 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.351e-06/0.3643, allocations: 3.984 kB / 1.326 GB, free: 14.2 MB / 1.029 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005115/0.3648, allocations: 207.2 kB / 1.326 GB, free: 13.98 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 5.489e-05/0.3649, allocations: 43.72 kB / 1.326 GB, free: 13.93 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.3649, allocations: 0 / 1.326 GB, free: 13.93 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.876e-05/0.3649, allocations: 3.938 kB / 1.326 GB, free: 13.93 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001042/0.365, allocations: 11.98 kB / 1.326 GB, free: 13.92 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.03e-05/0.365, allocations: 4 kB / 1.326 GB, free: 13.91 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002227/0.3652, allocations: 43.97 kB / 1.326 GB, free: 13.87 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.924e-05/0.3653, allocations: 8 kB / 1.326 GB, free: 13.86 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 10 (triggeredSampler.y,$PRE.triggeredSampler.y,$whenCondition1,$whenCondition2,edge1.y,edge1.u,$PRE.edge1.u,booPul.y,$PRE.booPul.y,$whenCondition3) * 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.00014/0.3654, allocations: 127.4 kB / 1.326 GB, free: 13.73 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.8e-05/0.3654, allocations: 7.953 kB / 1.326 GB, free: 13.72 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.004e-05/0.3655, allocations: 12.36 kB / 1.326 GB, free: 13.71 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.3655, allocations: 4 kB / 1.326 GB, free: 13.7 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.3655, allocations: 0 / 1.326 GB, free: 13.7 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.3655, allocations: 64 / 1.326 GB, free: 13.7 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005651/0.366, allocations: 386.4 kB / 1.326 GB, free: 13.27 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.366, allocations: 3.938 kB / 1.326 GB, free: 13.27 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.735e-05/0.3661, allocations: 8 kB / 1.326 GB, free: 13.26 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.3661, allocations: 0 / 1.326 GB, free: 13.26 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.203e-05/0.3661, allocations: 3.984 kB / 1.326 GB, free: 13.25 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.3661, allocations: 0 / 1.326 GB, free: 13.25 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.3661, allocations: 0 / 1.326 GB, free: 13.25 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003547/0.3665, allocations: 219.8 kB / 1.327 GB, free: 13.02 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 5.989e-05/0.3665, allocations: 81.06 kB / 1.327 GB, free: 12.93 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.064e-05/0.3666, allocations: 0 / 1.327 GB, free: 12.93 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.484e-05/0.3667, allocations: 11.98 kB / 1.327 GB, free: 12.91 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.275e-05/0.3667, allocations: 7.938 kB / 1.327 GB, free: 12.91 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.407e-05/0.3667, allocations: 7.984 kB / 1.327 GB, free: 12.9 MB / 1.029 GB Notification: Performance of sorting global known variables: time 7.625e-05/0.3668, allocations: 91.28 kB / 1.327 GB, free: 12.81 MB / 1.029 GB Notification: Performance of sort global known variables: time 9.1e-08/0.3668, allocations: 3.938 kB / 1.327 GB, free: 12.8 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002877/0.3671, allocations: 31.92 kB / 1.327 GB, free: 12.77 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: 7 (edge1.y,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,edge1.u,triggeredSampler.y) * Number of discrete states: 1 (edge1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * 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.0008495/0.3679, allocations: 0.7398 MB / 1.328 GB, free: 12.01 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004294/0.3684, allocations: 163.3 kB / 1.328 GB, free: 11.84 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3684, allocations: 0 / 1.328 GB, free: 11.84 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001363/0.3685, allocations: 35.91 kB / 1.328 GB, free: 11.8 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000326/0.3688, allocations: 19.88 kB / 1.328 GB, free: 11.78 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00243/0.3713, allocations: 1.698 MB / 1.329 GB, free: 9.965 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003341/0.3716, allocations: 0.6885 MB / 1.33 GB, free: 9.25 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.428e-05/0.3716, allocations: 4 kB / 1.33 GB, free: 9.246 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.13e-05/0.3717, allocations: 23.36 kB / 1.33 GB, free: 9.223 MB / 1.029 GB Notification: Performance of SimCode: time 9.11e-07/0.3717, allocations: 0 / 1.33 GB, free: 9.223 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02536/0.397, allocations: 2.552 MB / 1.333 GB, free: 6.77 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.127/8.524, allocations: 18.7 kB / 1.333 GB, free: 6.754 MB / 1.029 GB " [Timeout remaining time 291] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Edge_res.csv --start-time 0 --stop-time 5 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_Edge.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Edge_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Logical_Validation_Edge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable edge1.u in file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Edge_res.csv. Warning: Get data of variable edge1.u from file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Edge_res.csv failed! Error: Could not read variable edge1.y in file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Edge_res.csv. Warning: Get data of variable edge1.y from file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Edge_res.csv failed! Error: Could not read variable triggeredSampler.u in file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Edge_res.csv. Warning: Get data of variable triggeredSampler.u from file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Edge_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.589733389904723]