Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.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.Latch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falCleTruIni.u|falCleTruIni.clr|falCleTruIni.y|falCleFalIni.u|falCleFalIni.clr|falCleFalIni.y|truCleTruIni.u|truCleTruIni.clr|truCleTruIni.y|truCleFalIni.u|truCleFalIni.clr|truCleFalIni.y|swiCleInp.u|swiCleInp.clr|swiCleInp.y|swiCleInp1.u|swiCleInp1.clr|swiCleInp1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falCleTruIni.u|falCleTruIni.clr|falCleTruIni.y|falCleFalIni.u|falCleFalIni.clr|falCleFalIni.y|truCleTruIni.u|truCleTruIni.clr|truCleTruIni.y|truCleFalIni.u|truCleFalIni.clr|truCleFalIni.y|swiCleInp.u|swiCleInp.clr|swiCleInp.y|swiCleInp1.u|swiCleInp1.clr|swiCleInp1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch") [: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.798/1.798, 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.001025/0.001025, allocations: 184.6 kB / 487 MB, free: 5.387 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.112/1.112, allocations: 221.3 MB / 0.7819 GB, free: 1.391 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.000841/0.000841, allocations: 87.23 kB / 0.9213 GB, free: 2.633 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 8.075e-06/8.105e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1771/0.1772, allocations: 142.3 MB / 1.205 GB, free: 26.24 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4932/0.6704, allocations: 149 MB / 1.351 GB, free: 16.12 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001814/0.6706, allocations: 68.27 kB / 1.351 GB, free: 16.12 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.01049/0.6811, allocations: 3.647 MB / 1.354 GB, free: 15.95 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 9.157e-06/0.6811, allocations: 2.688 kB / 1.354 GB, free: 15.95 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0004616/0.6816, allocations: 487.4 kB / 1.355 GB, free: 15.51 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.413e-05/0.6817, allocations: 9.656 kB / 1.355 GB, free: 15.51 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.778e-05/0.6817, allocations: 23.8 kB / 1.355 GB, free: 15.5 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.665e-05/0.6818, allocations: 171.8 kB / 1.355 GB, free: 15.3 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.177e-05/0.6819, allocations: 13.34 kB / 1.355 GB, free: 15.3 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.046e-05/0.6819, allocations: 34.77 kB / 1.355 GB, free: 15.29 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001759/0.6821, allocations: 86.2 kB / 1.355 GB, free: 15.29 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002879/0.6824, allocations: 194.7 kB / 1.355 GB, free: 15.25 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.6824, allocations: 0 / 1.355 GB, free: 15.25 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.205e-05/0.6825, allocations: 18.73 kB / 1.355 GB, free: 15.24 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.79e-06/0.6825, allocations: 1.812 kB / 1.355 GB, free: 15.24 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000649/0.6831, allocations: 0.4966 MB / 1.356 GB, free: 15 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003444/0.6835, allocations: 268.3 kB / 1.356 GB, free: 14.97 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001699/0.6837, allocations: 132.2 kB / 1.356 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.218e-05/0.6837, allocations: 2.188 kB / 1.356 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003885/0.6841, allocations: 304.3 kB / 1.357 GB, free: 14.89 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=48): time 1.723e-06/0.6841, allocations: 0 / 1.357 GB, free: 14.89 MB / 0.8073 GB Notification: Performance of matching and sorting (n=48): time 0.0005787/0.6847, allocations: 348.6 kB / 1.357 GB, free: 14.84 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.774e-05/0.6847, allocations: 61.81 kB / 1.357 GB, free: 14.78 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.475e-05/0.6848, allocations: 122.8 kB / 1.357 GB, free: 14.68 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 6.49e-05/0.6849, allocations: 46.47 kB / 1.357 GB, free: 14.65 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 4.49e-05/0.6849, allocations: 104.4 kB / 1.357 GB, free: 14.56 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 8.355e-05/0.685, allocations: 105.3 kB / 1.357 GB, free: 14.51 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.44e-05/0.685, allocations: 2.875 kB / 1.357 GB, free: 14.51 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 5.294e-05/0.6851, allocations: 337.1 kB / 1.358 GB, free: 14.2 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002595/0.6854, allocations: 153 kB / 1.358 GB, free: 14.2 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002956/0.6857, allocations: 244.3 kB / 1.358 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004179/0.6861, allocations: 147.7 kB / 1.358 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.6861, allocations: 0.875 kB / 1.358 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0008532/0.687, allocations: 459.8 kB / 1.359 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.243e-05/0.687, allocations: 4.75 kB / 1.359 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.687, allocations: 7 kB / 1.359 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.812e-05/0.687, allocations: 6.094 kB / 1.359 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.614e-05/0.6871, allocations: 22.72 kB / 1.359 GB, free: 14.01 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.396e-06/0.6871, allocations: 13.38 kB / 1.359 GB, free: 14 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003901/0.6875, allocations: 79.41 kB / 1.359 GB, free: 14 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.417e-05/0.6876, allocations: 25.72 kB / 1.359 GB, free: 14 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 68 ($PRE.falCleTruIni.y,$PRE.truCleTruIni.y,$PRE.falCleFalIni.y,$PRE.truCleFalIni.y,$PRE.swiCleInp.y,$PRE.swiCleInp1.y,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,$whenCondition25,$whenCondition26,$whenCondition27,$whenCondition28,$whenCondition21,$whenCondition22,$whenCondition23,$whenCondition24,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$PRE.falCleTruIni.u,falCleTruIni.u,$PRE.falCleTruIni.clr,falCleTruIni.clr,falCleTruIni.y,$PRE.truCleTruIni.u,truCleTruIni.u,$PRE.truCleTruIni.clr,truCleTruIni.clr,truCleTruIni.y,$PRE.falCleFalIni.u,falCleFalIni.u,$PRE.falCleFalIni.clr,falCleFalIni.clr,falCleFalIni.y,$PRE.truCleFalIni.u,truCleFalIni.u,$PRE.truCleFalIni.clr,truCleFalIni.clr,truCleFalIni.y,$PRE.swiCleInp.u,swiCleInp.u,$PRE.swiCleInp.clr,swiCleInp.clr,swiCleInp.y,$PRE.swiCleInp1.u,swiCleInp1.u,$PRE.swiCleInp1.clr,swiCleInp1.clr,swiCleInp1.y,$PRE.cleInp.y,cleInp.y,$PRE.latInp.y,latInp.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 66 * 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.0001154/0.6877, allocations: 154.3 kB / 1.359 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.336e-05/0.6877, allocations: 28.52 kB / 1.359 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.235e-05/0.6878, allocations: 31.39 kB / 1.359 GB, free: 13.85 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/0.6878, allocations: 5.094 kB / 1.359 GB, free: 13.85 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-06/0.6878, allocations: 5.031 kB / 1.359 GB, free: 13.85 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.6878, allocations: 1.5 kB / 1.359 GB, free: 13.85 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007434/0.6886, allocations: 0.7247 MB / 1.36 GB, free: 13.56 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.6886, allocations: 0 / 1.36 GB, free: 13.56 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.079e-05/0.6886, allocations: 12.78 kB / 1.36 GB, free: 13.56 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.297e-06/0.6886, allocations: 2.094 kB / 1.36 GB, free: 13.56 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.529e-05/0.6887, allocations: 16.22 kB / 1.36 GB, free: 13.56 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.6887, allocations: 5.984 kB / 1.36 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.6887, allocations: 0 / 1.36 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000513/0.6892, allocations: 465.2 kB / 1.36 GB, free: 13.4 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.616e-05/0.6893, allocations: 93.7 kB / 1.36 GB, free: 13.29 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.628e-05/0.6893, allocations: 19.28 kB / 1.36 GB, free: 13.29 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.721e-05/0.6894, allocations: 6.031 kB / 1.36 GB, free: 13.29 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001559/0.6896, allocations: 77.72 kB / 1.36 GB, free: 13.29 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.803e-05/0.6896, allocations: 31.69 kB / 1.36 GB, free: 13.29 MB / 0.8073 GB Notification: Performance of sort global known variables: time 3.182e-05/0.6897, allocations: 88.88 kB / 1.36 GB, free: 13.22 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0003664/0.6901, allocations: 81.3 kB / 1.361 GB, free: 13.22 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: 48 ($whenCondition25,$whenCondition26,$whenCondition27,$whenCondition28,$whenCondition21,$whenCondition22,$whenCondition23,$whenCondition24,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,falCleTruIni.u,falCleTruIni.clr,falCleTruIni.y,truCleTruIni.u,truCleTruIni.clr,truCleTruIni.y,falCleFalIni.u,falCleFalIni.clr,falCleFalIni.y,truCleFalIni.u,truCleFalIni.clr,truCleFalIni.y,swiCleInp.u,swiCleInp.clr,swiCleInp.y,swiCleInp1.u,swiCleInp1.clr,swiCleInp1.y,cleInp.y,latInp.y) * Number of discrete states: 18 (truCleFalIni.u,truCleFalIni.clr,truCleFalIni.y,falCleTruIni.u,falCleTruIni.clr,falCleTruIni.y,truCleTruIni.u,truCleTruIni.clr,truCleTruIni.y,swiCleInp1.u,swiCleInp1.clr,swiCleInp1.y,swiCleInp.u,swiCleInp.clr,swiCleInp.y,falCleFalIni.u,falCleFalIni.clr,falCleFalIni.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.0001958/0.6903, allocations: 153.6 kB / 1.361 GB, free: 13.11 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0006528/0.6909, allocations: 469.5 kB / 1.361 GB, free: 13.03 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.6909, allocations: 0 / 1.361 GB, free: 13.03 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0003699/0.6913, allocations: 294.6 kB / 1.361 GB, free: 13.02 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002585/0.6916, allocations: 23.17 kB / 1.361 GB, free: 13.01 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007092/0.6923, allocations: 364.5 kB / 1.362 GB, free: 12.82 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000349/0.6926, allocations: 0.7854 MB / 1.363 GB, free: 28.04 MB / 0.823 GB Notification: Performance of SimCode: time 2.2e-07/0.6927, allocations: 0 / 1.363 GB, free: 28.04 MB / 0.823 GB Notification: Performance of Templates: time 0.007067/0.6997, allocations: 4.618 MB / 1.367 GB, free: 24.69 MB / 0.823 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_Latch.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches