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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00514/0.00514, allocations: 96.94 kB / 15.73 MB, free: 6.484 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001315/0.001315, allocations: 192.2 kB / 16.67 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.309/1.309, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.813/2.813, allocations: 482.6 MB / 0.755 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001801/0.001802, allocations: 63.91 kB / 1.083 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2982/0.3001, allocations: 162.3 MB / 1.242 GB, free: 9.848 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.001732/0.3018, allocations: 0.6595 MB / 1.243 GB, free: 9.191 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001482/0.3033, allocations: 1.174 MB / 1.244 GB, free: 8.004 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.178e-05/0.3034, allocations: 0 / 1.244 GB, free: 8.004 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.862e-05/0.3034, allocations: 3.938 kB / 1.244 GB, free: 8 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 6.606e-05/0.3035, allocations: 19.84 kB / 1.244 GB, free: 7.98 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006073/0.3041, allocations: 218.5 kB / 1.244 GB, free: 7.773 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0002353/0.3044, allocations: 183.7 kB / 1.244 GB, free: 7.594 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.532e-05/0.3045, allocations: 11.98 kB / 1.244 GB, free: 7.582 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 9.577e-05/0.3046, allocations: 67.89 kB / 1.244 GB, free: 7.516 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001324/0.3047, allocations: 63.83 kB / 1.244 GB, free: 7.453 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 3.316e-05/0.3047, allocations: 12 kB / 1.244 GB, free: 7.441 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 8.46e-05/0.3048, allocations: 39.92 kB / 1.244 GB, free: 7.402 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.089e-05/0.3048, allocations: 8 kB / 1.244 GB, free: 7.395 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 8.721e-05/0.3049, allocations: 55.81 kB / 1.244 GB, free: 7.34 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002218/0.3052, allocations: 151.5 kB / 1.244 GB, free: 7.191 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.3052, allocations: 0 / 1.244 GB, free: 7.191 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.553e-06/0.3052, allocations: 0 / 1.244 GB, free: 7.191 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 8.085e-06/0.3052, allocations: 0 / 1.244 GB, free: 7.191 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.0005347/0.3057, allocations: 438.7 kB / 1.245 GB, free: 6.699 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.3058, allocations: 8.031 kB / 1.245 GB, free: 6.691 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.235e-05/0.3058, allocations: 30.75 kB / 1.245 GB, free: 6.652 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.648e-05/0.3059, allocations: 16.89 kB / 1.245 GB, free: 6.637 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001234/0.306, allocations: 176.2 kB / 1.245 GB, free: 6.426 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.922e-05/0.306, allocations: 8.375 kB / 1.245 GB, free: 6.418 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.662e-05/0.3061, allocations: 12.38 kB / 1.245 GB, free: 6.406 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001101/0.3062, allocations: 50.19 kB / 1.245 GB, free: 6.352 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.3062, allocations: 7.922 kB / 1.245 GB, free: 6.344 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.002e-05/0.3062, allocations: 3.984 kB / 1.245 GB, free: 6.34 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.3062, allocations: 0 / 1.245 GB, free: 6.34 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.91e-05/0.3063, allocations: 12 kB / 1.245 GB, free: 6.328 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004678/0.3067, allocations: 360.7 kB / 1.246 GB, free: 5.926 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 7.707e-05/0.3068, allocations: 38.5 kB / 1.246 GB, free: 5.879 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.763e-05/0.3069, allocations: 12.86 kB / 1.246 GB, free: 5.863 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 8.536e-06/0.3069, allocations: 0 / 1.246 GB, free: 5.863 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001622/0.307, allocations: 79.47 kB / 1.246 GB, free: 5.773 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=7): time 1.143e-06/0.307, allocations: 4 kB / 1.246 GB, free: 5.77 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7): time 0.000242/0.3073, allocations: 109.5 kB / 1.246 GB, free: 5.656 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.579e-05/0.3073, allocations: 55.41 kB / 1.246 GB, free: 5.59 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.697e-05/0.3075, allocations: 113.8 kB / 1.246 GB, free: 5.469 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.77e-05/0.3075, allocations: 33.7 kB / 1.246 GB, free: 5.43 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.944e-05/0.3076, allocations: 100.1 kB / 1.246 GB, free: 5.328 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.584e-05/0.3076, allocations: 7.953 kB / 1.246 GB, free: 5.32 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.128e-05/0.3077, allocations: 45.69 kB / 1.246 GB, free: 5.27 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001358/0.3078, allocations: 326.8 kB / 1.246 GB, free: 4.941 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001357/0.308, allocations: 63.95 kB / 1.246 GB, free: 4.879 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001429/0.3081, allocations: 84.27 kB / 1.247 GB, free: 4.781 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000204/0.3083, allocations: 168 kB / 1.247 GB, free: 4.59 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.3083, allocations: 3.938 kB / 1.247 GB, free: 4.586 MB / 0.9981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004189/0.3088, allocations: 264.8 kB / 1.247 GB, free: 4.309 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 6.116e-05/0.3088, allocations: 68.8 kB / 1.247 GB, free: 4.23 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.3088, allocations: 0 / 1.247 GB, free: 4.23 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.161e-05/0.3089, allocations: 4 kB / 1.247 GB, free: 4.227 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.025e-05/0.3089, allocations: 4 kB / 1.247 GB, free: 4.223 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.3089, allocations: 128 / 1.247 GB, free: 4.223 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003299/0.3092, allocations: 63.83 kB / 1.247 GB, free: 4.16 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.199e-05/0.3093, allocations: 11.98 kB / 1.247 GB, free: 4.148 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.0001039/0.3094, allocations: 121.8 kB / 1.247 GB, free: 4.02 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.543e-05/0.3094, allocations: 7.953 kB / 1.247 GB, free: 4.012 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.94e-05/0.3094, allocations: 12.31 kB / 1.247 GB, free: 3.996 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.3094, allocations: 11.98 kB / 1.247 GB, free: 3.984 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.3095, allocations: 0 / 1.247 GB, free: 3.984 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.3095, allocations: 0 / 1.247 GB, free: 3.984 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001437/0.3096, allocations: 173.6 kB / 1.247 GB, free: 3.766 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.3096, allocations: 0 / 1.247 GB, free: 3.766 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.474e-06/0.3096, allocations: 0 / 1.247 GB, free: 3.766 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.3096, allocations: 64 / 1.247 GB, free: 3.766 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.597e-05/0.3096, allocations: 15.98 kB / 1.247 GB, free: 3.75 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.3097, allocations: 0 / 1.247 GB, free: 3.75 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.3097, allocations: 0 / 1.247 GB, free: 3.75 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001505/0.3098, allocations: 113 kB / 1.248 GB, free: 3.621 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.082e-05/0.3099, allocations: 81.06 kB / 1.248 GB, free: 3.523 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.571e-05/0.3099, allocations: 4 kB / 1.248 GB, free: 3.52 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.973e-05/0.3099, allocations: 4 kB / 1.248 GB, free: 3.516 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.967e-05/0.31, allocations: 7.922 kB / 1.248 GB, free: 3.508 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.995e-06/0.31, allocations: 4 kB / 1.248 GB, free: 3.504 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 5.483e-05/0.31, allocations: 95.2 kB / 1.248 GB, free: 3.41 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.31, allocations: 0 / 1.248 GB, free: 3.41 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002223/0.3103, allocations: 36 kB / 1.248 GB, free: 3.375 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.0004944/0.3108, allocations: 0.6441 MB / 1.248 GB, free: 2.703 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003442/0.3111, allocations: 250.7 kB / 1.249 GB, free: 2.434 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.3111, allocations: 256 / 1.249 GB, free: 2.434 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 5.5e-05/0.3112, allocations: 31.92 kB / 1.249 GB, free: 2.402 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002158/0.3114, allocations: 19.92 kB / 1.249 GB, free: 2.383 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001951/0.3134, allocations: 1.716 MB / 1.25 GB, free: 0.5508 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.5508/0.8642, allocations: 0.6824 MB / 1.251 GB, free: 14 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 5.259e-05/0.8643, allocations: 5.5 kB / 1.251 GB, free: 14 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.158e-05/0.8643, allocations: 16.72 kB / 1.251 GB, free: 13.99 MB / 0.9981 GB Notification: Performance of SimCode: time 1.152e-06/0.8643, allocations: 0 / 1.251 GB, free: 13.99 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.106/1.97, allocations: 2.891 MB / 1.254 GB, free: 13.62 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.53/13.5, allocations: 3.125 kB / 1.254 GB, free: 13.62 MB / 0.9981 GB (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 --timeout=400 --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) 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches