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") [: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 10.0.0-master/package.mo): time 1.714/1.714, allocations: 390.4 MB / 397.7 MB, free: 11.21 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.0008941/0.0008941, allocations: 190.4 kB / 490.8 MB, free: 1.871 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.051/1.051, allocations: 221.4 MB / 0.7863 GB, free: 13.66 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.0007982/0.0007982, allocations: 80.73 kB / 0.9264 GB, free: 14.2 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 6.081e-06/6.111e-06, allocations: 4 kB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1653/0.1654, allocations: 143 MB / 1.212 GB, free: 40.04 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4451/0.6105, allocations: 149.3 MB / 1.357 GB, free: 17.41 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000166/0.6107, allocations: 67.5 kB / 1.357 GB, free: 17.41 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.007229/0.618, allocations: 2.63 MB / 1.36 GB, free: 17.25 MB / 0.823 GB Notification: Performance of Transformations before backend: time 5.08e-06/0.618, allocations: 0 / 1.36 GB, free: 17.25 MB / 0.823 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.0002795/0.6183, allocations: 408.5 kB / 1.36 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.527e-05/0.6183, allocations: 8.719 kB / 1.36 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.005e-05/0.6184, allocations: 14.91 kB / 1.36 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.681e-05/0.6184, allocations: 167.2 kB / 1.361 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.303e-05/0.6185, allocations: 1.953 kB / 1.361 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.148e-05/0.6185, allocations: 8.656 kB / 1.361 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.327e-05/0.6186, allocations: 19.36 kB / 1.361 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.847e-05/0.6186, allocations: 42.88 kB / 1.361 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.111e-06/0.6186, allocations: 0 / 1.361 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.156e-06/0.6186, allocations: 4 kB / 1.361 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.727e-06/0.6187, allocations: 2.188 kB / 1.361 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003786/0.619, allocations: 335.2 kB / 1.361 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 4.813e-05/0.6191, allocations: 27.98 kB / 1.361 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.181e-05/0.6191, allocations: 13.61 kB / 1.361 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 5.911e-06/0.6191, allocations: 1.516 kB / 1.361 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.915e-05/0.6192, allocations: 72.78 kB / 1.361 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.142e-06/0.6192, allocations: 1.125 kB / 1.361 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0001498/0.6194, allocations: 70.75 kB / 1.361 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.527e-05/0.6194, allocations: 53.38 kB / 1.361 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.13e-05/0.6194, allocations: 108.2 kB / 1.361 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.449e-05/0.6195, allocations: 34.88 kB / 1.361 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.236e-05/0.6195, allocations: 88.89 kB / 1.361 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.27e-05/0.6195, allocations: 20.23 kB / 1.361 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.757e-05/0.6196, allocations: 3.438 kB / 1.362 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 7.21e-05/0.6196, allocations: 317.9 kB / 1.362 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.985e-05/0.6197, allocations: 49.83 kB / 1.362 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001053/0.6199, allocations: 86.81 kB / 1.362 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002782/0.6201, allocations: 77.02 kB / 1.362 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.6202, allocations: 1 kB / 1.362 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004425/0.6206, allocations: 196.5 kB / 1.362 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 9.397e-06/0.6206, allocations: 9.906 kB / 1.362 GB, free: 31.53 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.6206, allocations: 0.75 kB / 1.362 GB, free: 31.53 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.153e-05/0.6206, allocations: 6.688 kB / 1.362 GB, free: 31.53 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.471e-05/0.6207, allocations: 6.672 kB / 1.362 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.068e-06/0.6207, allocations: 1.766 kB / 1.362 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003099/0.621, allocations: 78.58 kB / 1.362 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.011e-05/0.621, allocations: 14.16 kB / 1.362 GB, free: 31.52 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 6.691e-05/0.6211, allocations: 111.9 kB / 1.362 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.122e-05/0.6211, allocations: 6.672 kB / 1.362 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.363e-05/0.6211, allocations: 14.52 kB / 1.362 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.684e-06/0.6211, allocations: 1.031 kB / 1.362 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.6212, allocations: 4.703 kB / 1.362 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.6212, allocations: 1.281 kB / 1.362 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.715e-05/0.6212, allocations: 147.5 kB / 1.363 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.6212, allocations: 0 / 1.363 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.075e-06/0.6212, allocations: 1.797 kB / 1.363 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.6213, allocations: 1.906 kB / 1.363 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.534e-06/0.6213, allocations: 2.875 kB / 1.363 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.41e-07/0.6213, allocations: 0 / 1.363 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.6213, allocations: 0.5156 kB / 1.363 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 8.527e-05/0.6214, allocations: 99.78 kB / 1.363 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.577e-05/0.6214, allocations: 87.66 kB / 1.363 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.494e-05/0.6214, allocations: 1.75 kB / 1.363 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.092e-05/0.6214, allocations: 2.547 kB / 1.363 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.068e-05/0.6215, allocations: 13.2 kB / 1.363 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.923e-06/0.6215, allocations: 7.328 kB / 1.363 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of sort global known variables: time 3.391e-05/0.6215, allocations: 91 kB / 1.363 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000208/0.6217, allocations: 35.52 kB / 1.363 GB, free: 30.97 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.0001046/0.6218, allocations: 106.3 kB / 1.363 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002056/0.6221, allocations: 154.5 kB / 1.363 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.343e-06/0.6221, allocations: 0.8125 kB / 1.363 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 3.603e-05/0.6221, allocations: 23.45 kB / 1.363 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001571/0.6223, allocations: 17.16 kB / 1.363 GB, free: 30.8 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001875/0.6225, allocations: 98.03 kB / 1.363 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000214/0.6227, allocations: 0.7014 MB / 1.364 GB, free: 30.02 MB / 0.8386 GB Notification: Performance of SimCode: time 2.3e-07/0.6227, allocations: 0 / 1.364 GB, free: 30.02 MB / 0.8386 GB Notification: Performance of Templates: time 0.003119/0.6258, allocations: 1.577 MB / 1.366 GB, free: 29.89 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