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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nand1.u1|nand1.u2|nand1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nand1.u1|nand1.u2|nand1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.361/2.361, allocations: 390.5 MB / 398 MB, free: 10.91 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001075/0.001075, allocations: 184.6 kB / 491.2 MB, free: 1.539 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.474/1.474, allocations: 221.5 MB / 0.7868 GB, free: 13.32 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008593/0.0008593, allocations: 103.5 kB / 0.9269 GB, free: 13.82 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.62e-05/1.648e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.265/0.265, allocations: 143 MB / 1.212 GB, free: 39.52 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9078/1.173, allocations: 149.4 MB / 1.358 GB, free: 17.48 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002494/1.173, allocations: 67.81 kB / 1.358 GB, free: 17.48 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.0126/1.186, allocations: 2.916 MB / 1.361 GB, free: 33.04 MB / 0.8386 GB Notification: Performance of FrontEnd: time 3.116e-06/1.186, allocations: 0 / 1.361 GB, free: 33.04 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 9.868e-06/1.186, allocations: 3.938 kB / 1.361 GB, free: 33.04 MB / 0.8386 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.0004503/1.186, allocations: 409.2 kB / 1.362 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.584e-05/1.186, allocations: 7.812 kB / 1.362 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.074e-05/1.186, allocations: 12.95 kB / 1.362 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001115/1.187, allocations: 170.2 kB / 1.362 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.148e-05/1.187, allocations: 1.734 kB / 1.362 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.746e-05/1.187, allocations: 11.56 kB / 1.362 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.564e-05/1.187, allocations: 7.344 kB / 1.362 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001207/1.187, allocations: 49.45 kB / 1.362 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/1.187, allocations: 0 / 1.362 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.471e-05/1.187, allocations: 4 kB / 1.362 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.19e-05/1.187, allocations: 0 / 1.362 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006175/1.188, allocations: 334.5 kB / 1.362 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 8.775e-05/1.188, allocations: 25.64 kB / 1.362 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.738e-05/1.188, allocations: 19.78 kB / 1.362 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.41e-05/1.188, allocations: 4.844 kB / 1.362 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001747/1.188, allocations: 83.86 kB / 1.362 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 2.114e-06/1.188, allocations: 0 / 1.362 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0002769/1.188, allocations: 76.66 kB / 1.362 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.317e-05/1.188, allocations: 52.16 kB / 1.362 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001123/1.188, allocations: 118.4 kB / 1.362 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.634e-05/1.189, allocations: 29.58 kB / 1.363 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.518e-05/1.189, allocations: 88.61 kB / 1.363 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.079e-05/1.189, allocations: 19.59 kB / 1.363 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.037e-05/1.189, allocations: 5.109 kB / 1.363 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001047/1.189, allocations: 316 kB / 1.363 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001653/1.189, allocations: 53.58 kB / 1.363 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001739/1.189, allocations: 84.56 kB / 1.363 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004245/1.19, allocations: 68.84 kB / 1.363 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/1.19, allocations: 0 / 1.363 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000701/1.19, allocations: 203.8 kB / 1.363 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 5.125e-05/1.19, allocations: 69.42 kB / 1.363 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.872e-06/1.19, allocations: 0 / 1.363 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.738e-05/1.19, allocations: 4.094 kB / 1.363 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.457e-05/1.19, allocations: 9.391 kB / 1.363 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.342e-06/1.191, allocations: 3.844 kB / 1.363 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004555/1.191, allocations: 70.42 kB / 1.363 GB, free: 31.24 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.297e-05/1.191, allocations: 11.11 kB / 1.363 GB, free: 31.24 MB / 0.8386 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,$PRE.booPul1.y,booPul1.y,$PRE.booPul2.y,booPul2.y,nand1.y) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.871e-05/1.191, allocations: 121 kB / 1.364 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.888e-05/1.191, allocations: 7.719 kB / 1.364 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.307e-05/1.191, allocations: 9.844 kB / 1.364 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/1.191, allocations: 0 / 1.364 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/1.191, allocations: 0 / 1.364 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/1.191, allocations: 4 kB / 1.364 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001111/1.191, allocations: 156.8 kB / 1.364 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/1.191, allocations: 0 / 1.364 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.382e-05/1.191, allocations: 3.812 kB / 1.364 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/1.191, allocations: 4.375 kB / 1.364 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.074e-05/1.191, allocations: 0 / 1.364 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/1.191, allocations: 64 / 1.364 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/1.191, allocations: 4 kB / 1.364 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001511/1.192, allocations: 109.1 kB / 1.364 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.61e-05/1.192, allocations: 81.05 kB / 1.364 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.968e-05/1.192, allocations: 0 / 1.364 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.151e-05/1.192, allocations: 3.344 kB / 1.364 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.889e-05/1.192, allocations: 13.52 kB / 1.364 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.03e-05/1.192, allocations: 3.422 kB / 1.364 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.267e-05/1.192, allocations: 85.03 kB / 1.364 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2.2e-07/1.192, allocations: 3.375 kB / 1.364 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003894/1.192, allocations: 30.62 kB / 1.364 GB, free: 30.7 MB / 0.8386 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001901/1.192, allocations: 114.3 kB / 1.364 GB, free: 30.6 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003557/1.193, allocations: 235.2 kB / 1.364 GB, free: 30.47 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/1.193, allocations: 0 / 1.364 GB, free: 30.47 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 7.122e-05/1.193, allocations: 21.84 kB / 1.364 GB, free: 30.47 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002564/1.193, allocations: 18.75 kB / 1.364 GB, free: 30.47 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002628/1.193, allocations: 87.2 kB / 1.365 GB, free: 30.39 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002838/1.194, allocations: 0.6986 MB / 1.365 GB, free: 29.69 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 4.306e-05/1.194, allocations: 9.375 kB / 1.365 GB, free: 29.69 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.619e-05/1.194, allocations: 11.25 kB / 1.365 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of SimCode: time 3.31e-07/1.194, allocations: 0 / 1.365 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of Templates: time 0.005356/1.199, allocations: 1.557 MB / 1.367 GB, free: 29.54 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.makefile (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 & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches