Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.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.001868/0.001868, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002685/0.002685, allocations: 213.8 kB / 22.25 MB, free: 5.262 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.557/1.557, allocations: 230.6 MB / 256 MB, free: 7.777 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.286/3.286, allocations: 0.4892 GB / 0.7943 GB, free: 35.62 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.Nand,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Nand,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_Nand",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.002064/0.002064, allocations: 71.08 kB / 1.153 GB, free: 25.74 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3237/0.3257, allocations: 176.1 MB / 1.325 GB, free: 2.355 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.001893/0.3276, allocations: 0.6422 MB / 1.326 GB, free: 1.719 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.00166/0.3293, allocations: 1.202 MB / 1.327 GB, free: 0.5039 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.578e-05/0.3293, allocations: 0 / 1.327 GB, free: 0.5039 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 2.858e-05/0.3293, allocations: 7.922 kB / 1.327 GB, free: 0.4961 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 6.767e-05/0.3294, allocations: 11.92 kB / 1.327 GB, free: 496 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006681/0.3301, allocations: 218.3 kB / 1.327 GB, free: 284 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002599/0.3303, allocations: 171.8 kB / 1.327 GB, free: 112 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 9.52e-05/0.3304, allocations: 11.98 kB / 1.327 GB, free: 100 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001196/0.3306, allocations: 71.83 kB / 1.327 GB, free: 28 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001579/0.3307, allocations: 59.88 kB / 1.327 GB, free: 15.96 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.819e-05/0.3308, allocations: 12 kB / 1.327 GB, free: 15.95 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 8.664e-05/0.3308, allocations: 31.98 kB / 1.327 GB, free: 15.92 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.356e-05/0.3309, allocations: 8 kB / 1.327 GB, free: 15.91 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 8.366e-05/0.3309, allocations: 51.88 kB / 1.328 GB, free: 15.86 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002316/0.3312, allocations: 147.8 kB / 1.328 GB, free: 15.72 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.3312, allocations: 7.922 kB / 1.328 GB, free: 15.71 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.382e-06/0.3312, allocations: 0 / 1.328 GB, free: 15.71 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.32e-06/0.3312, allocations: 4 kB / 1.328 GB, free: 15.71 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005719/0.3318, allocations: 362.7 kB / 1.328 GB, free: 15.31 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.3318, allocations: 8.031 kB / 1.328 GB, free: 15.3 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.159e-05/0.3318, allocations: 38.73 kB / 1.328 GB, free: 15.25 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.921e-05/0.3319, allocations: 8.938 kB / 1.328 GB, free: 15.25 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001193/0.332, allocations: 118.3 kB / 1.328 GB, free: 15.11 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.558e-05/0.3321, allocations: 8.359 kB / 1.328 GB, free: 15.1 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.701e-05/0.3321, allocations: 12.38 kB / 1.328 GB, free: 15.09 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001316/0.3322, allocations: 50.23 kB / 1.328 GB, free: 15.04 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.432e-05/0.3322, allocations: 3.938 kB / 1.328 GB, free: 15.03 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.117e-06/0.3322, allocations: 0 / 1.328 GB, free: 15.03 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-06/0.3322, allocations: 4 kB / 1.328 GB, free: 15.03 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.247e-05/0.3323, allocations: 12 kB / 1.328 GB, free: 15.02 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005028/0.3328, allocations: 303.8 kB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 8.449e-05/0.3329, allocations: 26.58 kB / 1.329 GB, free: 14.64 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.418e-05/0.3329, allocations: 16.94 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.143e-05/0.3329, allocations: 4 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001891/0.3331, allocations: 87.31 kB / 1.329 GB, free: 14.52 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.362e-06/0.3331, allocations: 0 / 1.329 GB, free: 14.52 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0002638/0.3334, allocations: 109.5 kB / 1.329 GB, free: 14.41 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.835e-05/0.3334, allocations: 55.41 kB / 1.329 GB, free: 14.34 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001146/0.3335, allocations: 121.8 kB / 1.329 GB, free: 14.21 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.512e-05/0.3336, allocations: 37.64 kB / 1.329 GB, free: 14.17 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.57e-05/0.3337, allocations: 88.14 kB / 1.329 GB, free: 14.08 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.746e-05/0.3337, allocations: 7.906 kB / 1.329 GB, free: 14.07 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.605e-05/0.3338, allocations: 49.69 kB / 1.329 GB, free: 14.02 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001494/0.3339, allocations: 327.1 kB / 1.329 GB, free: 13.69 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001866/0.3341, allocations: 119.4 kB / 1.33 GB, free: 13.56 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002069/0.3343, allocations: 163.5 kB / 1.33 GB, free: 13.37 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002143/0.3345, allocations: 155.6 kB / 1.33 GB, free: 13.19 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.3345, allocations: 0 / 1.33 GB, free: 13.19 MB / 1.029 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004876/0.335, allocations: 328.2 kB / 1.33 GB, free: 12.84 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 6.041e-05/0.3351, allocations: 67.39 kB / 1.33 GB, free: 12.76 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.3351, allocations: 0 / 1.33 GB, free: 12.76 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.347e-05/0.3351, allocations: 4 kB / 1.33 GB, free: 12.76 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.879e-05/0.3351, allocations: 0 / 1.33 GB, free: 12.76 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.3351, allocations: 8.125 kB / 1.33 GB, free: 12.75 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000338/0.3355, allocations: 55.89 kB / 1.33 GB, free: 12.7 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.975e-05/0.3355, allocations: 11.98 kB / 1.33 GB, free: 12.68 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: 9 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,nand1.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 2 * 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.0001126/0.3356, allocations: 130.2 kB / 1.33 GB, free: 12.55 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.562e-05/0.3356, allocations: 4 kB / 1.33 GB, free: 12.54 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.103e-05/0.3356, allocations: 12.36 kB / 1.33 GB, free: 12.53 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.3356, allocations: 4 kB / 1.33 GB, free: 12.52 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.3357, allocations: 4 kB / 1.33 GB, free: 12.52 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.3357, allocations: 0 / 1.33 GB, free: 12.52 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001615/0.3358, allocations: 144.7 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.3358, allocations: 3.984 kB / 1.331 GB, free: 12.33 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.546e-06/0.3358, allocations: 0 / 1.331 GB, free: 12.33 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.3358, allocations: 0 / 1.331 GB, free: 12.33 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.035e-05/0.3358, allocations: 4 kB / 1.331 GB, free: 12.33 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.3358, allocations: 0 / 1.331 GB, free: 12.33 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.3358, allocations: 0 / 1.331 GB, free: 12.33 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001657/0.336, allocations: 116.9 kB / 1.331 GB, free: 12.2 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.237e-05/0.336, allocations: 7.953 kB / 1.331 GB, free: 12.19 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.359e-05/0.336, allocations: 8 kB / 1.331 GB, free: 12.18 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.989e-05/0.3361, allocations: 96 / 1.331 GB, free: 12.18 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.94e-05/0.3361, allocations: 11.92 kB / 1.331 GB, free: 12.17 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.919e-06/0.3361, allocations: 8.062 kB / 1.331 GB, free: 12.16 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.609e-05/0.3362, allocations: 95.2 kB / 1.331 GB, free: 12.07 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3362, allocations: 0 / 1.331 GB, free: 12.07 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002438/0.3364, allocations: 28 kB / 1.331 GB, free: 12.04 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 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,nand1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0004993/0.3369, allocations: 0.6553 MB / 1.332 GB, free: 11.36 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003918/0.3373, allocations: 282.1 kB / 1.332 GB, free: 11.04 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.3373, allocations: 0 / 1.332 GB, free: 11.04 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 4.7e-05/0.3374, allocations: 23.98 kB / 1.332 GB, free: 11.02 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002357/0.3376, allocations: 17.86 kB / 1.332 GB, free: 11 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002267/0.3399, allocations: 1.966 MB / 1.334 GB, free: 8.871 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.859e-05/0.3399, allocations: 79.48 kB / 1.334 GB, free: 8.773 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 2.876e-05/0.34, allocations: 4 kB / 1.334 GB, free: 8.77 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.004e-05/0.34, allocations: 15.44 kB / 1.334 GB, free: 8.754 MB / 1.029 GB Notification: Performance of SimCode: time 2.91e-07/0.34, allocations: 0 / 1.334 GB, free: 8.754 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03435/0.3743, allocations: 3.65 MB / 1.337 GB, free: 5.27 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/11.74, allocations: 8.234 kB / 1.337 GB, free: 5.27 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_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_Nand.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Logical_Validation_Nand.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable nand1.u1 in file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.csv. Warning: Get data of variable nand1.u1 from file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.csv failed! Error: Could not read variable nand1.u2 in file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.csv. Warning: Get data of variable nand1.u2 from file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.csv failed! Error: Could not read variable nand1.y in file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.csv. Warning: Get data of variable nand1.y from file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.818734428845346]