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.Or.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.Or,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|or1.u1|or1.u2|or1.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Or") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Or,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|or1.u1|or1.u2|or1.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Or") [: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.367/1.367, allocations: 249.4 MB / 256.7 MB, free: 0.7031 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001666/0.001666, allocations: 176.2 kB / 316 MB, free: 8.914 MB / 258.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.439/1.439, allocations: 205.1 MB / 0.5667 GB, free: 13.43 MB / 434.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008469/0.0008468, allocations: 101.6 kB / 0.671 GB, free: 51.62 MB / 498.8 MB Notification: Performance of FrontEnd - loaded program: time 1.136e-05/1.14e-05, allocations: 4 kB / 0.7807 GB, free: 9.93 MB / 0.5496 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5645/0.5646, allocations: 106.3 MB / 0.8846 GB, free: 89.07 MB / 0.6434 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1566/0.7212, allocations: 130.6 MB / 1.012 GB, free: 15.05 MB / 0.659 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002126/0.7215, allocations: 74.77 kB / 1.012 GB, free: 14.98 MB / 0.659 GB Notification: Performance of FrontEnd: time 0.002276/0.7238, allocations: 0.5934 MB / 1.013 GB, free: 14.41 MB / 0.659 GB Notification: Performance of Transformations before backend: time 6.372e-06/0.7238, allocations: 0 / 1.013 GB, free: 14.41 MB / 0.659 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.0003891/0.7242, allocations: 362.2 kB / 1.013 GB, free: 14.02 MB / 0.659 GB Notification: Performance of prepare preOptimizeDAE: time 3.387e-05/0.7243, allocations: 8.031 kB / 1.013 GB, free: 14.02 MB / 0.659 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.388e-05/0.7243, allocations: 7.906 kB / 1.013 GB, free: 14.01 MB / 0.659 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001331/0.7244, allocations: 174.9 kB / 1.013 GB, free: 13.8 MB / 0.659 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.482e-05/0.7245, allocations: 7.219 kB / 1.013 GB, free: 13.79 MB / 0.659 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.403e-05/0.7245, allocations: 4 kB / 1.013 GB, free: 13.79 MB / 0.659 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.444e-05/0.7246, allocations: 16 kB / 1.013 GB, free: 13.77 MB / 0.659 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.512e-05/0.7247, allocations: 45.62 kB / 1.013 GB, free: 13.72 MB / 0.659 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.7247, allocations: 0.7031 kB / 1.013 GB, free: 13.72 MB / 0.659 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.976e-06/0.7247, allocations: 0 / 1.013 GB, free: 13.72 MB / 0.659 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-06/0.7247, allocations: 5.562 kB / 1.013 GB, free: 13.72 MB / 0.659 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002935/0.725, allocations: 246.4 kB / 1.014 GB, free: 13.44 MB / 0.659 GB Notification: Performance of preOpt comSubExp (simulation): time 7.739e-05/0.7251, allocations: 44.56 kB / 1.014 GB, free: 13.39 MB / 0.659 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.201e-05/0.7251, allocations: 19.06 kB / 1.014 GB, free: 13.37 MB / 0.659 GB Notification: Performance of preOpt evalFunc (simulation): time 1.148e-05/0.7251, allocations: 0 / 1.014 GB, free: 13.37 MB / 0.659 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.783e-05/0.7252, allocations: 68.66 kB / 1.014 GB, free: 13.29 MB / 0.659 GB Notification: Performance of pre-optimization done (n=7): time 1.143e-06/0.7252, allocations: 0 / 1.014 GB, free: 13.29 MB / 0.659 GB Notification: Performance of matching and sorting (n=7): time 0.0001564/0.7254, allocations: 62.09 kB / 1.014 GB, free: 13.23 MB / 0.659 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.856e-05/0.7254, allocations: 56.03 kB / 1.014 GB, free: 13.16 MB / 0.659 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.753e-05/0.7255, allocations: 103.3 kB / 1.014 GB, free: 13.05 MB / 0.659 GB Notification: Performance of collectPreVariables (initialization): time 2.184e-05/0.7255, allocations: 27.02 kB / 1.014 GB, free: 13.02 MB / 0.659 GB Notification: Performance of collectInitialEqns (initialization): time 3.4e-05/0.7256, allocations: 92.61 kB / 1.014 GB, free: 12.93 MB / 0.659 GB Notification: Performance of collectInitialBindings (initialization): time 1.28e-05/0.7256, allocations: 3.906 kB / 1.014 GB, free: 12.93 MB / 0.659 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.138e-06/0.7256, allocations: 0.7812 kB / 1.014 GB, free: 12.93 MB / 0.659 GB Notification: Performance of setup shared object (initialization): time 9.989e-05/0.7257, allocations: 327.5 kB / 1.014 GB, free: 12.6 MB / 0.659 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.626e-05/0.7257, allocations: 12 kB / 1.014 GB, free: 12.59 MB / 0.659 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.586e-05/0.7258, allocations: 35.77 kB / 1.014 GB, free: 12.54 MB / 0.659 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.495e-05/0.7258, allocations: 12.94 kB / 1.014 GB, free: 12.53 MB / 0.659 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.7258, allocations: 1.422 kB / 1.014 GB, free: 12.53 MB / 0.659 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001017/0.7259, allocations: 77.83 kB / 1.015 GB, free: 12.46 MB / 0.659 GB Notification: Performance of prepare postOptimizeDAE: time 1.02e-05/0.726, allocations: 4 kB / 1.015 GB, free: 12.45 MB / 0.659 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.726, allocations: 4 kB / 1.015 GB, free: 12.45 MB / 0.659 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.137e-05/0.726, allocations: 3.984 kB / 1.015 GB, free: 12.45 MB / 0.659 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.989e-05/0.726, allocations: 9.25 kB / 1.015 GB, free: 12.44 MB / 0.659 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.326e-06/0.726, allocations: 0 / 1.015 GB, free: 12.44 MB / 0.659 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.391e-05/0.7261, allocations: 18.73 kB / 1.015 GB, free: 12.42 MB / 0.659 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.953e-06/0.7262, allocations: 4 kB / 1.015 GB, free: 12.42 MB / 0.659 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,or1.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 6.946e-05/0.7262, allocations: 107.7 kB / 1.015 GB, free: 12.31 MB / 0.659 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.478e-05/0.7263, allocations: 7.906 kB / 1.015 GB, free: 12.3 MB / 0.659 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.935e-05/0.7263, allocations: 8.375 kB / 1.015 GB, free: 12.29 MB / 0.659 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.878e-06/0.7263, allocations: 4 kB / 1.015 GB, free: 12.29 MB / 0.659 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.7263, allocations: 4.422 kB / 1.015 GB, free: 12.29 MB / 0.659 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.7263, allocations: 7.891 kB / 1.015 GB, free: 12.28 MB / 0.659 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00011/0.7264, allocations: 150.2 kB / 1.015 GB, free: 12.1 MB / 0.659 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.7264, allocations: 0 / 1.015 GB, free: 12.1 MB / 0.659 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.367e-06/0.7265, allocations: 4 kB / 1.015 GB, free: 12.09 MB / 0.659 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.694e-06/0.7265, allocations: 0 / 1.015 GB, free: 12.09 MB / 0.659 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.923e-06/0.7265, allocations: 0 / 1.015 GB, free: 12.09 MB / 0.659 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.7265, allocations: 4 kB / 1.015 GB, free: 12.09 MB / 0.659 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.7265, allocations: 0 / 1.015 GB, free: 12.09 MB / 0.659 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001024/0.7266, allocations: 93 kB / 1.015 GB, free: 11.98 MB / 0.659 GB Notification: Performance of postOpt removeConstants (simulation): time 3.394e-05/0.7266, allocations: 81.02 kB / 1.015 GB, free: 11.88 MB / 0.659 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.897e-05/0.7267, allocations: 6.125 kB / 1.015 GB, free: 11.88 MB / 0.659 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.568e-05/0.7268, allocations: 15.98 kB / 1.015 GB, free: 11.86 MB / 0.659 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.94e-05/0.7268, allocations: 11.98 kB / 1.015 GB, free: 11.85 MB / 0.659 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.77e-06/0.7268, allocations: 4 kB / 1.015 GB, free: 11.85 MB / 0.659 GB Notification: Performance of sort global known variables: time 4.034e-05/0.7269, allocations: 87.27 kB / 1.015 GB, free: 11.76 MB / 0.659 GB Notification: Performance of remove unused functions: time 0.0001814/0.7271, allocations: 15.91 kB / 1.015 GB, free: 11.75 MB / 0.659 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,or1.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.0001085/0.7272, allocations: 99.19 kB / 1.015 GB, free: 11.64 MB / 0.659 GB Notification: Performance of simCode: created initialization part: time 9.968e-05/0.7273, allocations: 44 kB / 1.015 GB, free: 11.6 MB / 0.659 GB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.7273, allocations: 0 / 1.015 GB, free: 11.6 MB / 0.659 GB Notification: Performance of simCode: created simulation system equations: time 4.051e-05/0.7273, allocations: 19.94 kB / 1.015 GB, free: 11.58 MB / 0.659 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001816/0.7275, allocations: 19.95 kB / 1.015 GB, free: 11.56 MB / 0.659 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002268/0.7278, allocations: 99.33 kB / 1.015 GB, free: 11.45 MB / 0.659 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002725/0.728, allocations: 0.7022 MB / 1.016 GB, free: 10.72 MB / 0.659 GB Notification: Performance of SimCode: time 2.4e-07/0.728, allocations: 0 / 1.016 GB, free: 10.72 MB / 0.659 GB Notification: Performance of Templates: time 0.002789/0.7308, allocations: 0.8214 MB / 1.017 GB, free: 9.938 MB / 0.659 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Or.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Or.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Or.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Or.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Or.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Or -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Or.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Or_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Logical_Validation_Or.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Or.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches