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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.76/1.76, allocations: 387.2 MB / 394.5 MB, free: 13.63 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.0009884/0.0009881, allocations: 189.2 kB / 487 MB, free: 5.398 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.127/1.127, allocations: 221.3 MB / 0.7819 GB, free: 1.383 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008579/0.000858, allocations: 88.62 kB / 0.9213 GB, free: 2.633 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.963e-06/6.983e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1846/0.1846, allocations: 142.3 MB / 1.205 GB, free: 26.24 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5132/0.6978, allocations: 148.6 MB / 1.35 GB, free: 15.87 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001923/0.6981, allocations: 68.97 kB / 1.35 GB, free: 15.87 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.007738/0.7058, allocations: 2.628 MB / 1.353 GB, free: 15.72 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 6.242e-06/0.7059, allocations: 0.8438 kB / 1.353 GB, free: 15.72 MB / 0.8073 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.000278/0.7061, allocations: 408.4 kB / 1.353 GB, free: 15.3 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.7062, allocations: 9.312 kB / 1.353 GB, free: 15.3 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.414e-05/0.7062, allocations: 7.922 kB / 1.353 GB, free: 15.3 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.519e-05/0.7063, allocations: 170.5 kB / 1.353 GB, free: 15.09 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.48e-05/0.7063, allocations: 1.531 kB / 1.353 GB, free: 15.09 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.459e-05/0.7064, allocations: 13.42 kB / 1.354 GB, free: 15.09 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.991e-05/0.7064, allocations: 11.25 kB / 1.354 GB, free: 15.09 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.679e-05/0.7065, allocations: 49.86 kB / 1.354 GB, free: 15.05 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.793e-06/0.7065, allocations: 1.188 kB / 1.354 GB, free: 15.05 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.707e-06/0.7065, allocations: 0.7969 kB / 1.354 GB, free: 15.05 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.7066, allocations: 5.125 kB / 1.354 GB, free: 15.05 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003803/0.7069, allocations: 331.4 kB / 1.354 GB, free: 14.82 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 5.566e-05/0.707, allocations: 27.16 kB / 1.354 GB, free: 14.79 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.356e-05/0.707, allocations: 14.61 kB / 1.354 GB, free: 14.79 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 9.328e-06/0.7071, allocations: 0.6562 kB / 1.354 GB, free: 14.79 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.37e-05/0.7071, allocations: 80.61 kB / 1.354 GB, free: 14.73 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=7): time 1.272e-06/0.7071, allocations: 0 / 1.354 GB, free: 14.73 MB / 0.8073 GB Notification: Performance of matching and sorting (n=7): time 0.0001659/0.7073, allocations: 70.39 kB / 1.354 GB, free: 14.69 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.748e-05/0.7073, allocations: 52.97 kB / 1.354 GB, free: 14.63 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.346e-05/0.7074, allocations: 110.6 kB / 1.354 GB, free: 14.53 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 2.568e-05/0.7074, allocations: 29.36 kB / 1.354 GB, free: 14.5 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.607e-05/0.7075, allocations: 93.69 kB / 1.354 GB, free: 14.41 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.164e-05/0.7075, allocations: 11.12 kB / 1.354 GB, free: 14.41 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.849e-05/0.7075, allocations: 7.375 kB / 1.354 GB, free: 14.41 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 3.756e-05/0.7075, allocations: 322.5 kB / 1.355 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001044/0.7077, allocations: 50.25 kB / 1.355 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001205/0.7078, allocations: 86.77 kB / 1.355 GB, free: 14.05 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003066/0.7081, allocations: 73.97 kB / 1.355 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.7081, allocations: 0 / 1.355 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000493/0.7086, allocations: 201.7 kB / 1.355 GB, free: 14 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 9.909e-06/0.7086, allocations: 5.969 kB / 1.355 GB, free: 14 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.7086, allocations: 5.469 kB / 1.355 GB, free: 13.99 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.234e-05/0.7087, allocations: 1.703 kB / 1.355 GB, free: 13.99 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.649e-05/0.7087, allocations: 3.016 kB / 1.355 GB, free: 13.99 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.218e-06/0.7087, allocations: 1.719 kB / 1.355 GB, free: 13.99 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003262/0.709, allocations: 78.25 kB / 1.355 GB, free: 13.98 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.363e-05/0.7091, allocations: 14.8 kB / 1.355 GB, free: 13.98 MB / 0.8073 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 6.122e-05/0.7091, allocations: 121.3 kB / 1.355 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.211e-05/0.7091, allocations: 3.016 kB / 1.355 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.611e-05/0.7092, allocations: 10.97 kB / 1.355 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.7092, allocations: 8.812 kB / 1.355 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.7092, allocations: 0.875 kB / 1.355 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.7092, allocations: 4.641 kB / 1.355 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.641e-05/0.7093, allocations: 151.8 kB / 1.355 GB, free: 13.7 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.7093, allocations: 0 / 1.355 GB, free: 13.7 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.717e-06/0.7093, allocations: 1.812 kB / 1.355 GB, free: 13.7 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.7093, allocations: 1.703 kB / 1.355 GB, free: 13.7 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.825e-06/0.7093, allocations: 1.594 kB / 1.355 GB, free: 13.7 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.7093, allocations: 3.984 kB / 1.355 GB, free: 13.7 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.7093, allocations: 1.406 kB / 1.355 GB, free: 13.7 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.777e-05/0.7094, allocations: 99.31 kB / 1.356 GB, free: 13.62 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.833e-05/0.7095, allocations: 79.61 kB / 1.356 GB, free: 13.53 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.708e-05/0.7095, allocations: 2.078 kB / 1.356 GB, free: 13.53 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.045e-05/0.7095, allocations: 4.656 kB / 1.356 GB, free: 13.53 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.535e-05/0.7095, allocations: 9.828 kB / 1.356 GB, free: 13.53 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.785e-06/0.7096, allocations: 10.8 kB / 1.356 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of sort global known variables: time 2.554e-05/0.7096, allocations: 87.75 kB / 1.356 GB, free: 13.45 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002227/0.7098, allocations: 31.55 kB / 1.356 GB, free: 13.44 MB / 0.8073 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.0001315/0.71, allocations: 115 kB / 1.356 GB, free: 13.34 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0002211/0.7102, allocations: 155.9 kB / 1.356 GB, free: 13.28 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.7102, allocations: 1.219 kB / 1.356 GB, free: 13.28 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 4.003e-05/0.7102, allocations: 27.75 kB / 1.356 GB, free: 13.27 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001732/0.7104, allocations: 9.234 kB / 1.356 GB, free: 13.27 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001945/0.7106, allocations: 95.7 kB / 1.356 GB, free: 13.2 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001744/0.7108, allocations: 0.6994 MB / 1.357 GB, free: 28.49 MB / 0.823 GB Notification: Performance of SimCode: time 2.2e-07/0.7108, allocations: 0 / 1.357 GB, free: 28.49 MB / 0.823 GB Notification: Performance of Templates: time 0.003597/0.7144, allocations: 1.577 MB / 1.358 GB, free: 28.36 MB / 0.823 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