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.0008637/0.0008637, 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.0008583/0.0008583, 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.8956/0.8956, allocations: 177.1 MB / 202.8 MB, free: 5.758 MB / 186.7 MB " [Timeout remaining time 179] 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 1.79/1.79, allocations: 389 MB / 0.633 GB, free: 12.67 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/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: Performance of FrontEnd - loaded program: time 2.515e-06/2.515e-06, allocations: 0 / 0.9997 GB, free: 13.47 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.744e-05/1.996e-05, allocations: 2.281 kB / 0.9997 GB, free: 13.46 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.001407/0.001427, allocations: 0.628 MB / 1 GB, free: 12.84 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001092/0.002518, allocations: 1.21 MB / 1.001 GB, free: 11.62 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.493e-05/0.002553, allocations: 0 / 1.001 GB, free: 11.62 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 2.436e-05/0.002578, allocations: 7.922 kB / 1.001 GB, free: 11.61 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 5.642e-05/0.002634, allocations: 15.86 kB / 1.001 GB, free: 11.59 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.000468/0.003102, allocations: 217.5 kB / 1.002 GB, free: 11.39 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0002683/0.00337, allocations: 183.5 kB / 1.002 GB, free: 11.21 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 7.797e-05/0.003448, allocations: 15.91 kB / 1.002 GB, free: 11.19 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000264/0.003712, allocations: 95.92 kB / 1.002 GB, free: 11.1 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 9.593e-05/0.003808, allocations: 51.84 kB / 1.002 GB, free: 11.05 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 2.611e-05/0.003834, allocations: 12 kB / 1.002 GB, free: 11.04 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 5.679e-05/0.003891, allocations: 28 kB / 1.002 GB, free: 11.01 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 1.844e-05/0.00391, allocations: 11.97 kB / 1.002 GB, free: 11 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 5.295e-05/0.003963, allocations: 47.91 kB / 1.002 GB, free: 10.95 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001737/0.004136, allocations: 183.6 kB / 1.002 GB, free: 10.77 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 1.744e-06/0.004138, allocations: 0 / 1.002 GB, free: 10.77 MB / 0.9636 GB Notification: Performance of FrontEnd: time 5.31e-07/0.004139, allocations: 4 kB / 1.002 GB, free: 10.77 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 8.195e-06/0.004147, allocations: 4 kB / 1.002 GB, free: 10.76 MB / 0.9636 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.00052/0.004667, allocations: 357.5 kB / 1.003 GB, free: 10.37 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/0.004713, allocations: 8.75 kB / 1.003 GB, free: 10.36 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.844e-05/0.004741, allocations: 38.73 kB / 1.003 GB, free: 10.31 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.479e-05/0.004786, allocations: 4.938 kB / 1.003 GB, free: 10.31 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.708e-05/0.004863, allocations: 117.7 kB / 1.003 GB, free: 10.17 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.379e-05/0.004877, allocations: 8.312 kB / 1.003 GB, free: 10.16 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.816e-05/0.004895, allocations: 12.38 kB / 1.003 GB, free: 10.15 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001074/0.005003, allocations: 50.23 kB / 1.003 GB, free: 10.09 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.00501, allocations: 192 / 1.003 GB, free: 10.09 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.997e-06/0.005019, allocations: 4.375 kB / 1.003 GB, free: 10.09 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.733e-06/0.005026, allocations: 8.125 kB / 1.003 GB, free: 10.08 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.631e-05/0.005062, allocations: 15.98 kB / 1.003 GB, free: 10.07 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003987/0.005461, allocations: 288 kB / 1.003 GB, free: 9.742 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 7.254e-05/0.005534, allocations: 30.52 kB / 1.003 GB, free: 9.703 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.521e-05/0.005559, allocations: 20.94 kB / 1.003 GB, free: 9.68 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.216e-05/0.005571, allocations: 3.938 kB / 1.003 GB, free: 9.676 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001717/0.005743, allocations: 79.33 kB / 1.003 GB, free: 9.586 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=7): time 1.393e-06/0.005744, allocations: 0 / 1.003 GB, free: 9.586 MB / 0.9636 GB Notification: Performance of matching and sorting (n=7): time 0.000201/0.005945, allocations: 113.6 kB / 1.003 GB, free: 9.469 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.871e-05/0.005984, allocations: 51.41 kB / 1.003 GB, free: 9.406 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.3e-05/0.006057, allocations: 129.7 kB / 1.004 GB, free: 9.27 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 2.128e-05/0.006078, allocations: 29.7 kB / 1.004 GB, free: 9.234 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 4.727e-05/0.006125, allocations: 88.14 kB / 1.004 GB, free: 9.145 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.507e-05/0.00614, allocations: 15.91 kB / 1.004 GB, free: 9.129 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.159e-05/0.006202, allocations: 45.69 kB / 1.004 GB, free: 9.078 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 7.754e-05/0.006279, allocations: 322.8 kB / 1.004 GB, free: 8.754 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001213/0.006401, allocations: 119.4 kB / 1.004 GB, free: 8.625 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001191/0.00652, allocations: 158.9 kB / 1.004 GB, free: 8.445 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001265/0.006646, allocations: 163.5 kB / 1.004 GB, free: 8.258 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.00665, allocations: 3.938 kB / 1.005 GB, free: 8.254 MB / 0.9636 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002976/0.006947, allocations: 332.2 kB / 1.005 GB, free: 7.898 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 4.508e-05/0.006992, allocations: 67.39 kB / 1.005 GB, free: 7.82 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.006999, allocations: 4 kB / 1.005 GB, free: 7.816 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.015e-05/0.007019, allocations: 0 / 1.005 GB, free: 7.816 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.134e-05/0.007041, allocations: 12.06 kB / 1.005 GB, free: 7.805 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.64e-06/0.007046, allocations: 0 / 1.005 GB, free: 7.805 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001986/0.007245, allocations: 51.88 kB / 1.005 GB, free: 7.754 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.966e-05/0.007264, allocations: 12.45 kB / 1.005 GB, free: 7.742 MB / 0.9636 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.271e-05/0.007347, allocations: 129.7 kB / 1.005 GB, free: 7.605 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.097e-05/0.007358, allocations: 11.94 kB / 1.005 GB, free: 7.594 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.276e-05/0.007381, allocations: 8.438 kB / 1.005 GB, free: 7.586 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.007383, allocations: 4 kB / 1.005 GB, free: 7.582 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.007388, allocations: 3.938 kB / 1.005 GB, free: 7.578 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.095e-06/0.007391, allocations: 0 / 1.005 GB, free: 7.578 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.576e-05/0.007487, allocations: 144.7 kB / 1.005 GB, free: 7.395 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.007488, allocations: 0 / 1.005 GB, free: 7.395 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.162e-06/0.007495, allocations: 4 kB / 1.005 GB, free: 7.391 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.007497, allocations: 4 kB / 1.005 GB, free: 7.387 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.813e-06/0.007504, allocations: 0 / 1.005 GB, free: 7.387 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.007505, allocations: 0 / 1.005 GB, free: 7.387 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.007506, allocations: 0 / 1.005 GB, free: 7.387 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00011/0.007616, allocations: 113 kB / 1.005 GB, free: 7.258 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 1.039e-05/0.007627, allocations: 19.89 kB / 1.005 GB, free: 7.238 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.311e-05/0.00764, allocations: 4.062 kB / 1.005 GB, free: 7.234 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.319e-05/0.007653, allocations: 0 / 1.005 GB, free: 7.234 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.743e-05/0.007691, allocations: 7.984 kB / 1.005 GB, free: 7.227 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.169e-06/0.007696, allocations: 4 kB / 1.005 GB, free: 7.223 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 3.636e-05/0.007732, allocations: 91.27 kB / 1.005 GB, free: 7.133 MB / 0.9636 GB Notification: Performance of sort global known variables: time 5e-08/0.007732, allocations: 0 / 1.005 GB, free: 7.133 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.000173/0.007905, allocations: 32 kB / 1.006 GB, free: 7.102 MB / 0.9636 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.0003392/0.008244, allocations: 0.6514 MB / 1.006 GB, free: 6.418 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0002609/0.008505, allocations: 282.1 kB / 1.006 GB, free: 6.105 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.008507, allocations: 0 / 1.006 GB, free: 6.105 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 3.076e-05/0.008538, allocations: 27.92 kB / 1.006 GB, free: 6.078 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001892/0.008727, allocations: 15.44 kB / 1.006 GB, free: 6.066 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001547/0.01027, allocations: 1.951 MB / 1.008 GB, free: 3.941 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6e-05/0.01033, allocations: 83.59 kB / 1.008 GB, free: 3.84 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 3.597e-05/0.01037, allocations: 11.8 kB / 1.008 GB, free: 3.828 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.74e-05/0.01042, allocations: 24.48 kB / 1.008 GB, free: 3.805 MB / 0.9636 GB Notification: Performance of SimCode: time 9.01e-07/0.01042, allocations: 0 / 1.008 GB, free: 3.805 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01723/0.02765, allocations: 3.739 MB / 1.012 GB, free: 244 kB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.583/6.61, allocations: 2.062 kB / 1.012 GB, free: 244 kB / 0.9636 GB " [Timeout remaining time 293] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Nand_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=800 --tolerance=1e-06 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.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Nand.csv","/var/lib/jenkins/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] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.692295261658728]