Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Controls_OBC_CDL_Logical_Validation_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Nand,fileNamePrefix="Buildings_10_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.01109/0.01109, allocations: 100.3 kB / 15.73 MB, free: 6.012 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.002406/0.002406, allocations: 190.1 kB / 16.67 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.801/2.801, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 5.12/5.12, allocations: 437 MB / 0.7105 GB, free: 4.363 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.003101/0.003101, allocations: 63.91 kB / 1.018 GB, free: 9.848 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.639/1.642, allocations: 151.6 MB / 1.166 GB, free: 3.742 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.002838/1.645, allocations: 0.6745 MB / 1.167 GB, free: 3.074 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.002849/1.648, allocations: 1.185 MB / 1.168 GB, free: 1.875 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.965e-05/1.648, allocations: 4 kB / 1.168 GB, free: 1.871 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.701e-05/1.648, allocations: 3.938 kB / 1.168 GB, free: 1.867 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001083/1.648, allocations: 11.86 kB / 1.168 GB, free: 1.855 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.001152/1.649, allocations: 213.8 kB / 1.168 GB, free: 1.652 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0004018/1.65, allocations: 191.6 kB / 1.168 GB, free: 1.465 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001435/1.65, allocations: 8 kB / 1.168 GB, free: 1.457 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001738/1.65, allocations: 71.88 kB / 1.168 GB, free: 1.387 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002262/1.65, allocations: 59.84 kB / 1.169 GB, free: 1.328 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 6.143e-05/1.65, allocations: 16 kB / 1.169 GB, free: 1.312 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001493/1.65, allocations: 35.98 kB / 1.169 GB, free: 1.277 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.251e-05/1.65, allocations: 7.984 kB / 1.169 GB, free: 1.27 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0001493/1.651, allocations: 63.81 kB / 1.169 GB, free: 1.207 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0003859/1.651, allocations: 146.2 kB / 1.169 GB, free: 1.066 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/1.651, allocations: 0 / 1.169 GB, free: 1.066 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.575e-06/1.651, allocations: 0 / 1.169 GB, free: 1.066 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 8.195e-06/1.651, allocations: 4 kB / 1.169 GB, free: 1.062 MB / 0.8887 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.0009502/1.652, allocations: 435.6 kB / 1.169 GB, free: 0.5742 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 6.647e-05/1.652, allocations: 8.922 kB / 1.169 GB, free: 0.5664 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.002e-05/1.652, allocations: 42.75 kB / 1.169 GB, free: 0.5156 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.909e-05/1.652, allocations: 8.891 kB / 1.169 GB, free: 0.5078 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002153/1.653, allocations: 172.3 kB / 1.169 GB, free: 308 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.232e-05/1.653, allocations: 4.375 kB / 1.169 GB, free: 304 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.612e-05/1.653, allocations: 16.36 kB / 1.169 GB, free: 288 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001856/1.653, allocations: 46.25 kB / 1.169 GB, free: 236 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.746e-05/1.653, allocations: 3.938 kB / 1.169 GB, free: 232 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.479e-05/1.653, allocations: 0 / 1.169 GB, free: 232 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.374e-05/1.653, allocations: 0 / 1.169 GB, free: 232 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.666e-05/1.653, allocations: 19.92 kB / 1.17 GB, free: 212 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008231/1.654, allocations: 364.7 kB / 1.17 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000126/1.654, allocations: 26.58 kB / 1.17 GB, free: 15.77 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.915e-05/1.654, allocations: 20.94 kB / 1.17 GB, free: 15.74 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.591e-05/1.654, allocations: 0 / 1.17 GB, free: 15.74 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002408/1.654, allocations: 79.31 kB / 1.17 GB, free: 15.65 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=7): time 2.114e-06/1.654, allocations: 4 kB / 1.17 GB, free: 15.65 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7): time 0.0004111/1.655, allocations: 101.6 kB / 1.17 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.795e-05/1.655, allocations: 51.41 kB / 1.17 GB, free: 15.48 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001915/1.655, allocations: 121.8 kB / 1.17 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 5.52e-05/1.655, allocations: 33.7 kB / 1.17 GB, free: 15.31 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001069/1.655, allocations: 92.08 kB / 1.17 GB, free: 15.22 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.953e-05/1.655, allocations: 15.91 kB / 1.17 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001719/1.656, allocations: 49.69 kB / 1.17 GB, free: 15.15 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0002178/1.656, allocations: 326.8 kB / 1.171 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002716/1.656, allocations: 59.97 kB / 1.171 GB, free: 14.76 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000282/1.656, allocations: 92.25 kB / 1.171 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003405/1.657, allocations: 164 kB / 1.171 GB, free: 14.47 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/1.657, allocations: 0 / 1.171 GB, free: 14.47 MB / 0.9044 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0008053/1.658, allocations: 261 kB / 1.171 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001049/1.658, allocations: 71.39 kB / 1.171 GB, free: 14.11 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.804e-06/1.658, allocations: 0 / 1.171 GB, free: 14.11 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.416e-05/1.658, allocations: 0 / 1.171 GB, free: 14.11 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.118e-05/1.658, allocations: 11.92 kB / 1.171 GB, free: 14.1 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.606e-06/1.658, allocations: 448 / 1.171 GB, free: 14.1 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005577/1.658, allocations: 59.83 kB / 1.171 GB, free: 14.04 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.041e-05/1.658, allocations: 16 kB / 1.171 GB, free: 14.03 MB / 0.9044 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.0001991/1.659, allocations: 125.8 kB / 1.172 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.885e-05/1.659, allocations: 3.953 kB / 1.172 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.419e-05/1.659, allocations: 12.38 kB / 1.172 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/1.659, allocations: 4 kB / 1.172 GB, free: 13.87 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/1.659, allocations: 0 / 1.172 GB, free: 13.87 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.765e-06/1.659, allocations: 3.984 kB / 1.172 GB, free: 13.87 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003041/1.659, allocations: 177.6 kB / 1.172 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/1.659, allocations: 0 / 1.172 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.161e-05/1.659, allocations: 7.938 kB / 1.172 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.028e-06/1.659, allocations: 0 / 1.172 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.2e-05/1.659, allocations: 0 / 1.172 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.152e-06/1.659, allocations: 3.984 kB / 1.172 GB, free: 13.63 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/1.659, allocations: 0 / 1.172 GB, free: 13.63 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003006/1.66, allocations: 121 kB / 1.172 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 7.749e-05/1.66, allocations: 77.11 kB / 1.172 GB, free: 13.4 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.983e-05/1.66, allocations: 7.984 kB / 1.172 GB, free: 13.39 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.813e-05/1.66, allocations: 4 kB / 1.172 GB, free: 13.39 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.167e-05/1.66, allocations: 4 kB / 1.172 GB, free: 13.39 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.064e-05/1.66, allocations: 0 / 1.172 GB, free: 13.39 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 9.947e-05/1.66, allocations: 95.2 kB / 1.172 GB, free: 13.29 MB / 0.9044 GB Notification: Performance of sort global known variables: time 3.3e-07/1.66, allocations: 0 / 1.172 GB, free: 13.29 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0004959/1.66, allocations: 39.94 kB / 1.172 GB, free: 13.25 MB / 0.9044 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.0008599/1.661, allocations: 0.6553 MB / 1.173 GB, free: 12.57 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0006731/1.662, allocations: 250.7 kB / 1.173 GB, free: 12.3 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.064e-05/1.662, allocations: 256 / 1.173 GB, free: 12.3 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 8.519e-05/1.662, allocations: 31.88 kB / 1.173 GB, free: 12.27 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000439/1.663, allocations: 15.98 kB / 1.173 GB, free: 12.25 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003805/1.666, allocations: 1.705 MB / 1.175 GB, free: 10.43 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005499/1.667, allocations: 0.6846 MB / 1.175 GB, free: 9.719 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 8.802e-05/1.667, allocations: 7.984 kB / 1.175 GB, free: 9.711 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.905e-05/1.667, allocations: 15.44 kB / 1.175 GB, free: 9.695 MB / 0.9044 GB Notification: Performance of SimCode: time 1.603e-06/1.667, allocations: 0 / 1.175 GB, free: 9.695 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1478/1.815, allocations: 2.891 MB / 1.178 GB, free: 6.918 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.56/18.38, allocations: 15.81 kB / 1.178 GB, free: 6.902 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_Nand.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Validation_Nand.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches