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.OnOffController.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.OnOffController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|onOffController.reference|onOffController.u|onOffController.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|onOffController.reference|onOffController.u|onOffController.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController") [: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.371/1.371, allocations: 249.4 MB / 256.7 MB, free: 7.059 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.001247/0.001247, allocations: 189.2 kB / 316 MB, free: 3.516 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.383/1.383, allocations: 205.1 MB / 0.5667 GB, free: 15.6 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.0008411/0.0008411, allocations: 93.64 kB / 0.671 GB, free: 4.727 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.404e-06/7.434e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1729/0.173, allocations: 106.3 MB / 0.8846 GB, free: 12.61 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.484/0.657, allocations: 131.9 MB / 1.013 GB, free: 6.93 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002325/0.6573, allocations: 66.91 kB / 1.013 GB, free: 6.895 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.002705/0.66, allocations: 0.6765 MB / 1.014 GB, free: 6.309 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.404e-06/0.6601, allocations: 0 / 1.014 GB, free: 6.309 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.0005353/0.6606, allocations: 376.1 kB / 1.014 GB, free: 5.902 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.345e-05/0.6607, allocations: 12.03 kB / 1.014 GB, free: 5.891 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.461e-05/0.6607, allocations: 3.906 kB / 1.014 GB, free: 5.887 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001165/0.6608, allocations: 167 kB / 1.015 GB, free: 5.684 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.305e-05/0.6608, allocations: 0 / 1.015 GB, free: 5.684 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.466e-05/0.6609, allocations: 4 kB / 1.015 GB, free: 5.68 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.579e-05/0.661, allocations: 27.45 kB / 1.015 GB, free: 5.66 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.279e-05/0.6611, allocations: 44.62 kB / 1.015 GB, free: 5.617 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.998e-06/0.6611, allocations: 0 / 1.015 GB, free: 5.617 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.146e-05/0.6611, allocations: 7.938 kB / 1.015 GB, free: 5.609 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.6611, allocations: 0 / 1.015 GB, free: 5.609 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000477/0.6616, allocations: 281.8 kB / 1.015 GB, free: 5.309 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001635/0.6618, allocations: 33.27 kB / 1.015 GB, free: 5.273 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.177e-05/0.6618, allocations: 16.8 kB / 1.015 GB, free: 5.258 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.567e-05/0.6619, allocations: 3.984 kB / 1.015 GB, free: 5.254 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.096e-05/0.6619, allocations: 34.5 kB / 1.015 GB, free: 5.211 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 1.313e-06/0.6619, allocations: 4 kB / 1.015 GB, free: 5.207 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.0001612/0.6621, allocations: 49.31 kB / 1.015 GB, free: 5.156 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.265e-05/0.6621, allocations: 51.41 kB / 1.015 GB, free: 5.094 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.074e-05/0.6622, allocations: 103 kB / 1.015 GB, free: 4.992 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.635e-05/0.6622, allocations: 25.7 kB / 1.015 GB, free: 4.961 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.434e-05/0.6623, allocations: 83.39 kB / 1.015 GB, free: 4.879 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.905e-05/0.6623, allocations: 11.81 kB / 1.015 GB, free: 4.867 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.047e-06/0.6623, allocations: 0 / 1.015 GB, free: 4.867 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001153/0.6624, allocations: 318.3 kB / 1.016 GB, free: 4.551 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.303e-05/0.6624, allocations: 10.38 kB / 1.016 GB, free: 4.543 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.905e-05/0.6625, allocations: 15.12 kB / 1.016 GB, free: 4.535 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.965e-05/0.6625, allocations: 4 kB / 1.016 GB, free: 4.531 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.6625, allocations: 0 / 1.016 GB, free: 4.531 MB / 0.6355 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.24e-05/0.6626, allocations: 52.81 kB / 1.016 GB, free: 4.48 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.2e-05/0.6626, allocations: 8 kB / 1.016 GB, free: 4.473 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.129e-06/0.6626, allocations: 3.906 kB / 1.016 GB, free: 4.469 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.195e-05/0.6626, allocations: 0 / 1.016 GB, free: 4.469 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.938e-05/0.6627, allocations: 15.98 kB / 1.016 GB, free: 4.453 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/0.6627, allocations: 0.875 kB / 1.016 GB, free: 4.453 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001196/0.6629, allocations: 19.98 kB / 1.016 GB, free: 4.434 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.482e-06/0.6629, allocations: 4 kB / 1.016 GB, free: 4.43 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($PRE.onOffController.y,onOffController.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.576e-05/0.663, allocations: 108.9 kB / 1.016 GB, free: 4.316 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.624e-05/0.663, allocations: 3.906 kB / 1.016 GB, free: 4.312 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001151/0.6631, allocations: 60.36 kB / 1.016 GB, free: 4.25 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.983e-06/0.6631, allocations: 0 / 1.016 GB, free: 4.25 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.6631, allocations: 4 kB / 1.016 GB, free: 4.246 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.6631, allocations: 0 / 1.016 GB, free: 4.246 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001464/0.6633, allocations: 157.1 kB / 1.016 GB, free: 4.062 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.6633, allocations: 0 / 1.016 GB, free: 4.062 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.594e-05/0.6634, allocations: 19.98 kB / 1.016 GB, free: 4.043 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.6634, allocations: 0 / 1.016 GB, free: 4.043 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.645e-06/0.6634, allocations: 0 / 1.016 GB, free: 4.043 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.6634, allocations: 0 / 1.016 GB, free: 4.043 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.6634, allocations: 0 / 1.016 GB, free: 4.043 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000108/0.6635, allocations: 146.2 kB / 1.016 GB, free: 3.891 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 3.403e-05/0.6636, allocations: 81.11 kB / 1.016 GB, free: 3.793 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.647e-05/0.6636, allocations: 0 / 1.016 GB, free: 3.793 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001524/0.6637, allocations: 23.97 kB / 1.016 GB, free: 3.77 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.334e-05/0.6638, allocations: 15.02 kB / 1.016 GB, free: 3.758 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.561e-06/0.6638, allocations: 4 kB / 1.016 GB, free: 3.754 MB / 0.6355 GB Notification: Performance of sort global known variables: time 3.279e-05/0.6638, allocations: 83.16 kB / 1.017 GB, free: 3.676 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002022/0.6641, allocations: 4 kB / 1.017 GB, free: 3.672 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: 1 (onOffController.y) * Number of discrete states: 1 (onOffController.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0001225/0.6642, allocations: 111.4 kB / 1.017 GB, free: 3.555 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 8.329e-05/0.6643, allocations: 19.25 kB / 1.017 GB, free: 3.543 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.512e-06/0.6643, allocations: 0 / 1.017 GB, free: 3.543 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 3.022e-05/0.6643, allocations: 11.31 kB / 1.017 GB, free: 3.535 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001802/0.6645, allocations: 8 kB / 1.017 GB, free: 3.527 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002215/0.6647, allocations: 79.38 kB / 1.017 GB, free: 3.43 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002552/0.665, allocations: 0.6909 MB / 1.017 GB, free: 2.719 MB / 0.6355 GB Notification: Performance of SimCode: time 2.61e-07/0.665, allocations: 0 / 1.017 GB, free: 2.719 MB / 0.6355 GB Notification: Performance of Templates: time 0.002442/0.6674, allocations: 0.6413 MB / 1.018 GB, free: 2.09 MB / 0.6355 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Logical_Validation_OnOffController.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches