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.Nor.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.Nor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nor1.u1|nor1.u2|nor1.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Nor") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Nor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nor1.u1|nor1.u2|nor1.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Nor") [: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 7.0.3-maint.7.0.x/package.mo): time 1.346/1.346, allocations: 249.4 MB / 256.7 MB, free: 7.031 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.00123/0.00123, allocations: 185.2 kB / 316 MB, free: 3.574 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.221/1.221, allocations: 205.2 MB / 0.5667 GB, free: 15.65 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.0008675/0.0008675, allocations: 77.84 kB / 0.671 GB, free: 4.793 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.604e-06/7.634e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.171/0.171, allocations: 106.3 MB / 0.8846 GB, free: 12.66 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5934/0.7645, allocations: 131.7 MB / 1.013 GB, free: 6.754 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002121/0.7647, allocations: 71.89 kB / 1.013 GB, free: 6.715 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.002359/0.7671, allocations: 0.6051 MB / 1.014 GB, free: 6.199 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.177e-05/0.7671, allocations: 4 kB / 1.014 GB, free: 6.195 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.0004408/0.7676, allocations: 353.2 kB / 1.014 GB, free: 5.809 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.636e-05/0.7676, allocations: 12.02 kB / 1.014 GB, free: 5.793 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.071e-05/0.7677, allocations: 7.906 kB / 1.014 GB, free: 5.785 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001581/0.7678, allocations: 170.9 kB / 1.014 GB, free: 5.578 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.848e-05/0.7679, allocations: 0 / 1.014 GB, free: 5.578 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.452e-05/0.7679, allocations: 4.75 kB / 1.014 GB, free: 5.574 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.337e-05/0.768, allocations: 19.06 kB / 1.014 GB, free: 5.562 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.338e-05/0.7681, allocations: 45.61 kB / 1.014 GB, free: 5.516 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.7681, allocations: 4 kB / 1.014 GB, free: 5.512 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.528e-06/0.7681, allocations: 7.938 kB / 1.014 GB, free: 5.504 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.7681, allocations: 3.984 kB / 1.014 GB, free: 5.5 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00034/0.7685, allocations: 252.7 kB / 1.015 GB, free: 5.23 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 8.548e-05/0.7686, allocations: 34.27 kB / 1.015 GB, free: 5.195 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.566e-05/0.7686, allocations: 23.61 kB / 1.015 GB, free: 5.176 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.862e-05/0.7686, allocations: 4 kB / 1.015 GB, free: 5.172 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.93e-05/0.7687, allocations: 57.22 kB / 1.015 GB, free: 5.109 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 2.425e-06/0.7687, allocations: 3.938 kB / 1.015 GB, free: 5.105 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.000168/0.7689, allocations: 63.09 kB / 1.015 GB, free: 5.047 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.137e-05/0.769, allocations: 55.41 kB / 1.015 GB, free: 4.98 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.302e-05/0.769, allocations: 104.1 kB / 1.015 GB, free: 4.879 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.973e-05/0.7691, allocations: 25.7 kB / 1.015 GB, free: 4.848 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.923e-05/0.7691, allocations: 95.36 kB / 1.015 GB, free: 4.754 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.058e-05/0.7691, allocations: 15.95 kB / 1.015 GB, free: 4.738 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.519e-06/0.7692, allocations: 0 / 1.015 GB, free: 4.738 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001844/0.7693, allocations: 317.8 kB / 1.015 GB, free: 4.422 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.228e-05/0.7694, allocations: 15.12 kB / 1.015 GB, free: 4.414 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.61e-05/0.7694, allocations: 26.52 kB / 1.016 GB, free: 4.383 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.133e-05/0.7695, allocations: 19.86 kB / 1.016 GB, free: 4.367 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.7695, allocations: 4 kB / 1.016 GB, free: 4.363 MB / 0.6355 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001047/0.7696, allocations: 65.16 kB / 1.016 GB, free: 4.301 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.061e-05/0.7696, allocations: 8 kB / 1.016 GB, free: 4.293 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.7696, allocations: 0 / 1.016 GB, free: 4.293 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.7696, allocations: 0 / 1.016 GB, free: 4.293 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.751e-05/0.7697, allocations: 7.938 kB / 1.016 GB, free: 4.285 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.659e-06/0.7697, allocations: 0 / 1.016 GB, free: 4.285 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.641e-05/0.7698, allocations: 21.17 kB / 1.016 GB, free: 4.266 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.967e-06/0.7698, allocations: 4 kB / 1.016 GB, free: 4.262 MB / 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,nor1.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 7.082e-05/0.7699, allocations: 112.7 kB / 1.016 GB, free: 4.148 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.302e-05/0.7699, allocations: 3.906 kB / 1.016 GB, free: 4.145 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.239e-05/0.77, allocations: 15.55 kB / 1.016 GB, free: 4.129 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.77, allocations: 0 / 1.016 GB, free: 4.129 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.77, allocations: 3.938 kB / 1.016 GB, free: 4.125 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.77, allocations: 7.906 kB / 1.016 GB, free: 4.117 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001202/0.7701, allocations: 144.3 kB / 1.016 GB, free: 3.945 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.7701, allocations: 0 / 1.016 GB, free: 3.945 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.496e-05/0.7702, allocations: 13.3 kB / 1.016 GB, free: 3.934 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.542e-06/0.7702, allocations: 0 / 1.016 GB, free: 3.934 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.108e-05/0.7702, allocations: 0 / 1.016 GB, free: 3.934 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.81e-07/0.7702, allocations: 0 / 1.016 GB, free: 3.934 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.7702, allocations: 0 / 1.016 GB, free: 3.934 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000113/0.7703, allocations: 91.64 kB / 1.016 GB, free: 3.836 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.571e-05/0.7704, allocations: 89.02 kB / 1.016 GB, free: 3.73 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.896e-05/0.7704, allocations: 3.938 kB / 1.016 GB, free: 3.727 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.542e-05/0.7705, allocations: 11.98 kB / 1.016 GB, free: 3.715 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.694e-05/0.7706, allocations: 15.78 kB / 1.016 GB, free: 3.703 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.581e-06/0.7706, allocations: 4.875 kB / 1.016 GB, free: 3.699 MB / 0.6355 GB Notification: Performance of sort global known variables: time 8.345e-05/0.7707, allocations: 95.44 kB / 1.016 GB, free: 3.609 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0001846/0.7708, allocations: 11.91 kB / 1.016 GB, free: 3.598 MB / 0.6355 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,nor1.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.0001229/0.771, allocations: 95.25 kB / 1.016 GB, free: 3.496 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001034/0.7711, allocations: 41.81 kB / 1.016 GB, free: 3.465 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.192e-06/0.7711, allocations: 0 / 1.016 GB, free: 3.465 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 5.226e-05/0.7712, allocations: 29.86 kB / 1.016 GB, free: 3.441 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001996/0.7714, allocations: 8.125 kB / 1.016 GB, free: 3.434 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000283/0.7716, allocations: 97.88 kB / 1.016 GB, free: 3.324 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002548/0.7719, allocations: 0.6958 MB / 1.017 GB, free: 2.602 MB / 0.6355 GB Notification: Performance of SimCode: time 2.41e-07/0.7719, allocations: 0 / 1.017 GB, free: 2.602 MB / 0.6355 GB Notification: Performance of Templates: time 0.002848/0.7748, allocations: 0.8326 MB / 1.018 GB, free: 1.781 MB / 0.6355 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Nor.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Nor.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Nor.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Nor.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Nor.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Nor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Nor.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Nor_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Logical_Validation_Nor.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches