Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Gain.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.Continuous.Validation.Gain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gain1.u|gain1.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Gain") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Gain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gain1.u|gain1.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Gain") [: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.38/1.38, allocations: 249.4 MB / 256.7 MB, free: 7.012 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.001273/0.001273, allocations: 181.2 kB / 316 MB, free: 3.555 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.515/1.515, 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.001028/0.001028, allocations: 83.34 kB / 0.671 GB, free: 4.785 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 9.547e-06/9.578e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.178/0.178, allocations: 106.3 MB / 0.8846 GB, free: 12.64 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4741/0.6522, allocations: 131.6 MB / 1.013 GB, free: 7.121 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000182/0.6524, allocations: 62.78 kB / 1.013 GB, free: 7.09 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.001354/0.6537, allocations: 322.7 kB / 1.013 GB, free: 6.82 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 5.801e-06/0.6538, allocations: 0 / 1.013 GB, free: 6.82 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003101/0.6541, allocations: 343.1 kB / 1.014 GB, free: 6.441 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.6541, allocations: 8.031 kB / 1.014 GB, free: 6.434 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.728e-05/0.6542, allocations: 7.5 kB / 1.014 GB, free: 6.43 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000108/0.6543, allocations: 167 kB / 1.014 GB, free: 6.227 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.179e-05/0.6543, allocations: 0.875 kB / 1.014 GB, free: 6.227 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.578e-06/0.6543, allocations: 0 / 1.014 GB, free: 6.227 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.022e-05/0.6544, allocations: 11 kB / 1.014 GB, free: 6.219 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.644e-05/0.6544, allocations: 37.69 kB / 1.014 GB, free: 6.176 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.822e-06/0.6545, allocations: 0 / 1.014 GB, free: 6.176 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.063e-06/0.6545, allocations: 0 / 1.014 GB, free: 6.176 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.6545, allocations: 0 / 1.014 GB, free: 6.176 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003465/0.6548, allocations: 248.7 kB / 1.014 GB, free: 5.906 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 5.056e-05/0.6549, allocations: 34.44 kB / 1.014 GB, free: 5.867 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.394e-05/0.6549, allocations: 8.922 kB / 1.014 GB, free: 5.855 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 7.744e-06/0.6549, allocations: 0 / 1.014 GB, free: 5.855 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.814e-05/0.655, allocations: 37.66 kB / 1.014 GB, free: 5.812 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=2): time 9.21e-07/0.655, allocations: 4 kB / 1.014 GB, free: 5.809 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2): time 0.0001248/0.6551, allocations: 41.36 kB / 1.014 GB, free: 5.766 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.157e-05/0.6551, allocations: 54.14 kB / 1.014 GB, free: 5.703 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.815e-05/0.6552, allocations: 96.81 kB / 1.015 GB, free: 5.605 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.249e-05/0.6552, allocations: 25.7 kB / 1.015 GB, free: 5.574 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.872e-05/0.6553, allocations: 84.08 kB / 1.015 GB, free: 5.488 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.429e-05/0.6553, allocations: 7.891 kB / 1.015 GB, free: 5.48 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.925e-06/0.6553, allocations: 3.938 kB / 1.015 GB, free: 5.477 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 9.597e-05/0.6554, allocations: 322.8 kB / 1.015 GB, free: 5.156 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.374e-05/0.6554, allocations: 0 / 1.015 GB, free: 5.156 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.352e-05/0.6554, allocations: 7.875 kB / 1.015 GB, free: 5.152 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.611e-05/0.6555, allocations: 4 kB / 1.015 GB, free: 5.148 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.6555, allocations: 0 / 1.015 GB, free: 5.148 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.473e-05/0.6555, allocations: 37.27 kB / 1.015 GB, free: 5.109 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.156e-05/0.6556, allocations: 10.48 kB / 1.015 GB, free: 5.098 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.199e-06/0.6556, allocations: 7.906 kB / 1.015 GB, free: 5.09 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.678e-06/0.6556, allocations: 0 / 1.015 GB, free: 5.09 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.91e-05/0.6557, allocations: 12.09 kB / 1.015 GB, free: 5.078 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.367e-06/0.6557, allocations: 0 / 1.015 GB, free: 5.078 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.71e-05/0.6558, allocations: 11.98 kB / 1.015 GB, free: 5.066 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.508e-06/0.6558, allocations: 3.938 kB / 1.015 GB, free: 5.062 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 5.976e-05/0.6558, allocations: 105 kB / 1.015 GB, free: 4.953 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.632e-05/0.6559, allocations: 7.906 kB / 1.015 GB, free: 4.945 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.103e-05/0.6559, allocations: 11.02 kB / 1.015 GB, free: 4.941 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.454e-06/0.6559, allocations: 0 / 1.015 GB, free: 4.941 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.229e-06/0.6559, allocations: 7.922 kB / 1.015 GB, free: 4.934 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.6559, allocations: 3.938 kB / 1.015 GB, free: 4.93 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001234/0.656, allocations: 133.3 kB / 1.015 GB, free: 4.766 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.6561, allocations: 0 / 1.015 GB, free: 4.766 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.384e-05/0.6561, allocations: 19.98 kB / 1.015 GB, free: 4.746 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.6561, allocations: 3.906 kB / 1.015 GB, free: 4.742 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.861e-06/0.6562, allocations: 0 / 1.015 GB, free: 4.742 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.92e-07/0.6562, allocations: 0 / 1.015 GB, free: 4.742 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.6562, allocations: 3.5 kB / 1.015 GB, free: 4.742 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.33e-05/0.6563, allocations: 133.6 kB / 1.015 GB, free: 4.602 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 3.84e-05/0.6563, allocations: 85 kB / 1.016 GB, free: 4.5 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.135e-05/0.6563, allocations: 0 / 1.016 GB, free: 4.5 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.969e-05/0.6564, allocations: 12.03 kB / 1.016 GB, free: 4.488 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.076e-05/0.6565, allocations: 3.984 kB / 1.016 GB, free: 4.484 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.385e-06/0.6565, allocations: 0 / 1.016 GB, free: 4.484 MB / 0.6355 GB Notification: Performance of sort global known variables: time 3.164e-05/0.6565, allocations: 82.28 kB / 1.016 GB, free: 4.406 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002101/0.6567, allocations: 4 kB / 1.016 GB, free: 4.402 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0001096/0.6568, allocations: 103.2 kB / 1.016 GB, free: 4.289 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 7.028e-05/0.6569, allocations: 15.75 kB / 1.016 GB, free: 4.277 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.152e-06/0.6569, allocations: 0 / 1.016 GB, free: 4.277 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 1.864e-05/0.6569, allocations: 7.562 kB / 1.016 GB, free: 4.273 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001641/0.6571, allocations: 7.906 kB / 1.016 GB, free: 4.266 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001745/0.6573, allocations: 59.34 kB / 1.016 GB, free: 4.188 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002614/0.6576, allocations: 0.6919 MB / 1.016 GB, free: 3.469 MB / 0.6355 GB Notification: Performance of SimCode: time 2.7e-07/0.6576, allocations: 4.125 kB / 1.016 GB, free: 3.465 MB / 0.6355 GB Notification: Performance of Templates: time 0.001845/0.6594, allocations: 403 kB / 1.017 GB, free: 3.082 MB / 0.6355 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Gain.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Gain.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Gain.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Gain.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Gain.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Gain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Gain.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Gain_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Continuous_Validation_Gain.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Gain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches