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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001642/0.001642, allocations: 114.7 kB / 17.6 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001685/0.001685, allocations: 189.9 kB / 20.78 MB, free: 1.5 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.515/1.515, allocations: 225.6 MB / 249.4 MB, free: 3.152 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.769/2.769, allocations: 476.7 MB / 0.7629 GB, free: 15.23 MB / 0.6075 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.002162/0.002162, allocations: 75.88 kB / 1.107 GB, free: 5.039 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.063/1.065, allocations: 168.7 MB / 1.272 GB, free: 7.676 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.002664/1.067, allocations: 0.6698 MB / 1.272 GB, free: 7.27 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001919/1.069, allocations: 1.193 MB / 1.273 GB, free: 6.402 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.686e-05/1.069, allocations: 4 kB / 1.273 GB, free: 6.398 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.097e-05/1.069, allocations: 5.406 kB / 1.273 GB, free: 6.395 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 9.041e-05/1.069, allocations: 10.86 kB / 1.273 GB, free: 6.387 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009608/1.07, allocations: 215.8 kB / 1.274 GB, free: 6.281 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0003492/1.071, allocations: 179.1 kB / 1.274 GB, free: 6.203 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001189/1.071, allocations: 8.875 kB / 1.274 GB, free: 6.199 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001379/1.071, allocations: 66.58 kB / 1.274 GB, free: 6.176 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002006/1.071, allocations: 62.19 kB / 1.274 GB, free: 6.152 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 5.237e-05/1.071, allocations: 15.25 kB / 1.274 GB, free: 6.152 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001314/1.071, allocations: 29.3 kB / 1.274 GB, free: 6.148 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.715e-05/1.071, allocations: 9.094 kB / 1.274 GB, free: 6.145 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001036/1.072, allocations: 61.58 kB / 1.274 GB, free: 6.113 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002653/1.072, allocations: 152.5 kB / 1.274 GB, free: 6.062 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/1.072, allocations: 0.8438 kB / 1.274 GB, free: 6.062 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.523e-06/1.072, allocations: 3.938 kB / 1.274 GB, free: 6.059 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.751e-06/1.072, allocations: 3.938 kB / 1.274 GB, free: 6.055 MB / 0.9981 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.000554/1.072, allocations: 436.4 kB / 1.275 GB, free: 5.613 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/1.072, allocations: 9.812 kB / 1.275 GB, free: 5.613 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.341e-05/1.072, allocations: 33.27 kB / 1.275 GB, free: 5.574 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.992e-05/1.073, allocations: 12.3 kB / 1.275 GB, free: 5.57 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.465e-05/1.073, allocations: 171.8 kB / 1.275 GB, free: 5.367 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.255e-05/1.073, allocations: 5.609 kB / 1.275 GB, free: 5.367 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.241e-05/1.073, allocations: 9.922 kB / 1.275 GB, free: 5.367 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001267/1.073, allocations: 49.78 kB / 1.275 GB, free: 5.328 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/1.073, allocations: 4.969 kB / 1.275 GB, free: 5.324 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.078e-05/1.073, allocations: 0 / 1.275 GB, free: 5.324 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.02e-06/1.073, allocations: 8.812 kB / 1.275 GB, free: 5.316 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.868e-05/1.073, allocations: 14.38 kB / 1.275 GB, free: 5.312 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005184/1.073, allocations: 351.5 kB / 1.275 GB, free: 5.008 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 9.559e-05/1.073, allocations: 33.36 kB / 1.275 GB, free: 4.977 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.907e-05/1.074, allocations: 12.03 kB / 1.275 GB, free: 4.969 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.397e-05/1.074, allocations: 0.9688 kB / 1.275 GB, free: 4.969 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002245/1.074, allocations: 83.78 kB / 1.275 GB, free: 4.906 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=7): time 1.944e-06/1.074, allocations: 0 / 1.275 GB, free: 4.906 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7): time 0.0003509/1.074, allocations: 108.1 kB / 1.275 GB, free: 4.848 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.947e-05/1.074, allocations: 53.73 kB / 1.275 GB, free: 4.785 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000105/1.074, allocations: 120.3 kB / 1.276 GB, free: 4.676 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.755e-05/1.074, allocations: 29.36 kB / 1.276 GB, free: 4.645 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.518e-05/1.074, allocations: 94.67 kB / 1.276 GB, free: 4.555 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.369e-05/1.074, allocations: 20.59 kB / 1.276 GB, free: 4.539 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001499/1.075, allocations: 47.53 kB / 1.276 GB, free: 4.516 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.552e-05/1.075, allocations: 318.6 kB / 1.276 GB, free: 4.199 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002153/1.075, allocations: 60.55 kB / 1.276 GB, free: 4.18 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002508/1.075, allocations: 97.11 kB / 1.276 GB, free: 4.113 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002618/1.075, allocations: 162.6 kB / 1.276 GB, free: 3.973 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/1.075, allocations: 0.9688 kB / 1.276 GB, free: 3.973 MB / 0.9981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0006764/1.076, allocations: 269 kB / 1.277 GB, free: 3.816 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 5.941e-05/1.076, allocations: 69.52 kB / 1.277 GB, free: 3.75 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/1.076, allocations: 1.406 kB / 1.277 GB, free: 3.75 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.134e-05/1.076, allocations: 14.34 kB / 1.277 GB, free: 3.738 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.727e-05/1.076, allocations: 6.219 kB / 1.277 GB, free: 3.734 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/1.076, allocations: 1.812 kB / 1.277 GB, free: 3.734 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005012/1.077, allocations: 51.28 kB / 1.277 GB, free: 3.73 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.279e-05/1.077, allocations: 17.42 kB / 1.277 GB, free: 3.727 MB / 0.9981 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.000105/1.077, allocations: 126.2 kB / 1.277 GB, free: 3.602 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.195e-05/1.077, allocations: 6.797 kB / 1.277 GB, free: 3.598 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.204e-05/1.077, allocations: 6.672 kB / 1.277 GB, free: 3.59 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/1.077, allocations: 2.047 kB / 1.277 GB, free: 3.59 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/1.077, allocations: 0 / 1.277 GB, free: 3.59 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/1.077, allocations: 0.625 kB / 1.277 GB, free: 3.59 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001235/1.077, allocations: 179.2 kB / 1.277 GB, free: 3.387 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/1.077, allocations: 0.8438 kB / 1.277 GB, free: 3.387 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.416e-05/1.077, allocations: 4.938 kB / 1.277 GB, free: 3.383 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/1.077, allocations: 1.844 kB / 1.277 GB, free: 3.383 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.129e-05/1.077, allocations: 4.766 kB / 1.277 GB, free: 3.383 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.776e-06/1.077, allocations: 4.75 kB / 1.277 GB, free: 3.379 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/1.077, allocations: 0 / 1.277 GB, free: 3.379 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000193/1.077, allocations: 112.6 kB / 1.277 GB, free: 3.289 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.549e-05/1.077, allocations: 85.27 kB / 1.277 GB, free: 3.191 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.065e-05/1.077, allocations: 1.781 kB / 1.277 GB, free: 3.191 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.175e-05/1.077, allocations: 0.7812 kB / 1.277 GB, free: 3.191 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.101e-05/1.077, allocations: 10.34 kB / 1.277 GB, free: 3.188 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.056e-05/1.077, allocations: 10.09 kB / 1.277 GB, free: 3.18 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 4.259e-05/1.077, allocations: 90.02 kB / 1.277 GB, free: 3.102 MB / 0.9981 GB Notification: Performance of sort global known variables: time 9e-08/1.077, allocations: 0 / 1.277 GB, free: 3.102 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003601/1.078, allocations: 35.48 kB / 1.277 GB, free: 3.094 MB / 0.9981 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.0003187/1.078, allocations: 0.6543 MB / 1.278 GB, free: 2.477 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003142/1.078, allocations: 221 kB / 1.278 GB, free: 2.312 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/1.078, allocations: 0.7188 kB / 1.278 GB, free: 2.312 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 4.405e-05/1.078, allocations: 22.14 kB / 1.278 GB, free: 2.305 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000237/1.079, allocations: 15.17 kB / 1.278 GB, free: 2.301 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001768/1.08, allocations: 1.732 MB / 1.28 GB, free: 16.86 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002915/1.081, allocations: 0.6858 MB / 1.281 GB, free: 16.17 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 3.417e-05/1.081, allocations: 7.438 kB / 1.281 GB, free: 16.17 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.539e-05/1.081, allocations: 19.31 kB / 1.281 GB, free: 16.15 MB / 1.014 GB Notification: Performance of SimCode: time 4.31e-07/1.081, allocations: 0 / 1.281 GB, free: 16.15 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02527/1.106, allocations: 2.887 MB / 1.284 GB, free: 15.68 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.733/8.839, allocations: 11.38 kB / 1.284 GB, free: 15.67 MB / 1.014 GB " [Timeout remaining time 291] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Logical_Validation_Nand_fmu --startTime=0 --stopTime=5 --timeout=400 --tolerance=1e-06 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.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Validation_Nand.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 14.910959382978035]