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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.609/2.609, allocations: 390.3 MB / 405.3 MB, free: 13.5 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.001135/0.001135, allocations: 169.2 kB / 498.1 MB, free: 5.746 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.582/1.582, allocations: 223.2 MB / 0.7948 GB, free: 18.84 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008514/0.0008513, allocations: 87.86 kB / 0.9346 GB, free: 7.148 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004261/0.0004259, allocations: 11.19 kB / 1.084 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2948/0.2952, allocations: 142.4 MB / 1.223 GB, free: 89.58 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1914/0.4867, allocations: 148.9 MB / 1.368 GB, free: 4.531 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002231/0.4869, allocations: 71.95 kB / 1.368 GB, free: 4.461 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.002434/0.4894, allocations: 0.8994 MB / 1.369 GB, free: 3.559 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.034e-06/0.4894, allocations: 8 kB / 1.369 GB, free: 3.551 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 7.254e-06/0.4894, allocations: 0 / 1.369 GB, free: 3.551 MB / 0.8698 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.0004262/0.4898, allocations: 373.3 kB / 1.37 GB, free: 3.141 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.451e-05/0.4899, allocations: 8.031 kB / 1.37 GB, free: 3.133 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.086e-05/0.4899, allocations: 7.844 kB / 1.37 GB, free: 3.125 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001181/0.4901, allocations: 179 kB / 1.37 GB, free: 2.91 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.239e-05/0.4901, allocations: 0 / 1.37 GB, free: 2.91 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.468e-05/0.4901, allocations: 4 kB / 1.37 GB, free: 2.906 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002565/0.4904, allocations: 81.58 kB / 1.37 GB, free: 2.82 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.4904, allocations: 4 kB / 1.37 GB, free: 2.816 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.01e-05/0.4904, allocations: 4 kB / 1.37 GB, free: 2.812 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-06/0.4904, allocations: 0 / 1.37 GB, free: 2.812 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002763/0.4907, allocations: 87.92 kB / 1.37 GB, free: 2.727 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004957/0.4912, allocations: 304.8 kB / 1.37 GB, free: 2.379 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001996/0.4914, allocations: 70.47 kB / 1.37 GB, free: 2.301 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.609e-05/0.4914, allocations: 3.984 kB / 1.37 GB, free: 2.297 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.69e-05/0.4915, allocations: 34.56 kB / 1.37 GB, free: 2.254 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=3): time 1.242e-06/0.4915, allocations: 0 / 1.37 GB, free: 2.254 MB / 0.8698 GB Notification: Performance of matching and sorting (n=3): time 0.0005418/0.492, allocations: 161.6 kB / 1.37 GB, free: 2.09 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.059e-05/0.4921, allocations: 55.41 kB / 1.371 GB, free: 2.023 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001162/0.4922, allocations: 104.9 kB / 1.371 GB, free: 1.914 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.457e-05/0.4922, allocations: 29.7 kB / 1.371 GB, free: 1.879 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 4.755e-05/0.4923, allocations: 88.12 kB / 1.371 GB, free: 1.789 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 1.957e-05/0.4923, allocations: 7.906 kB / 1.371 GB, free: 1.781 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.371e-06/0.4923, allocations: 0 / 1.371 GB, free: 1.781 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001113/0.4924, allocations: 314.8 kB / 1.371 GB, free: 1.465 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001498/0.4926, allocations: 47.95 kB / 1.371 GB, free: 1.418 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001259/0.4927, allocations: 39.97 kB / 1.371 GB, free: 1.379 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001331/0.4929, allocations: 43.97 kB / 1.371 GB, free: 1.336 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.4929, allocations: 0 / 1.371 GB, free: 1.336 MB / 0.8698 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003084/0.4932, allocations: 125.5 kB / 1.371 GB, free: 1.207 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.702e-05/0.4932, allocations: 4 kB / 1.371 GB, free: 1.203 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.4932, allocations: 0 / 1.371 GB, free: 1.203 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.4932, allocations: 0 / 1.371 GB, free: 1.203 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001325/0.4934, allocations: 27.98 kB / 1.371 GB, free: 1.176 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.338e-06/0.4934, allocations: 4 kB / 1.371 GB, free: 1.172 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.256e-05/0.4935, allocations: 15.98 kB / 1.371 GB, free: 1.156 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.397e-06/0.4935, allocations: 3.953 kB / 1.371 GB, free: 1.152 MB / 0.8698 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 () * Number of clocked 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 7.17e-05/0.4936, allocations: 121.7 kB / 1.371 GB, free: 1.023 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.286e-05/0.4936, allocations: 0 / 1.371 GB, free: 1.023 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003582/0.494, allocations: 129.5 kB / 1.372 GB, free: 0.8828 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.494, allocations: 4 kB / 1.372 GB, free: 0.8789 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.494, allocations: 0 / 1.372 GB, free: 0.8789 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.494, allocations: 0 / 1.372 GB, free: 0.8789 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001586/0.4941, allocations: 173.5 kB / 1.372 GB, free: 0.6602 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.4942, allocations: 0 / 1.372 GB, free: 0.6602 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001002/0.4943, allocations: 27.91 kB / 1.372 GB, free: 0.6328 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.4943, allocations: 0 / 1.372 GB, free: 0.6328 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.037e-05/0.4943, allocations: 0 / 1.372 GB, free: 0.6328 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.4943, allocations: 7.938 kB / 1.372 GB, free: 0.625 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.4943, allocations: 4 kB / 1.372 GB, free: 0.6211 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003369/0.4946, allocations: 219.4 kB / 1.372 GB, free: 400 kB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 2.764e-05/0.4947, allocations: 81.09 kB / 1.372 GB, free: 300 kB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.287e-05/0.4947, allocations: 0 / 1.372 GB, free: 300 kB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001099/0.4948, allocations: 15.98 kB / 1.372 GB, free: 284 kB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.991e-05/0.4949, allocations: 8 kB / 1.372 GB, free: 276 kB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.44e-06/0.4949, allocations: 8.406 kB / 1.372 GB, free: 268 kB / 0.8698 GB Notification: Performance of sorting global known variables: time 3.411e-05/0.4949, allocations: 79.28 kB / 1.372 GB, free: 188 kB / 0.8698 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4949, allocations: 0 / 1.372 GB, free: 188 kB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002005/0.4951, allocations: 15.91 kB / 1.372 GB, free: 172 kB / 0.8698 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 () * Number of clocked 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.0001232/0.4953, allocations: 103 kB / 1.372 GB, free: 56 kB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0003219/0.4956, allocations: 91.86 kB / 1.372 GB, free: 15.96 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.4956, allocations: 0 / 1.372 GB, free: 15.96 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.000145/0.4957, allocations: 52.05 kB / 1.372 GB, free: 15.91 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001899/0.4959, allocations: 7.953 kB / 1.372 GB, free: 15.91 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002931/0.4962, allocations: 136.8 kB / 1.373 GB, free: 15.75 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002252/0.4965, allocations: 0.6848 MB / 1.373 GB, free: 15.04 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 3.025e-05/0.4965, allocations: 4 kB / 1.373 GB, free: 15.03 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.654e-05/0.4965, allocations: 7.438 kB / 1.373 GB, free: 15.02 MB / 0.8855 GB Notification: Performance of SimCode: time 2.31e-07/0.4966, allocations: 0 / 1.373 GB, free: 15.02 MB / 0.8855 GB Notification: Performance of Templates: time 0.002338/0.4989, allocations: 0.5192 MB / 1.374 GB, free: 14.51 MB / 0.8855 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