Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Nand") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.424/1.424, allocations: 249.3 MB / 261.8 MB, free: 5.898 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001056/0.001056, allocations: 168.9 kB / 321.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.413/1.413, allocations: 205.2 MB / 0.572 GB, free: 10.72 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008041/0.0008042, allocations: 84.59 kB / 0.6764 GB, free: 15.7 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 4.987e-05/5.021e-05, allocations: 7.984 kB / 0.7879 GB, free: 97.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2265/0.2266, allocations: 106.3 MB / 0.8918 GB, free: 6.664 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6895/0.9162, allocations: 131.4 MB / 1.02 GB, free: 3.359 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001969/0.9164, allocations: 69.03 kB / 1.02 GB, free: 3.324 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.002363/0.9188, allocations: 0.9055 MB / 1.021 GB, free: 2.488 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.303e-06/0.9188, allocations: 0 / 1.021 GB, free: 2.488 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.028e-05/0.9188, allocations: 4 kB / 1.021 GB, free: 2.484 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004274/0.9193, allocations: 352 kB / 1.021 GB, free: 2.102 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.9193, allocations: 8.031 kB / 1.021 GB, free: 2.094 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.424e-05/0.9194, allocations: 7.906 kB / 1.021 GB, free: 2.086 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001521/0.9195, allocations: 178.9 kB / 1.022 GB, free: 1.871 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.622e-05/0.9195, allocations: 3.25 kB / 1.022 GB, free: 1.871 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.49e-05/0.9196, allocations: 8 kB / 1.022 GB, free: 1.863 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001106/0.9197, allocations: 52.12 kB / 1.022 GB, free: 1.812 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.854e-06/0.9197, allocations: 0 / 1.022 GB, free: 1.812 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.124e-05/0.9197, allocations: 3.938 kB / 1.022 GB, free: 1.809 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.9197, allocations: 0 / 1.022 GB, free: 1.809 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.513e-05/0.9198, allocations: 18.81 kB / 1.022 GB, free: 1.797 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004259/0.9202, allocations: 278.1 kB / 1.022 GB, free: 1.492 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 9.858e-05/0.9203, allocations: 57.5 kB / 1.022 GB, free: 1.438 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.336e-05/0.9204, allocations: 16.3 kB / 1.022 GB, free: 1.422 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.056e-05/0.9204, allocations: 0 / 1.022 GB, free: 1.422 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001378/0.9205, allocations: 69.11 kB / 1.022 GB, free: 1.348 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 1.263e-06/0.9206, allocations: 2.625 kB / 1.022 GB, free: 1.348 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0001815/0.9207, allocations: 75.81 kB / 1.022 GB, free: 1.277 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.561e-05/0.9208, allocations: 59.39 kB / 1.022 GB, free: 1.207 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.236e-05/0.9209, allocations: 110.9 kB / 1.022 GB, free: 1.098 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.787e-05/0.9209, allocations: 28.89 kB / 1.022 GB, free: 1.066 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.499e-05/0.921, allocations: 91.25 kB / 1.022 GB, free: 0.9766 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.479e-05/0.921, allocations: 6.344 kB / 1.022 GB, free: 0.9727 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.827e-06/0.921, allocations: 0 / 1.022 GB, free: 0.9727 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001169/0.9211, allocations: 321.4 kB / 1.023 GB, free: 0.6562 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.791e-05/0.9212, allocations: 11.5 kB / 1.023 GB, free: 0.6484 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.673e-05/0.9212, allocations: 41.88 kB / 1.023 GB, free: 0.6055 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.042e-05/0.9213, allocations: 15.69 kB / 1.023 GB, free: 0.5938 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.9213, allocations: 0 / 1.023 GB, free: 0.5938 MB / 0.6355 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001089/0.9214, allocations: 79.95 kB / 1.023 GB, free: 0.5195 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/0.9214, allocations: 8 kB / 1.023 GB, free: 0.5117 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.9214, allocations: 0 / 1.023 GB, free: 0.5117 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.402e-05/0.9214, allocations: 0 / 1.023 GB, free: 0.5117 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.449e-05/0.9215, allocations: 12 kB / 1.023 GB, free: 0.5 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.795e-06/0.9215, allocations: 3.984 kB / 1.023 GB, free: 0.4961 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.274e-05/0.9216, allocations: 19.98 kB / 1.023 GB, free: 488 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.347e-06/0.9216, allocations: 7.953 kB / 1.023 GB, free: 480 kB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition1,booPul1.y,$PRE.booPul1.pulseStart,booPul1.pulseStart,booPul2.y,$PRE.booPul2.pulseStart,booPul2.pulseStart,nand1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * 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 6.572e-05/0.9217, allocations: 106.7 kB / 1.023 GB, free: 372 kB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.16e-05/0.9217, allocations: 7.906 kB / 1.023 GB, free: 364 kB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.701e-05/0.9218, allocations: 11.38 kB / 1.023 GB, free: 356 kB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/0.9218, allocations: 11.94 kB / 1.023 GB, free: 344 kB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.9218, allocations: 0 / 1.023 GB, free: 344 kB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.856e-06/0.9218, allocations: 0 / 1.023 GB, free: 344 kB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001314/0.9219, allocations: 176.5 kB / 1.023 GB, free: 124 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.011e-06/0.9219, allocations: 192 / 1.023 GB, free: 124 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.203e-05/0.922, allocations: 3.938 kB / 1.023 GB, free: 120 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.922, allocations: 3.938 kB / 1.023 GB, free: 116 kB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.205e-06/0.922, allocations: 2.625 kB / 1.023 GB, free: 116 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.474e-06/0.922, allocations: 4 kB / 1.023 GB, free: 112 kB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.922, allocations: 0 / 1.023 GB, free: 112 kB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001466/0.9221, allocations: 106.9 kB / 1.023 GB, free: 15.99 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 3.58e-05/0.9222, allocations: 77.11 kB / 1.023 GB, free: 15.9 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.605e-05/0.9222, allocations: 6.875 kB / 1.023 GB, free: 15.89 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.772e-05/0.9223, allocations: 11.94 kB / 1.023 GB, free: 15.89 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.473e-05/0.9223, allocations: 7.984 kB / 1.023 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.623e-06/0.9224, allocations: 4 kB / 1.023 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 4.863e-05/0.9224, allocations: 97.7 kB / 1.024 GB, free: 15.79 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.31e-07/0.9224, allocations: 0 / 1.024 GB, free: 15.79 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0001771/0.9226, allocations: 8 kB / 1.024 GB, free: 15.78 MB / 0.6511 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 ($whenCondition2,$whenCondition1,booPul1.y,booPul1.pulseStart,booPul2.y,booPul2.pulseStart,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.0001341/0.9227, allocations: 106.5 kB / 1.024 GB, free: 15.67 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001124/0.9229, allocations: 37.94 kB / 1.024 GB, free: 15.64 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.9229, allocations: 0 / 1.024 GB, free: 15.64 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 4.857e-05/0.9229, allocations: 26.88 kB / 1.024 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001808/0.9231, allocations: 20.06 kB / 1.024 GB, free: 15.6 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002335/0.9234, allocations: 92.03 kB / 1.024 GB, free: 15.5 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000239/0.9236, allocations: 0.6926 MB / 1.024 GB, free: 14.78 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 3.086e-05/0.9236, allocations: 7.859 kB / 1.024 GB, free: 14.77 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.723e-05/0.9237, allocations: 11.44 kB / 1.024 GB, free: 14.76 MB / 0.6511 GB Notification: Performance of SimCode: time 3.1e-07/0.9237, allocations: 0 / 1.024 GB, free: 14.76 MB / 0.6511 GB Notification: Performance of Templates: time 0.002644/0.9263, allocations: 0.759 MB / 1.025 GB, free: 14.02 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Nand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Logical_Validation_Nand.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches