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.001516/0.001516, allocations: 103 kB / 16.45 MB, free: 6.449 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.002475/0.002475, allocations: 212.9 kB / 19.43 MB, free: 3.637 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.542/1.542, allocations: 230.6 MB / 252.8 MB, free: 9.141 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.46/3.46, allocations: 0.49 GB / 0.7916 GB, free: 33.44 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.002071/0.002071, allocations: 63.33 kB / 1.149 GB, free: 26.43 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4017/0.4038, allocations: 176.1 MB / 1.321 GB, free: 3.371 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.00202/0.4058, allocations: 0.6479 MB / 1.321 GB, free: 2.727 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001939/0.4078, allocations: 1.222 MB / 1.323 GB, free: 1.492 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.259e-05/0.4078, allocations: 0 / 1.323 GB, free: 1.492 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 4.24e-05/0.4079, allocations: 11.81 kB / 1.323 GB, free: 1.48 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001192/0.408, allocations: 11.94 kB / 1.323 GB, free: 1.469 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007276/0.4087, allocations: 213.3 kB / 1.323 GB, free: 1.266 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002536/0.409, allocations: 171.8 kB / 1.323 GB, free: 1.098 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001021/0.4091, allocations: 8 kB / 1.323 GB, free: 1.09 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001065/0.4092, allocations: 71.81 kB / 1.323 GB, free: 1.02 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001349/0.4093, allocations: 63.86 kB / 1.323 GB, free: 0.957 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 3.243e-05/0.4093, allocations: 12 kB / 1.323 GB, free: 0.9453 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 8.762e-05/0.4094, allocations: 35.97 kB / 1.323 GB, free: 0.9102 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.93e-05/0.4095, allocations: 15.92 kB / 1.323 GB, free: 0.8945 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 7.677e-05/0.4095, allocations: 47.91 kB / 1.323 GB, free: 0.8477 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.000233/0.4098, allocations: 155.8 kB / 1.323 GB, free: 0.6953 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.4098, allocations: 0 / 1.323 GB, free: 0.6953 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.382e-06/0.4098, allocations: 4 kB / 1.323 GB, free: 0.6914 MB / 1.014 GB Notification: Performance of Transformations before backend: time 5.65e-06/0.4098, allocations: 0 / 1.323 GB, free: 0.6914 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0006202/0.4104, allocations: 438.6 kB / 1.324 GB, free: 204 kB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.513e-05/0.4105, allocations: 15.97 kB / 1.324 GB, free: 188 kB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.382e-05/0.4105, allocations: 34.75 kB / 1.324 GB, free: 144 kB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.397e-05/0.4106, allocations: 8.938 kB / 1.324 GB, free: 136 kB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001576/0.4107, allocations: 172.3 kB / 1.324 GB, free: 15.93 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.914e-05/0.4107, allocations: 4.375 kB / 1.324 GB, free: 15.92 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.253e-05/0.4108, allocations: 12.36 kB / 1.324 GB, free: 15.91 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001208/0.4109, allocations: 50.25 kB / 1.324 GB, free: 15.86 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.333e-05/0.4109, allocations: 7.938 kB / 1.324 GB, free: 15.85 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.648e-06/0.4109, allocations: 0 / 1.324 GB, free: 15.85 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.4109, allocations: 0 / 1.324 GB, free: 15.85 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.34e-05/0.411, allocations: 15.98 kB / 1.324 GB, free: 15.83 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005366/0.4115, allocations: 356.6 kB / 1.325 GB, free: 15.43 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 8.737e-05/0.4116, allocations: 26.58 kB / 1.325 GB, free: 15.4 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.202e-05/0.4116, allocations: 24.94 kB / 1.325 GB, free: 15.37 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.013e-05/0.4116, allocations: 0 / 1.325 GB, free: 15.37 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001667/0.4118, allocations: 79.36 kB / 1.325 GB, free: 15.28 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.403e-06/0.4118, allocations: 0 / 1.325 GB, free: 15.28 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0002661/0.4121, allocations: 105.6 kB / 1.325 GB, free: 15.17 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.247e-05/0.4121, allocations: 55.34 kB / 1.325 GB, free: 15.11 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001191/0.4122, allocations: 125.7 kB / 1.325 GB, free: 14.97 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.498e-05/0.4123, allocations: 33.7 kB / 1.325 GB, free: 14.93 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.521e-05/0.4123, allocations: 88.14 kB / 1.325 GB, free: 14.84 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.14e-05/0.4124, allocations: 19.89 kB / 1.325 GB, free: 14.82 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001063/0.4125, allocations: 53.69 kB / 1.325 GB, free: 14.77 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001611/0.4126, allocations: 322.8 kB / 1.325 GB, free: 14.44 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001374/0.4128, allocations: 55.97 kB / 1.325 GB, free: 14.39 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001687/0.4129, allocations: 104.2 kB / 1.326 GB, free: 14.27 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002125/0.4132, allocations: 151.6 kB / 1.326 GB, free: 14.09 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.4132, allocations: 0 / 1.326 GB, free: 14.09 MB / 1.029 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004534/0.4136, allocations: 268.9 kB / 1.326 GB, free: 13.81 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 6.863e-05/0.4137, allocations: 67.39 kB / 1.326 GB, free: 13.73 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/0.4137, allocations: 8.375 kB / 1.326 GB, free: 13.73 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.491e-05/0.4137, allocations: 0 / 1.326 GB, free: 13.73 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.92e-05/0.4137, allocations: 12.44 kB / 1.326 GB, free: 13.71 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.152e-06/0.4137, allocations: 0 / 1.326 GB, free: 13.71 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003466/0.4141, allocations: 51.89 kB / 1.326 GB, free: 13.66 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.682e-05/0.4141, allocations: 16.02 kB / 1.326 GB, free: 13.65 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.0001284/0.4142, allocations: 135.2 kB / 1.326 GB, free: 13.51 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.29e-05/0.4143, allocations: 7.938 kB / 1.326 GB, free: 13.5 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.508e-05/0.4143, allocations: 8.375 kB / 1.326 GB, free: 13.49 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.4143, allocations: 4 kB / 1.326 GB, free: 13.48 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.4143, allocations: 0 / 1.326 GB, free: 13.48 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.4143, allocations: 0 / 1.326 GB, free: 13.48 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001653/0.4145, allocations: 185.5 kB / 1.326 GB, free: 13.25 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.4145, allocations: 0 / 1.326 GB, free: 13.25 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.644e-06/0.4145, allocations: 4 kB / 1.326 GB, free: 13.25 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.243e-06/0.4145, allocations: 0 / 1.326 GB, free: 13.25 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.156e-05/0.4145, allocations: 4 kB / 1.326 GB, free: 13.25 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.4145, allocations: 0 / 1.326 GB, free: 13.25 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.4145, allocations: 0 / 1.326 GB, free: 13.25 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001551/0.4147, allocations: 117 kB / 1.327 GB, free: 13.11 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 5.583e-05/0.4147, allocations: 81.06 kB / 1.327 GB, free: 13.02 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.789e-05/0.4147, allocations: 3.984 kB / 1.327 GB, free: 13.01 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.41e-05/0.4148, allocations: 8 kB / 1.327 GB, free: 13 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.034e-05/0.4148, allocations: 7.938 kB / 1.327 GB, free: 13 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.514e-06/0.4148, allocations: 4 kB / 1.327 GB, free: 12.99 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.95e-05/0.4149, allocations: 91.27 kB / 1.327 GB, free: 12.9 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.4149, allocations: 0 / 1.327 GB, free: 12.9 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002392/0.4151, allocations: 32 kB / 1.327 GB, free: 12.87 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.0005467/0.4156, allocations: 0.6553 MB / 1.327 GB, free: 12.19 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003555/0.416, allocations: 218.7 kB / 1.328 GB, free: 11.95 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.416, allocations: 0 / 1.328 GB, free: 11.95 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 4.525e-05/0.416, allocations: 16 kB / 1.328 GB, free: 11.93 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000235/0.4163, allocations: 20.2 kB / 1.328 GB, free: 11.91 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00213/0.4184, allocations: 1.733 MB / 1.329 GB, free: 10.06 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003245/0.4187, allocations: 0.6846 MB / 1.33 GB, free: 9.348 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.226e-05/0.4188, allocations: 7.984 kB / 1.33 GB, free: 9.34 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.375e-05/0.4188, allocations: 19.44 kB / 1.33 GB, free: 9.32 MB / 1.029 GB Notification: Performance of SimCode: time 3.11e-07/0.4188, allocations: 0 / 1.33 GB, free: 9.32 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03653/0.4553, allocations: 2.898 MB / 1.333 GB, free: 6.527 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.076/8.531, allocations: 6.641 kB / 1.333 GB, free: 6.523 MB / 1.029 GB " [Timeout remaining time 291] (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: 15.770857423078269]