Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001804/0.001804, allocations: 108.2 kB / 16.45 MB, free: 6.5 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.002238/0.002238, allocations: 210.4 kB / 19.43 MB, free: 3.656 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.632/1.632, allocations: 230.6 MB / 252.8 MB, free: 8.965 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.387/3.387, allocations: 0.505 GB / 0.8066 GB, free: 23.09 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Nand,fileNamePrefix="Buildings_latest_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.002325/0.002325, allocations: 65.41 kB / 1.172 GB, free: 17.45 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3726/0.3749, allocations: 180.2 MB / 1.348 GB, free: 10 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.002048/0.3769, allocations: 0.6644 MB / 1.348 GB, free: 9.34 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001742/0.3787, allocations: 1.218 MB / 1.35 GB, free: 8.109 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.954e-05/0.3787, allocations: 0 / 1.35 GB, free: 8.109 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 2.962e-05/0.3787, allocations: 3.984 kB / 1.35 GB, free: 8.105 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 7.851e-05/0.3788, allocations: 11.88 kB / 1.35 GB, free: 8.094 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006675/0.3795, allocations: 216.2 kB / 1.35 GB, free: 7.887 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0002523/0.3797, allocations: 175.7 kB / 1.35 GB, free: 7.715 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 9.092e-05/0.3798, allocations: 8 kB / 1.35 GB, free: 7.707 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001157/0.38, allocations: 75.81 kB / 1.35 GB, free: 7.633 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001673/0.3801, allocations: 55.86 kB / 1.35 GB, free: 7.578 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 3.328e-05/0.3802, allocations: 16 kB / 1.35 GB, free: 7.562 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 8.679e-05/0.3802, allocations: 31.97 kB / 1.35 GB, free: 7.531 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.476e-05/0.3803, allocations: 11.92 kB / 1.35 GB, free: 7.52 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 8.265e-05/0.3803, allocations: 51.91 kB / 1.35 GB, free: 7.469 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0002335/0.3806, allocations: 159.8 kB / 1.35 GB, free: 7.312 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.3806, allocations: 0 / 1.35 GB, free: 7.312 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.673e-06/0.3806, allocations: 0 / 1.35 GB, free: 7.312 MB / 1.045 GB Notification: Performance of Transformations before backend: time 9.317e-06/0.3806, allocations: 0 / 1.35 GB, free: 7.312 MB / 1.045 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.0005893/0.3812, allocations: 438.6 kB / 1.351 GB, free: 6.82 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.581e-05/0.3812, allocations: 15.98 kB / 1.351 GB, free: 6.805 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.825e-05/0.3813, allocations: 34.73 kB / 1.351 GB, free: 6.762 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.679e-05/0.3813, allocations: 12.89 kB / 1.351 GB, free: 6.75 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001928/0.3815, allocations: 168.3 kB / 1.351 GB, free: 6.547 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.831e-05/0.3815, allocations: 8.375 kB / 1.351 GB, free: 6.539 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.465e-05/0.3816, allocations: 16.38 kB / 1.351 GB, free: 6.523 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001285/0.3817, allocations: 46.23 kB / 1.351 GB, free: 6.473 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.3817, allocations: 3.938 kB / 1.351 GB, free: 6.469 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.819e-06/0.3817, allocations: 0 / 1.351 GB, free: 6.469 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.335e-06/0.3817, allocations: 4 kB / 1.351 GB, free: 6.465 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.23e-05/0.3818, allocations: 15.98 kB / 1.351 GB, free: 6.449 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005086/0.3823, allocations: 356.6 kB / 1.351 GB, free: 6.051 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 8.927e-05/0.3824, allocations: 30.58 kB / 1.351 GB, free: 6.012 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.379e-05/0.3824, allocations: 16.94 kB / 1.352 GB, free: 5.992 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.37e-05/0.3824, allocations: 4 kB / 1.352 GB, free: 5.988 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001768/0.3826, allocations: 79.36 kB / 1.352 GB, free: 5.898 MB / 1.045 GB Notification: Performance of pre-optimization done (n=7): time 1.202e-06/0.3826, allocations: 0 / 1.352 GB, free: 5.898 MB / 1.045 GB Notification: Performance of matching and sorting (n=7): time 0.0002638/0.3829, allocations: 105.8 kB / 1.352 GB, free: 5.789 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.182e-05/0.3829, allocations: 59.41 kB / 1.352 GB, free: 5.719 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001152/0.383, allocations: 121.8 kB / 1.352 GB, free: 5.59 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.61e-05/0.3831, allocations: 33.7 kB / 1.352 GB, free: 5.551 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 7.88e-05/0.3831, allocations: 88.09 kB / 1.352 GB, free: 5.461 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 1.877e-05/0.3832, allocations: 15.94 kB / 1.352 GB, free: 5.445 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001042/0.3833, allocations: 53.69 kB / 1.352 GB, free: 5.387 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001727/0.3834, allocations: 326.7 kB / 1.352 GB, free: 5.059 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001593/0.3836, allocations: 59.97 kB / 1.352 GB, free: 5 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001782/0.3838, allocations: 96.19 kB / 1.353 GB, free: 4.891 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002193/0.384, allocations: 152.1 kB / 1.353 GB, free: 4.715 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.68e-06/0.384, allocations: 7.938 kB / 1.353 GB, free: 4.707 MB / 1.045 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004608/0.3845, allocations: 268.8 kB / 1.353 GB, free: 4.426 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 6.435e-05/0.3845, allocations: 67.39 kB / 1.353 GB, free: 4.348 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.3845, allocations: 80 / 1.353 GB, free: 4.348 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.3845, allocations: 4 kB / 1.353 GB, free: 4.344 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.008e-05/0.3846, allocations: 0 / 1.353 GB, free: 4.344 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.432e-05/0.3846, allocations: 11.97 kB / 1.353 GB, free: 4.332 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000361/0.3849, allocations: 60.02 kB / 1.353 GB, free: 4.273 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.212e-05/0.385, allocations: 8 kB / 1.353 GB, free: 4.266 MB / 1.045 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.0001236/0.3851, allocations: 131 kB / 1.353 GB, free: 4.129 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.501e-05/0.3851, allocations: 8.016 kB / 1.353 GB, free: 4.121 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.985e-05/0.3851, allocations: 12.38 kB / 1.353 GB, free: 4.109 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.3851, allocations: 0 / 1.353 GB, free: 4.109 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.3851, allocations: 4 kB / 1.353 GB, free: 4.105 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.836e-06/0.3852, allocations: 0 / 1.353 GB, free: 4.105 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001623/0.3853, allocations: 181.5 kB / 1.353 GB, free: 3.879 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.3853, allocations: 4 kB / 1.353 GB, free: 3.875 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.895e-06/0.3853, allocations: 0 / 1.353 GB, free: 3.875 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.3853, allocations: 0 / 1.353 GB, free: 3.875 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.244e-06/0.3853, allocations: 0 / 1.353 GB, free: 3.875 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.21e-06/0.3853, allocations: 4 kB / 1.353 GB, free: 3.871 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.3853, allocations: 0 / 1.353 GB, free: 3.871 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001567/0.3855, allocations: 113 kB / 1.353 GB, free: 3.742 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 5.033e-05/0.3855, allocations: 85.06 kB / 1.354 GB, free: 3.641 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.708e-05/0.3856, allocations: 8 kB / 1.354 GB, free: 3.633 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.451e-05/0.3856, allocations: 3.984 kB / 1.354 GB, free: 3.629 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.015e-05/0.3856, allocations: 4 kB / 1.354 GB, free: 3.625 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.614e-06/0.3856, allocations: 4 kB / 1.354 GB, free: 3.621 MB / 1.045 GB Notification: Performance of sorting global known variables: time 6.004e-05/0.3857, allocations: 95.2 kB / 1.354 GB, free: 3.527 MB / 1.045 GB Notification: Performance of sort global known variables: time 1e-07/0.3857, allocations: 0 / 1.354 GB, free: 3.527 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002429/0.3859, allocations: 32 kB / 1.354 GB, free: 3.496 MB / 1.045 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.0005122/0.3864, allocations: 0.6552 MB / 1.354 GB, free: 2.812 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0003519/0.3868, allocations: 218.7 kB / 1.355 GB, free: 2.574 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.3868, allocations: 4 kB / 1.355 GB, free: 2.57 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 4.627e-05/0.3869, allocations: 20 kB / 1.355 GB, free: 2.551 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000236/0.3871, allocations: 16.23 kB / 1.355 GB, free: 2.535 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002145/0.3892, allocations: 1.723 MB / 1.356 GB, free: 0.6914 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003334/0.3896, allocations: 0.6885 MB / 1.357 GB, free: 15.98 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.149e-05/0.3896, allocations: 7.984 kB / 1.357 GB, free: 15.97 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.399e-05/0.3896, allocations: 19.44 kB / 1.357 GB, free: 15.95 MB / 1.061 GB Notification: Performance of SimCode: time 3.1e-07/0.3896, allocations: 0 / 1.357 GB, free: 15.95 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03563/0.4253, allocations: 2.902 MB / 1.36 GB, free: 13.16 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.206/8.631, allocations: 5.891 kB / 1.36 GB, free: 13.16 MB / 1.061 GB " [Timeout remaining time 291] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.csv --start-time 0 --stop-time 5 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Nand.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Nand.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.csv. Warning: Get data of variable nand1.u1 from file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.csv failed! Error: Could not read variable nand1.u2 in file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.csv. Warning: Get data of variable nand1.u2 from file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.csv failed! Error: Could not read variable nand1.y in file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.csv. Warning: Get data of variable nand1.y from file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.924357068026438]