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.337/2.337, allocations: 393.5 MB / 408.4 MB, free: 11.05 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.001134/0.001134, allocations: 180 kB / 0.4902 GB, free: 2.234 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.545/1.545, allocations: 223.1 MB / 0.7992 GB, free: 14.74 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.0009265/0.0009264, allocations: 100.2 kB / 0.9396 GB, free: 1.895 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004104/0.0004106, allocations: 13.45 kB / 1.09 GB, free: 216.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3273/0.3277, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2/0.5278, allocations: 150.1 MB / 1.376 GB, free: 3.383 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002406/0.5281, allocations: 71.95 kB / 1.376 GB, free: 3.312 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.008731/0.5368, allocations: 2.93 MB / 1.379 GB, free: 388 kB / 0.8698 GB Notification: Performance of FrontEnd: time 1.863e-06/0.5369, allocations: 3.938 kB / 1.379 GB, free: 384 kB / 0.8698 GB Notification: Performance of Transformations before backend: time 4.859e-06/0.5369, allocations: 0 / 1.379 GB, free: 384 kB / 0.8698 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.0004136/0.5373, allocations: 422.6 kB / 1.379 GB, free: 15.9 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 3.437e-05/0.5374, allocations: 8.031 kB / 1.379 GB, free: 15.89 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.975e-05/0.5374, allocations: 19.91 kB / 1.379 GB, free: 15.88 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000114/0.5375, allocations: 167 kB / 1.379 GB, free: 15.67 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.686e-05/0.5376, allocations: 8 kB / 1.379 GB, free: 15.66 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.063e-05/0.5376, allocations: 8 kB / 1.379 GB, free: 15.66 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.215e-05/0.5377, allocations: 49.67 kB / 1.379 GB, free: 15.6 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.59e-06/0.5377, allocations: 0 / 1.379 GB, free: 15.6 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.076e-06/0.5377, allocations: 0 / 1.379 GB, free: 15.6 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.5377, allocations: 4 kB / 1.379 GB, free: 15.6 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.628e-05/0.5378, allocations: 11.94 kB / 1.379 GB, free: 15.59 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004326/0.5382, allocations: 352.8 kB / 1.38 GB, free: 15.19 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 6.626e-05/0.5383, allocations: 34.56 kB / 1.38 GB, free: 15.15 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 8.847e-06/0.5383, allocations: 4 kB / 1.38 GB, free: 15.14 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001621/0.5385, allocations: 87.3 kB / 1.38 GB, free: 15.05 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=7): time 1.302e-06/0.5385, allocations: 0 / 1.38 GB, free: 15.05 MB / 0.8855 GB Notification: Performance of matching and sorting (n=7): time 0.0002107/0.5387, allocations: 101.6 kB / 1.38 GB, free: 14.94 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.477e-05/0.5388, allocations: 63.34 kB / 1.38 GB, free: 14.87 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.739e-05/0.5389, allocations: 109.1 kB / 1.38 GB, free: 14.75 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 3.612e-05/0.5389, allocations: 29.7 kB / 1.38 GB, free: 14.71 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 6.076e-05/0.539, allocations: 88.33 kB / 1.38 GB, free: 14.62 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.048e-05/0.539, allocations: 19.8 kB / 1.38 GB, free: 14.61 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.72e-05/0.539, allocations: 4 kB / 1.38 GB, free: 14.6 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001298/0.5392, allocations: 318.8 kB / 1.381 GB, free: 14.28 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000121/0.5393, allocations: 63.91 kB / 1.381 GB, free: 14.22 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001419/0.5394, allocations: 100.2 kB / 1.381 GB, free: 14.11 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001446/0.5396, allocations: 107.5 kB / 1.381 GB, free: 13.99 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.5396, allocations: 0 / 1.381 GB, free: 13.99 MB / 0.8855 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003971/0.54, allocations: 256.9 kB / 1.381 GB, free: 13.72 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 5.228e-05/0.5401, allocations: 71.39 kB / 1.381 GB, free: 13.64 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.5401, allocations: 0 / 1.381 GB, free: 13.64 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.155e-05/0.5401, allocations: 4 kB / 1.381 GB, free: 13.63 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.908e-05/0.5401, allocations: 8 kB / 1.381 GB, free: 13.62 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.572e-06/0.5401, allocations: 4 kB / 1.381 GB, free: 13.62 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003411/0.5405, allocations: 79.92 kB / 1.381 GB, free: 13.54 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.179e-05/0.5405, allocations: 16.45 kB / 1.381 GB, free: 13.53 MB / 0.8855 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001358/0.5407, allocations: 122.6 kB / 1.381 GB, free: 13.4 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.238e-05/0.5407, allocations: 4 kB / 1.381 GB, free: 13.39 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.026e-05/0.5407, allocations: 12.38 kB / 1.381 GB, free: 13.38 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.5407, allocations: 0 / 1.381 GB, free: 13.38 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.798e-06/0.5407, allocations: 7.922 kB / 1.381 GB, free: 13.37 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.5407, allocations: 0 / 1.381 GB, free: 13.37 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001288/0.5409, allocations: 173.6 kB / 1.382 GB, free: 13.15 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.5409, allocations: 0 / 1.382 GB, free: 13.15 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.744e-06/0.5409, allocations: 0 / 1.382 GB, free: 13.15 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.53e-06/0.5409, allocations: 4 kB / 1.382 GB, free: 13.15 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.219e-05/0.5409, allocations: 11.92 kB / 1.382 GB, free: 13.14 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.5409, allocations: 4 kB / 1.382 GB, free: 13.13 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.5409, allocations: 0 / 1.382 GB, free: 13.13 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001534/0.5411, allocations: 117.2 kB / 1.382 GB, free: 13 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.545e-05/0.5412, allocations: 81.02 kB / 1.382 GB, free: 12.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.661e-05/0.5412, allocations: 4 kB / 1.382 GB, free: 12.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.873e-05/0.5412, allocations: 4 kB / 1.382 GB, free: 12.89 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.376e-05/0.5412, allocations: 3.984 kB / 1.382 GB, free: 12.89 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.33e-06/0.5413, allocations: 4 kB / 1.382 GB, free: 12.89 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 5.177e-05/0.5413, allocations: 95.27 kB / 1.382 GB, free: 12.79 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.01e-07/0.5413, allocations: 0 / 1.382 GB, free: 12.79 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002449/0.5416, allocations: 39.94 kB / 1.382 GB, free: 12.75 MB / 0.8855 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 (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.0002099/0.5418, allocations: 126.1 kB / 1.382 GB, free: 12.62 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0003073/0.5421, allocations: 242.8 kB / 1.382 GB, free: 12.36 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.5421, allocations: 0 / 1.382 GB, free: 12.36 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 4.766e-05/0.5422, allocations: 28.23 kB / 1.382 GB, free: 12.34 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001612/0.5423, allocations: 20.45 kB / 1.382 GB, free: 12.32 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002854/0.5426, allocations: 163.3 kB / 1.383 GB, free: 12.12 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002429/0.5429, allocations: 0.6926 MB / 1.383 GB, free: 11.4 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 2.616e-05/0.5429, allocations: 7.781 kB / 1.383 GB, free: 11.39 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.943e-05/0.543, allocations: 11.44 kB / 1.383 GB, free: 11.38 MB / 0.8855 GB Notification: Performance of SimCode: time 3.4e-07/0.543, allocations: 0 / 1.383 GB, free: 11.38 MB / 0.8855 GB Notification: Performance of Templates: time 0.003843/0.5468, allocations: 1.667 MB / 1.385 GB, free: 9.734 MB / 0.8855 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