Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.0008134/0.0008134, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.001418/0.001418, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.8872/0.8872, allocations: 177.1 MB / 202.8 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.66/1.66, allocations: 359 MB / 0.6037 GB, free: 11.1 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_11_Buildings_Controls_OBC_CDL_Logical_Validation_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Nand,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Logical_Validation_Nand",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.797e-06/3.797e-06, allocations: 4 kB / 0.9505 GB, free: 3.484 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.858e-05/2.237e-05, allocations: 2.281 kB / 0.9505 GB, free: 3.48 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.001304/0.001326, allocations: 0.652 MB / 0.9511 GB, free: 2.824 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.001198/0.002524, allocations: 1.206 MB / 0.9523 GB, free: 1.605 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.191e-05/0.002566, allocations: 0 / 0.9523 GB, free: 1.605 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 2.906e-05/0.002595, allocations: 3.938 kB / 0.9523 GB, free: 1.602 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 7.127e-05/0.002666, allocations: 23.84 kB / 0.9524 GB, free: 1.578 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005672/0.003233, allocations: 206.1 kB / 0.9526 GB, free: 1.383 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 0.0002029/0.003436, allocations: 179.7 kB / 0.9527 GB, free: 1.207 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 9.532e-05/0.003532, allocations: 0 / 0.9527 GB, free: 1.207 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001418/0.003673, allocations: 103.8 kB / 0.9528 GB, free: 1.105 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001086/0.003782, allocations: 51.91 kB / 0.9529 GB, free: 1.055 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 3.075e-05/0.003813, allocations: 12 kB / 0.9529 GB, free: 1.043 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 7.009e-05/0.003883, allocations: 27.98 kB / 0.9529 GB, free: 1.016 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 2.67e-05/0.003909, allocations: 11.94 kB / 0.9529 GB, free: 1.004 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 6.109e-05/0.003971, allocations: 47.94 kB / 0.953 GB, free: 0.957 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.0002194/0.00419, allocations: 179.6 kB / 0.9531 GB, free: 0.7812 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 2.354e-06/0.004192, allocations: 0 / 0.9531 GB, free: 0.7812 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.232e-06/0.004194, allocations: 4 kB / 0.9531 GB, free: 0.7773 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 4.92e-06/0.004198, allocations: 4 kB / 0.9531 GB, free: 0.7734 MB / 0.9011 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.0004485/0.004647, allocations: 363.4 kB / 0.9535 GB, free: 384 kB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 4.377e-05/0.004691, allocations: 8.031 kB / 0.9535 GB, free: 376 kB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.552e-05/0.004726, allocations: 38.75 kB / 0.9535 GB, free: 328 kB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.228e-05/0.004769, allocations: 12.83 kB / 0.9535 GB, free: 316 kB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.861e-05/0.004847, allocations: 113.8 kB / 0.9537 GB, free: 176 kB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.454e-05/0.004862, allocations: 4.375 kB / 0.9537 GB, free: 172 kB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.088e-05/0.004883, allocations: 16.31 kB / 0.9537 GB, free: 156 kB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.974e-05/0.004982, allocations: 46.25 kB / 0.9537 GB, free: 104 kB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.004991, allocations: 4.188 kB / 0.9537 GB, free: 100 kB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.091e-05/0.005002, allocations: 4.359 kB / 0.9537 GB, free: 96 kB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.403e-06/0.005009, allocations: 8.125 kB / 0.9537 GB, free: 88 kB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.503e-05/0.005044, allocations: 8 kB / 0.9537 GB, free: 80 kB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000407/0.005451, allocations: 295.9 kB / 0.954 GB, free: 15.75 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 6.677e-05/0.005518, allocations: 34.5 kB / 0.9541 GB, free: 15.7 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.39e-05/0.005542, allocations: 16.86 kB / 0.9541 GB, free: 15.68 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 1.016e-05/0.005552, allocations: 3.938 kB / 0.9541 GB, free: 15.68 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001374/0.005689, allocations: 83.45 kB / 0.9542 GB, free: 15.59 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=7): time 1.273e-06/0.005691, allocations: 0 / 0.9542 GB, free: 15.59 MB / 0.9167 GB Notification: Performance of matching and sorting (n=7): time 0.000202/0.005893, allocations: 117.5 kB / 0.9543 GB, free: 15.46 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.418e-05/0.005927, allocations: 51.41 kB / 0.9543 GB, free: 15.4 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.469e-05/0.006002, allocations: 117.8 kB / 0.9544 GB, free: 15.28 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 2.906e-05/0.006031, allocations: 33.7 kB / 0.9545 GB, free: 15.24 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 8.996e-05/0.006121, allocations: 96.08 kB / 0.9546 GB, free: 15.14 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 1.664e-05/0.006137, allocations: 11.91 kB / 0.9546 GB, free: 15.13 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.381e-05/0.006201, allocations: 45.69 kB / 0.9546 GB, free: 15.08 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 7.653e-05/0.006278, allocations: 322.8 kB / 0.9549 GB, free: 14.75 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001199/0.006397, allocations: 115.4 kB / 0.955 GB, free: 14.63 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001182/0.006516, allocations: 151.7 kB / 0.9552 GB, free: 14.45 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001273/0.006643, allocations: 172 kB / 0.9553 GB, free: 14.26 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.006646, allocations: 3.938 kB / 0.9553 GB, free: 14.25 MB / 0.9167 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002942/0.00694, allocations: 324.3 kB / 0.9556 GB, free: 13.91 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 4.067e-05/0.006981, allocations: 67.39 kB / 0.9557 GB, free: 13.83 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.006987, allocations: 4 kB / 0.9557 GB, free: 13.82 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.931e-05/0.007006, allocations: 0 / 0.9557 GB, free: 13.82 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.061e-05/0.007027, allocations: 8.125 kB / 0.9557 GB, free: 13.82 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.007032, allocations: 0 / 0.9557 GB, free: 13.82 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002025/0.007235, allocations: 51.89 kB / 0.9558 GB, free: 13.77 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.209e-05/0.007257, allocations: 16.3 kB / 0.9558 GB, free: 13.75 MB / 0.9167 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 8.22e-05/0.007339, allocations: 129.7 kB / 0.9559 GB, free: 13.61 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.187e-06/0.007348, allocations: 7.953 kB / 0.9559 GB, free: 13.61 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.555e-05/0.007374, allocations: 20.42 kB / 0.9559 GB, free: 13.58 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.007376, allocations: 0 / 0.9559 GB, free: 13.58 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.007382, allocations: 0 / 0.9559 GB, free: 13.58 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.007387, allocations: 3.984 kB / 0.9559 GB, free: 13.58 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.96e-05/0.007486, allocations: 144.7 kB / 0.9561 GB, free: 13.39 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.007488, allocations: 0 / 0.9561 GB, free: 13.39 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.04e-06/0.007493, allocations: 0 / 0.9561 GB, free: 13.39 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.007496, allocations: 4 kB / 0.9561 GB, free: 13.39 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.073e-05/0.007507, allocations: 3.984 kB / 0.9561 GB, free: 13.39 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.51e-07/0.007507, allocations: 0 / 0.9561 GB, free: 13.39 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.007508, allocations: 0 / 0.9561 GB, free: 13.39 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001245/0.007633, allocations: 121 kB / 0.9562 GB, free: 13.25 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 1.093e-05/0.007644, allocations: 4 kB / 0.9562 GB, free: 13.25 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.44e-05/0.007658, allocations: 3.938 kB / 0.9562 GB, free: 13.24 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.382e-05/0.007672, allocations: 3.938 kB / 0.9562 GB, free: 13.24 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.287e-05/0.007715, allocations: 11.98 kB / 0.9562 GB, free: 13.23 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.067e-06/0.007724, allocations: 8.062 kB / 0.9562 GB, free: 13.22 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 3.973e-05/0.007764, allocations: 95.2 kB / 0.9563 GB, free: 13.12 MB / 0.9167 GB Notification: Performance of sort global known variables: time 7e-08/0.007764, allocations: 0 / 0.9563 GB, free: 13.12 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0001746/0.007938, allocations: 28 kB / 0.9564 GB, free: 13.1 MB / 0.9167 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.0004003/0.008339, allocations: 0.6553 MB / 0.957 GB, free: 12.41 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0003143/0.008653, allocations: 278.1 kB / 0.9573 GB, free: 12.11 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.008656, allocations: 0 / 0.9573 GB, free: 12.11 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 3.872e-05/0.008694, allocations: 27.92 kB / 0.9573 GB, free: 12.08 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002061/0.008901, allocations: 15.98 kB / 0.9573 GB, free: 12.06 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001626/0.01053, allocations: 1.966 MB / 0.9592 GB, free: 9.922 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.678e-05/0.01057, allocations: 79.48 kB / 0.9593 GB, free: 9.824 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 2.715e-05/0.0106, allocations: 4 kB / 0.9593 GB, free: 9.82 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.715e-05/0.01064, allocations: 16.5 kB / 0.9593 GB, free: 9.805 MB / 0.9167 GB Notification: Performance of SimCode: time 7.22e-07/0.01064, allocations: 0 / 0.9593 GB, free: 9.805 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02175/0.03239, allocations: 3.764 MB / 0.963 GB, free: 6.223 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.816/6.849, allocations: 3.984 kB / 0.963 GB, free: 6.219 MB / 0.9167 GB " [Timeout remaining time 293] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.sim & python3 -m fmpy simulate --output-file Buildings_11_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_11_Buildings_Controls_OBC_CDL_Logical_Validation_Nand.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Validation_Nand.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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_11_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.csv. Warning: Get data of variable nand1.u1 from file Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.csv failed! Error: Could not read variable nand1.u2 in file Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.csv. Warning: Get data of variable nand1.u2 from file Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.csv failed! Error: Could not read variable nand1.y in file Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.csv. Warning: Get data of variable nand1.y from file Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.91197169944644]