Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Atan2.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.Continuous.Validation.Atan2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|atan2_1.u1|atan2_1.u2|atan2_1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Atan2") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Atan2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|atan2_1.u1|atan2_1.u2|atan2_1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Atan2") [: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.793/1.793, allocations: 387.2 MB / 394.5 MB, free: 13.64 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.0009504/0.0009505, allocations: 181.3 kB / 487 MB, free: 5.355 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.123/1.123, allocations: 221.3 MB / 0.7819 GB, free: 1.375 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.0008116/0.0008116, allocations: 90.72 kB / 0.9213 GB, free: 2.625 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 8.055e-06/8.075e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1924/0.1925, allocations: 142.3 MB / 1.205 GB, free: 26.23 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5239/0.7164, allocations: 148.1 MB / 1.35 GB, free: 15.67 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001729/0.7166, allocations: 73.11 kB / 1.35 GB, free: 15.67 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.002111/0.7187, allocations: 0.6063 MB / 1.35 GB, free: 15.64 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 5.972e-06/0.7187, allocations: 4 kB / 1.35 GB, free: 15.63 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003238/0.7191, allocations: 369 kB / 1.351 GB, free: 15.28 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.661e-05/0.7191, allocations: 9.125 kB / 1.351 GB, free: 15.28 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.8e-05/0.7191, allocations: 6.531 kB / 1.351 GB, free: 15.27 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.536e-05/0.7192, allocations: 169.7 kB / 1.351 GB, free: 15.07 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.023e-05/0.7192, allocations: 1.281 kB / 1.351 GB, free: 15.07 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.187e-05/0.7193, allocations: 2.922 kB / 1.351 GB, free: 15.07 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.888e-05/0.7193, allocations: 17.72 kB / 1.351 GB, free: 15.07 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.857e-05/0.7194, allocations: 44.62 kB / 1.351 GB, free: 15.04 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.824e-06/0.7194, allocations: 3.938 kB / 1.351 GB, free: 15.04 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.288e-06/0.7194, allocations: 1.281 kB / 1.351 GB, free: 15.04 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.652e-06/0.7195, allocations: 0 / 1.351 GB, free: 15.04 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003951/0.7199, allocations: 290.7 kB / 1.351 GB, free: 14.79 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 5.989e-05/0.7199, allocations: 32.22 kB / 1.351 GB, free: 14.77 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.789e-05/0.72, allocations: 17.98 kB / 1.351 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.114e-05/0.72, allocations: 1.312 kB / 1.351 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.504e-05/0.72, allocations: 38.53 kB / 1.351 GB, free: 14.71 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=3): time 1.283e-06/0.72, allocations: 0 / 1.351 GB, free: 14.71 MB / 0.8073 GB Notification: Performance of matching and sorting (n=3): time 0.0001472/0.7202, allocations: 53.06 kB / 1.351 GB, free: 14.68 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.613e-05/0.7202, allocations: 53.78 kB / 1.352 GB, free: 14.61 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.626e-05/0.7202, allocations: 97.7 kB / 1.352 GB, free: 14.52 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 7.224e-06/0.7203, allocations: 27.02 kB / 1.352 GB, free: 14.49 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 1.865e-05/0.7203, allocations: 86.36 kB / 1.352 GB, free: 14.41 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.691e-05/0.7203, allocations: 18 kB / 1.352 GB, free: 14.39 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.717e-06/0.7203, allocations: 0 / 1.352 GB, free: 14.39 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 4.624e-05/0.7204, allocations: 313.2 kB / 1.352 GB, free: 14.08 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.026e-05/0.7204, allocations: 8.594 kB / 1.352 GB, free: 14.08 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.931e-05/0.7204, allocations: 9.344 kB / 1.352 GB, free: 14.08 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.193e-05/0.7204, allocations: 10.52 kB / 1.352 GB, free: 14.08 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.193e-06/0.7204, allocations: 0 / 1.352 GB, free: 14.08 MB / 0.8073 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.176e-05/0.7205, allocations: 50.36 kB / 1.352 GB, free: 14.05 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 9.478e-06/0.7205, allocations: 9.469 kB / 1.352 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.7205, allocations: 5.672 kB / 1.352 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.657e-06/0.7206, allocations: 0 / 1.352 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001378/0.7207, allocations: 25.38 kB / 1.352 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.547e-06/0.7207, allocations: 0 / 1.352 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.483e-05/0.7208, allocations: 21.67 kB / 1.352 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.373e-06/0.7208, allocations: 1.344 kB / 1.352 GB, free: 14.04 MB / 0.8073 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 (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 prepare postOptimizeDAE: time 3.638e-05/0.7209, allocations: 102.3 kB / 1.352 GB, free: 13.93 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.09e-05/0.7209, allocations: 10.94 kB / 1.352 GB, free: 13.92 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001033/0.721, allocations: 55.73 kB / 1.352 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/0.721, allocations: 1.734 kB / 1.352 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.721, allocations: 1 kB / 1.352 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.721, allocations: 1.203 kB / 1.352 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.474e-05/0.7211, allocations: 148.6 kB / 1.353 GB, free: 13.73 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.7211, allocations: 2.375 kB / 1.353 GB, free: 13.73 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001099/0.7212, allocations: 29.75 kB / 1.353 GB, free: 13.72 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.403e-06/0.7213, allocations: 1.125 kB / 1.353 GB, free: 13.72 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.843e-06/0.7213, allocations: 1.594 kB / 1.353 GB, free: 13.72 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.71e-07/0.7213, allocations: 1.094 kB / 1.353 GB, free: 13.72 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.7213, allocations: 0 / 1.353 GB, free: 13.72 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 8.47e-05/0.7214, allocations: 144.5 kB / 1.353 GB, free: 13.59 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.65e-05/0.7214, allocations: 87.88 kB / 1.353 GB, free: 13.48 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.526e-05/0.7214, allocations: 1.125 kB / 1.353 GB, free: 13.48 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001199/0.7215, allocations: 25.08 kB / 1.353 GB, free: 13.48 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.333e-05/0.7216, allocations: 7.438 kB / 1.353 GB, free: 13.48 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.368e-06/0.7216, allocations: 1.156 kB / 1.353 GB, free: 13.48 MB / 0.8073 GB Notification: Performance of sort global known variables: time 2.361e-05/0.7216, allocations: 90.22 kB / 1.353 GB, free: 13.4 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.000192/0.7218, allocations: 5.438 kB / 1.353 GB, free: 13.4 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: 0 () * Number of discrete states: 0 () * 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.0001001/0.7219, allocations: 102.2 kB / 1.353 GB, free: 13.31 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 7.536e-05/0.722, allocations: 27.36 kB / 1.353 GB, free: 13.3 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.243e-06/0.722, allocations: 0 / 1.353 GB, free: 13.3 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 2.861e-05/0.722, allocations: 13.91 kB / 1.353 GB, free: 13.3 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000164/0.7222, allocations: 8.125 kB / 1.353 GB, free: 13.3 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001811/0.7224, allocations: 71.22 kB / 1.353 GB, free: 13.23 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002164/0.7226, allocations: 0.6988 MB / 1.354 GB, free: 28.53 MB / 0.823 GB Notification: Performance of SimCode: time 2.8e-07/0.7226, allocations: 0 / 1.354 GB, free: 28.53 MB / 0.823 GB Notification: Performance of Templates: time 0.002052/0.7247, allocations: 0.6101 MB / 1.354 GB, free: 28.48 MB / 0.823 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Atan2.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Atan2.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Atan2.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Atan2.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Atan2.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Atan2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Atan2.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Atan2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Atan2.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Atan2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches