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.0016/0.0016, allocations: 99.75 kB / 18.95 MB, free: 2.832 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.002146/0.002146, allocations: 217.3 kB / 22.24 MB, free: 5.105 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.82 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.233/3.233, allocations: 0.49 GB / 0.7951 GB, free: 35.58 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.002034/0.002034, allocations: 68.81 kB / 1.154 GB, free: 25.55 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3715/0.3735, allocations: 176.1 MB / 1.326 GB, free: 1.52 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.001898/0.3754, allocations: 0.6482 MB / 1.326 GB, free: 0.875 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001645/0.3771, allocations: 1.202 MB / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.032e-05/0.3771, allocations: 0 / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.286e-05/0.3772, allocations: 3.938 kB / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 6.581e-05/0.3772, allocations: 7.922 kB / 1.328 GB, free: 15.65 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006684/0.3779, allocations: 222.9 kB / 1.328 GB, free: 15.44 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002542/0.3782, allocations: 175.6 kB / 1.328 GB, free: 15.27 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 8.596e-05/0.3782, allocations: 12 kB / 1.328 GB, free: 15.25 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001165/0.3784, allocations: 71.88 kB / 1.328 GB, free: 15.18 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001363/0.3785, allocations: 59.86 kB / 1.328 GB, free: 15.12 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.179e-05/0.3785, allocations: 16 kB / 1.328 GB, free: 15.11 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.714e-05/0.3786, allocations: 31.98 kB / 1.328 GB, free: 15.08 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.457e-05/0.3786, allocations: 11.98 kB / 1.328 GB, free: 15.07 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 8.759e-05/0.3787, allocations: 59.83 kB / 1.328 GB, free: 15.01 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002105/0.3789, allocations: 143.9 kB / 1.328 GB, free: 14.87 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.3789, allocations: 4 kB / 1.328 GB, free: 14.86 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.373e-06/0.3789, allocations: 0 / 1.328 GB, free: 14.86 MB / 1.029 GB Notification: Performance of Transformations before backend: time 4.489e-06/0.3789, allocations: 0 / 1.328 GB, free: 14.86 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.0005214/0.3795, allocations: 365.4 kB / 1.329 GB, free: 14.46 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.3795, allocations: 15.97 kB / 1.329 GB, free: 14.45 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.374e-05/0.3795, allocations: 34.73 kB / 1.329 GB, free: 14.4 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.536e-05/0.3796, allocations: 8.938 kB / 1.329 GB, free: 14.39 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001028/0.3797, allocations: 114.5 kB / 1.329 GB, free: 14.26 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.861e-05/0.3797, allocations: 4.375 kB / 1.329 GB, free: 14.25 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.488e-05/0.3798, allocations: 12.38 kB / 1.329 GB, free: 14.24 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001187/0.3799, allocations: 50.17 kB / 1.329 GB, free: 14.19 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.867e-06/0.3799, allocations: 7.938 kB / 1.329 GB, free: 14.18 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.714e-06/0.3799, allocations: 0 / 1.329 GB, free: 14.18 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.967e-06/0.3799, allocations: 0 / 1.329 GB, free: 14.18 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.265e-05/0.3799, allocations: 15.94 kB / 1.329 GB, free: 14.16 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000471/0.3804, allocations: 295.8 kB / 1.329 GB, free: 13.83 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 8.416e-05/0.3805, allocations: 34.58 kB / 1.329 GB, free: 13.79 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.743e-05/0.3805, allocations: 16.94 kB / 1.329 GB, free: 13.77 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.25e-05/0.3805, allocations: 0 / 1.329 GB, free: 13.77 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001913/0.3807, allocations: 91.23 kB / 1.329 GB, free: 13.67 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.038e-05/0.3807, allocations: 7.984 kB / 1.329 GB, free: 13.66 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0002643/0.381, allocations: 101.6 kB / 1.33 GB, free: 13.55 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.448e-05/0.381, allocations: 55.41 kB / 1.33 GB, free: 13.49 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001132/0.3812, allocations: 117.8 kB / 1.33 GB, free: 13.36 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.395e-05/0.3812, allocations: 29.7 kB / 1.33 GB, free: 13.33 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.536e-05/0.3813, allocations: 92.08 kB / 1.33 GB, free: 13.23 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.394e-05/0.3813, allocations: 19.89 kB / 1.33 GB, free: 13.21 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.837e-05/0.3814, allocations: 53.69 kB / 1.33 GB, free: 13.16 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001341/0.3815, allocations: 318.8 kB / 1.33 GB, free: 12.84 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000179/0.3817, allocations: 123.4 kB / 1.33 GB, free: 12.7 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001887/0.3819, allocations: 152 kB / 1.33 GB, free: 12.53 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000209/0.3821, allocations: 163.7 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.3821, allocations: 0 / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004886/0.3826, allocations: 328.3 kB / 1.331 GB, free: 11.99 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 5.97e-05/0.3826, allocations: 71.39 kB / 1.331 GB, free: 11.91 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.3826, allocations: 0 / 1.331 GB, free: 11.91 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.479e-05/0.3827, allocations: 0 / 1.331 GB, free: 11.91 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.754e-05/0.3827, allocations: 11.94 kB / 1.331 GB, free: 11.89 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.78e-06/0.3827, allocations: 0 / 1.331 GB, free: 11.89 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003405/0.383, allocations: 51.89 kB / 1.331 GB, free: 11.84 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.453e-05/0.3831, allocations: 20.08 kB / 1.331 GB, free: 11.82 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.0001227/0.3832, allocations: 126.2 kB / 1.331 GB, free: 11.69 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.479e-05/0.3832, allocations: 4 kB / 1.331 GB, free: 11.69 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.433e-05/0.3832, allocations: 12.36 kB / 1.331 GB, free: 11.67 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.3832, allocations: 0 / 1.331 GB, free: 11.67 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.329e-06/0.3832, allocations: 3.938 kB / 1.331 GB, free: 11.67 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.3833, allocations: 0 / 1.331 GB, free: 11.67 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001479/0.3834, allocations: 140.7 kB / 1.331 GB, free: 11.49 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.3834, allocations: 0 / 1.331 GB, free: 11.49 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.352e-05/0.3834, allocations: 7.984 kB / 1.331 GB, free: 11.48 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.3834, allocations: 4 kB / 1.331 GB, free: 11.48 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.999e-06/0.3834, allocations: 4 kB / 1.331 GB, free: 11.47 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.3834, allocations: 3.938 kB / 1.331 GB, free: 11.47 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3834, allocations: 0 / 1.331 GB, free: 11.47 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001634/0.3836, allocations: 121 kB / 1.332 GB, free: 11.33 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.353e-05/0.3836, allocations: 3.953 kB / 1.332 GB, free: 11.33 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.77e-05/0.3836, allocations: 4 kB / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.063e-05/0.3836, allocations: 0 / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.466e-05/0.3837, allocations: 7.984 kB / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.252e-05/0.3837, allocations: 4 kB / 1.332 GB, free: 11.31 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.056e-05/0.3838, allocations: 95.2 kB / 1.332 GB, free: 11.22 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3838, allocations: 4 kB / 1.332 GB, free: 11.21 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.000239/0.384, allocations: 28 kB / 1.332 GB, free: 11.19 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.000534/0.3845, allocations: 0.6553 MB / 1.332 GB, free: 10.5 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004118/0.3849, allocations: 274.1 kB / 1.333 GB, free: 10.2 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.3849, allocations: 0 / 1.333 GB, free: 10.2 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 4.832e-05/0.385, allocations: 23.97 kB / 1.333 GB, free: 10.18 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002501/0.3852, allocations: 28.44 kB / 1.333 GB, free: 10.15 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002221/0.3875, allocations: 1.961 MB / 1.335 GB, free: 8.023 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.424e-05/0.3875, allocations: 73.48 kB / 1.335 GB, free: 7.934 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.256e-05/0.3876, allocations: 7.984 kB / 1.335 GB, free: 7.926 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.69e-05/0.3876, allocations: 19.44 kB / 1.335 GB, free: 7.906 MB / 1.029 GB Notification: Performance of SimCode: time 5.71e-07/0.3876, allocations: 0 / 1.335 GB, free: 7.906 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03387/0.4215, allocations: 3.66 MB / 1.338 GB, free: 4.41 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.06/11.48, allocations: 12.86 kB / 1.338 GB, free: 4.402 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.3539358759881]