Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.3/2.3, allocations: 390.3 MB / 405.3 MB, free: 13.48 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.001079/0.001079, allocations: 179.3 kB / 498.1 MB, free: 5.742 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.692/1.692, allocations: 223.2 MB / 0.7949 GB, free: 17.9 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.0009102/0.0009101, allocations: 99.81 kB / 0.9346 GB, free: 6.195 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003782/0.0003783, allocations: 10.03 kB / 1.084 GB, free: 220.9 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3022/0.3026, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1839/0.4865, allocations: 149.4 MB / 1.369 GB, free: 12.68 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002615/0.4868, allocations: 75.95 kB / 1.369 GB, free: 12.6 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.008535/0.4953, allocations: 2.933 MB / 1.372 GB, free: 9.664 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.384e-06/0.4954, allocations: 0 / 1.372 GB, free: 9.664 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 7.685e-06/0.4954, allocations: 0 / 1.372 GB, free: 9.664 MB / 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.0005024/0.4959, allocations: 414.6 kB / 1.372 GB, free: 9.199 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.313e-05/0.4959, allocations: 8.031 kB / 1.372 GB, free: 9.191 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.999e-05/0.496, allocations: 11.91 kB / 1.372 GB, free: 9.18 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001378/0.4962, allocations: 175 kB / 1.372 GB, free: 8.969 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.169e-05/0.4962, allocations: 4 kB / 1.372 GB, free: 8.965 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.427e-05/0.4962, allocations: 12 kB / 1.372 GB, free: 8.953 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001171/0.4963, allocations: 45.69 kB / 1.372 GB, free: 8.902 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.4964, allocations: 3.984 kB / 1.372 GB, free: 8.898 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.111e-05/0.4964, allocations: 0 / 1.372 GB, free: 8.898 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.4964, allocations: 0 / 1.372 GB, free: 8.898 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.28e-05/0.4964, allocations: 16 kB / 1.372 GB, free: 8.883 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000529/0.497, allocations: 352.7 kB / 1.373 GB, free: 8.488 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 9.16e-05/0.4971, allocations: 42.44 kB / 1.373 GB, free: 8.438 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 9.668e-06/0.4971, allocations: 0 / 1.373 GB, free: 8.438 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001833/0.4973, allocations: 87.44 kB / 1.373 GB, free: 8.34 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=7): time 1.433e-06/0.4973, allocations: 0 / 1.373 GB, free: 8.34 MB / 0.8698 GB Notification: Performance of matching and sorting (n=7): time 0.0002611/0.4976, allocations: 105.5 kB / 1.373 GB, free: 8.23 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.489e-05/0.4976, allocations: 59.36 kB / 1.373 GB, free: 8.16 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.583e-05/0.4977, allocations: 113 kB / 1.373 GB, free: 8.039 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 3.801e-05/0.4978, allocations: 37.69 kB / 1.373 GB, free: 7.996 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 6.439e-05/0.4978, allocations: 88.33 kB / 1.373 GB, free: 7.906 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.006e-05/0.4979, allocations: 15.8 kB / 1.373 GB, free: 7.891 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.727e-05/0.4979, allocations: 4 kB / 1.373 GB, free: 7.887 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001353/0.498, allocations: 322.8 kB / 1.374 GB, free: 7.562 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001238/0.4982, allocations: 59.97 kB / 1.374 GB, free: 7.504 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001359/0.4983, allocations: 88.25 kB / 1.374 GB, free: 7.402 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001428/0.4984, allocations: 119.3 kB / 1.374 GB, free: 7.273 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.4985, allocations: 0 / 1.374 GB, free: 7.273 MB / 0.8698 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003936/0.4989, allocations: 256.8 kB / 1.374 GB, free: 7.004 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 5.474e-05/0.4989, allocations: 67.39 kB / 1.374 GB, free: 6.926 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.273e-06/0.4989, allocations: 4 kB / 1.374 GB, free: 6.922 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/0.4989, allocations: 0 / 1.374 GB, free: 6.922 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.145e-05/0.499, allocations: 7.984 kB / 1.374 GB, free: 6.914 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.582e-06/0.499, allocations: 0 / 1.374 GB, free: 6.914 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003304/0.4993, allocations: 76.02 kB / 1.374 GB, free: 6.84 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.119e-05/0.4994, allocations: 15.98 kB / 1.374 GB, free: 6.824 MB / 0.8698 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.000102/0.4995, allocations: 125.8 kB / 1.374 GB, free: 6.691 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.321e-05/0.4995, allocations: 7.906 kB / 1.374 GB, free: 6.684 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.979e-05/0.4995, allocations: 8.375 kB / 1.374 GB, free: 6.672 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.4995, allocations: 0 / 1.374 GB, free: 6.672 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.4995, allocations: 4 kB / 1.374 GB, free: 6.668 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.4996, allocations: 64 / 1.374 GB, free: 6.668 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000143/0.4997, allocations: 178.1 kB / 1.374 GB, free: 6.445 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.4997, allocations: 0 / 1.374 GB, free: 6.445 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.815e-06/0.4997, allocations: 4 kB / 1.374 GB, free: 6.441 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.4997, allocations: 4 kB / 1.374 GB, free: 6.438 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.226e-05/0.4998, allocations: 3.984 kB / 1.374 GB, free: 6.434 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.4998, allocations: 7.875 kB / 1.375 GB, free: 6.426 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.4998, allocations: 4 kB / 1.375 GB, free: 6.422 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000164/0.4999, allocations: 113.8 kB / 1.375 GB, free: 6.293 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 3.785e-05/0.5, allocations: 85.02 kB / 1.375 GB, free: 6.191 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.66e-05/0.5, allocations: 3.984 kB / 1.375 GB, free: 6.188 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.851e-05/0.5, allocations: 0 / 1.375 GB, free: 6.188 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.172e-05/0.5001, allocations: 12 kB / 1.375 GB, free: 6.176 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.186e-05/0.5001, allocations: 7.984 kB / 1.375 GB, free: 6.168 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 4.376e-05/0.5001, allocations: 83.28 kB / 1.375 GB, free: 6.086 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5002, allocations: 4 kB / 1.375 GB, free: 6.082 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002369/0.5004, allocations: 35.98 kB / 1.375 GB, free: 6.047 MB / 0.8698 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.0001931/0.5006, allocations: 115 kB / 1.375 GB, free: 5.926 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0003295/0.5009, allocations: 246.9 kB / 1.375 GB, free: 5.66 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.5009, allocations: 4 kB / 1.375 GB, free: 5.656 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 4.982e-05/0.501, allocations: 27.92 kB / 1.375 GB, free: 5.629 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001733/0.5012, allocations: 18.89 kB / 1.375 GB, free: 5.613 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003384/0.5015, allocations: 159.6 kB / 1.375 GB, free: 5.426 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002363/0.5018, allocations: 0.6965 MB / 1.376 GB, free: 4.703 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 2.985e-05/0.5018, allocations: 11.77 kB / 1.376 GB, free: 4.691 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.928e-05/0.5018, allocations: 11.44 kB / 1.376 GB, free: 4.68 MB / 0.8698 GB Notification: Performance of SimCode: time 5.71e-07/0.5018, allocations: 0 / 1.376 GB, free: 4.68 MB / 0.8698 GB Notification: Performance of Templates: time 0.003974/0.5058, allocations: 1.667 MB / 1.378 GB, free: 3.031 MB / 0.8698 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_Nand.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches