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.Or3.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.Or3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|or1.u1|or1.u2|or1.u3|or1.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Or3") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Or3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|or1.u1|or1.u2|or1.u3|or1.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Or3") [: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.4/1.4, allocations: 249.4 MB / 256.7 MB, free: 7.027 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.001156/0.001156, allocations: 189.2 kB / 316 MB, free: 3.512 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.485/1.485, allocations: 205.2 MB / 0.5667 GB, free: 15.58 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.0009145/0.0009146, allocations: 86.34 kB / 0.671 GB, free: 4.711 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 9.037e-06/9.067e-06, allocations: 4 kB / 0.7807 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2083/0.2083, allocations: 106.3 MB / 0.8846 GB, free: 12.58 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6014/0.8098, allocations: 131.7 MB / 1.013 GB, free: 7.152 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000259/0.8101, allocations: 74.7 kB / 1.013 GB, free: 7.113 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.003134/0.8132, allocations: 0.8713 MB / 1.014 GB, free: 6.359 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.664e-06/0.8133, allocations: 0 / 1.014 GB, free: 6.359 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.000531/0.8138, allocations: 392.8 kB / 1.014 GB, free: 5.938 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.8139, allocations: 12.03 kB / 1.014 GB, free: 5.926 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.121e-05/0.8139, allocations: 11.81 kB / 1.015 GB, free: 5.914 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001702/0.8141, allocations: 170.8 kB / 1.015 GB, free: 5.711 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.696e-05/0.8141, allocations: 4 kB / 1.015 GB, free: 5.707 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.784e-05/0.8141, allocations: 0 / 1.015 GB, free: 5.707 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.995e-05/0.8142, allocations: 39.08 kB / 1.015 GB, free: 5.68 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001049/0.8144, allocations: 56.06 kB / 1.015 GB, free: 5.625 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.357e-06/0.8144, allocations: 0 / 1.015 GB, free: 5.625 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.199e-05/0.8144, allocations: 0 / 1.015 GB, free: 5.625 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.694e-06/0.8144, allocations: 4 kB / 1.015 GB, free: 5.621 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003611/0.8148, allocations: 272 kB / 1.015 GB, free: 5.34 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 8.222e-05/0.8149, allocations: 52.03 kB / 1.015 GB, free: 5.289 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.131e-05/0.8149, allocations: 24.11 kB / 1.015 GB, free: 5.27 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 8.686e-06/0.8149, allocations: 2.734 kB / 1.015 GB, free: 5.27 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.273e-05/0.815, allocations: 64.97 kB / 1.015 GB, free: 5.203 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=10): time 1.273e-06/0.815, allocations: 0 / 1.015 GB, free: 5.203 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10): time 0.0001827/0.8152, allocations: 84.14 kB / 1.015 GB, free: 5.125 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.616e-05/0.8153, allocations: 51.41 kB / 1.015 GB, free: 5.062 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.756e-05/0.8154, allocations: 122.7 kB / 1.015 GB, free: 4.945 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.707e-05/0.8154, allocations: 25.7 kB / 1.015 GB, free: 4.914 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.81e-05/0.8154, allocations: 87.58 kB / 1.016 GB, free: 4.828 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.198e-05/0.8155, allocations: 19.09 kB / 1.016 GB, free: 4.812 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.839e-06/0.8155, allocations: 0 / 1.016 GB, free: 4.812 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001245/0.8156, allocations: 318 kB / 1.016 GB, free: 4.496 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.465e-05/0.8156, allocations: 19.59 kB / 1.016 GB, free: 4.484 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.167e-05/0.8157, allocations: 53.91 kB / 1.016 GB, free: 4.426 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.048e-05/0.8157, allocations: 15.5 kB / 1.016 GB, free: 4.414 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.8157, allocations: 4 kB / 1.016 GB, free: 4.41 MB / 0.6355 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001286/0.8159, allocations: 86.97 kB / 1.016 GB, free: 4.332 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/0.8159, allocations: 10.33 kB / 1.016 GB, free: 4.324 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.429e-06/0.8159, allocations: 0 / 1.016 GB, free: 4.324 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.8159, allocations: 4 kB / 1.016 GB, free: 4.32 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.009e-05/0.816, allocations: 12.03 kB / 1.016 GB, free: 4.309 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.025e-05/0.816, allocations: 4 kB / 1.016 GB, free: 4.305 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001303/0.8162, allocations: 23.89 kB / 1.016 GB, free: 4.281 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.166e-05/0.8162, allocations: 11.92 kB / 1.016 GB, free: 4.27 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition3,$whenCondition2,$whenCondition1,booPul1.y,$PRE.booPul1.pulseStart,booPul1.pulseStart,booPul2.y,$PRE.booPul2.pulseStart,booPul2.pulseStart,or1.y,booPul3.y,$PRE.booPul3.pulseStart,booPul3.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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 8.243e-05/0.8163, allocations: 112.4 kB / 1.016 GB, free: 4.156 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.606e-05/0.8163, allocations: 7.906 kB / 1.016 GB, free: 4.148 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.223e-05/0.8163, allocations: 11.88 kB / 1.016 GB, free: 4.137 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.8163, allocations: 0 / 1.016 GB, free: 4.137 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.8163, allocations: 0 / 1.016 GB, free: 4.137 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.8164, allocations: 0 / 1.016 GB, free: 4.137 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000147/0.8165, allocations: 172.9 kB / 1.016 GB, free: 3.941 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.8165, allocations: 0 / 1.016 GB, free: 3.941 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.173e-05/0.8165, allocations: 3.938 kB / 1.016 GB, free: 3.938 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.8165, allocations: 4 kB / 1.016 GB, free: 3.934 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.21e-05/0.8166, allocations: 4 kB / 1.016 GB, free: 3.93 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.183e-06/0.8166, allocations: 0 / 1.016 GB, free: 3.93 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.8166, allocations: 0 / 1.016 GB, free: 3.93 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001362/0.8167, allocations: 114.8 kB / 1.016 GB, free: 3.812 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.113e-05/0.8168, allocations: 81.02 kB / 1.017 GB, free: 3.715 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.037e-05/0.8168, allocations: 4 kB / 1.017 GB, free: 3.711 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001206/0.8169, allocations: 28.84 kB / 1.017 GB, free: 3.684 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.417e-05/0.817, allocations: 11.36 kB / 1.017 GB, free: 3.676 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.111e-05/0.817, allocations: 7.984 kB / 1.017 GB, free: 3.668 MB / 0.6355 GB Notification: Performance of sort global known variables: time 5.14e-05/0.8171, allocations: 90.64 kB / 1.017 GB, free: 3.586 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0001913/0.8173, allocations: 20 kB / 1.017 GB, free: 3.566 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: 10 ($whenCondition3,$whenCondition2,$whenCondition1,booPul1.y,booPul1.pulseStart,booPul2.y,booPul2.pulseStart,or1.y,booPul3.y,booPul3.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001193/0.8174, allocations: 98.5 kB / 1.017 GB, free: 3.465 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001317/0.8175, allocations: 62.61 kB / 1.017 GB, free: 3.418 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.8175, allocations: 0 / 1.017 GB, free: 3.418 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 6.153e-05/0.8176, allocations: 31.44 kB / 1.017 GB, free: 3.395 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002303/0.8178, allocations: 21.91 kB / 1.017 GB, free: 3.379 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003097/0.8181, allocations: 113.7 kB / 1.017 GB, free: 3.254 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003501/0.8185, allocations: 0.7075 MB / 1.018 GB, free: 2.52 MB / 0.6355 GB Notification: Performance of SimCode: time 2.274e-06/0.8185, allocations: 0 / 1.018 GB, free: 2.52 MB / 0.6355 GB Notification: Performance of Templates: time 0.003261/0.8218, allocations: 1.156 MB / 1.019 GB, free: 1.383 MB / 0.6355 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Or3.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Or3.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Or3.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Or3.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Or3.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Or3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Or3.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Or3_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Logical_Validation_Or3.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Or3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches