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/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001053/0.001053, allocations: 90.52 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.01114/0.01114, allocations: 171.1 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.606/1.606, allocations: 223.2 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.575/2.575, allocations: 390.9 MB / 0.6663 GB, free: 2.34 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004248/0.0004249, allocations: 16 kB / 0.816 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9456/0.946, allocations: 142.4 MB / 0.9551 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Atan2): time 0.001037/0.9471, allocations: 435.6 kB / 0.9555 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001207/0.9483, allocations: 0.8257 MB / 0.9563 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.319e-05/0.9484, allocations: 1.562 kB / 0.9563 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.913e-05/0.9485, allocations: 3.938 kB / 0.9563 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.75e-05/0.9485, allocations: 5.375 kB / 0.9563 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001589/0.9487, allocations: 14.73 kB / 0.9563 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.875e-05/0.9488, allocations: 37.3 kB / 0.9563 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.505e-05/0.9489, allocations: 10.89 kB / 0.9564 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.298e-05/0.949, allocations: 21.66 kB / 0.9564 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.375e-05/0.949, allocations: 17.58 kB / 0.9564 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.723e-05/0.949, allocations: 2.031 kB / 0.9564 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.174e-05/0.9491, allocations: 2.281 kB / 0.9564 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.804e-05/0.9491, allocations: 5.188 kB / 0.9564 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.956e-05/0.9491, allocations: 39.84 kB / 0.9564 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.617e-05/0.9492, allocations: 35.09 kB / 0.9565 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.9492, allocations: 9.094 kB / 0.9565 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.174e-06/0.9492, allocations: 0 / 0.9565 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.392e-06/0.9493, allocations: 0 / 0.9565 GB, free: 6.586 MB / 0.7169 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.0005187/0.9498, allocations: 367.5 kB / 0.9568 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.684e-05/0.9498, allocations: 10.34 kB / 0.9568 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.741e-05/0.9499, allocations: 14.16 kB / 0.9569 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001104/0.95, allocations: 176 kB / 0.957 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.716e-05/0.95, allocations: 384 / 0.957 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.63e-05/0.9501, allocations: 7.031 kB / 0.957 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003258/0.9504, allocations: 80.73 kB / 0.9571 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.065e-06/0.9504, allocations: 4.188 kB / 0.9571 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.16e-05/0.9504, allocations: 3.938 kB / 0.9571 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.533e-06/0.9504, allocations: 0.875 kB / 0.9571 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003413/0.9508, allocations: 90.98 kB / 0.9572 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003531/0.9511, allocations: 259 kB / 0.9575 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002312/0.9514, allocations: 70.09 kB / 0.9575 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001734/0.9516, allocations: 45.98 kB / 0.9576 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.128e-05/0.9516, allocations: 7.984 kB / 0.9576 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.372e-05/0.9516, allocations: 35.66 kB / 0.9576 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.683e-06/0.9517, allocations: 1.156 kB / 0.9576 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0006165/0.9523, allocations: 159.2 kB / 0.9578 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.175e-05/0.9523, allocations: 55.41 kB / 0.9578 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.323e-05/0.9524, allocations: 107.7 kB / 0.9579 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.552e-05/0.9524, allocations: 27.02 kB / 0.9579 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.773e-05/0.9525, allocations: 93.34 kB / 0.958 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.247e-05/0.9525, allocations: 9.125 kB / 0.958 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.438e-05/0.9526, allocations: 11.25 kB / 0.958 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.12e-05/0.9526, allocations: 316.1 kB / 0.9583 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001709/0.9528, allocations: 46.48 kB / 0.9584 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001595/0.953, allocations: 39.69 kB / 0.9584 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003211/0.9533, allocations: 98.73 kB / 0.9585 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.9533, allocations: 7.938 kB / 0.9585 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003516/0.9537, allocations: 117.8 kB / 0.9586 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.9537, allocations: 5.688 kB / 0.9586 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.9537, allocations: 0 / 0.9586 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/0.9537, allocations: 0 / 0.9586 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001292/0.9539, allocations: 23.09 kB / 0.9587 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.9539, allocations: 1.562 kB / 0.9587 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.922e-05/0.954, allocations: 18.83 kB / 0.9587 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.388e-06/0.954, allocations: 0.8438 kB / 0.9587 GB, free: 4.602 MB / 0.7169 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.2e-05/0.9541, allocations: 116.8 kB / 0.9588 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.909e-05/0.9541, allocations: 5.531 kB / 0.9588 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004221/0.9545, allocations: 131.8 kB / 0.9589 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.9546, allocations: 0 / 0.9589 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.685e-06/0.9546, allocations: 13.3 kB / 0.9589 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.9546, allocations: 0 / 0.9589 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001439/0.9547, allocations: 173.9 kB / 0.9591 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.9547, allocations: 0 / 0.9591 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001052/0.9548, allocations: 22.92 kB / 0.9591 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.117e-06/0.9549, allocations: 0 / 0.9591 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.484e-06/0.9549, allocations: 1.625 kB / 0.9591 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.9549, allocations: 0 / 0.9591 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.9549, allocations: 3.984 kB / 0.9591 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003869/0.9553, allocations: 224 kB / 0.9594 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.344e-05/0.9553, allocations: 78.89 kB / 0.9594 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.696e-05/0.9553, allocations: 4 kB / 0.9594 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001102/0.9555, allocations: 16.52 kB / 0.9594 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.171e-05/0.9555, allocations: 5.766 kB / 0.9595 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.513e-06/0.9555, allocations: 1.375 kB / 0.9595 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.347e-05/0.9556, allocations: 88.77 kB / 0.9595 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9556, allocations: 4 kB / 0.9595 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002249/0.9558, allocations: 6.875 kB / 0.9595 GB, free: 3.793 MB / 0.7169 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001718/0.956, allocations: 97.12 kB / 0.9596 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003911/0.9564, allocations: 91.05 kB / 0.9597 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.9564, allocations: 0 / 0.9597 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001761/0.9566, allocations: 54.14 kB / 0.9598 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003384/0.9569, allocations: 13.62 kB / 0.9598 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004525/0.9574, allocations: 126.7 kB / 0.9599 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002045/0.9576, allocations: 0.6798 MB / 0.9606 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.865e-05/0.9576, allocations: 9.312 kB / 0.9606 GB, free: 2.805 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.624e-05/0.9577, allocations: 8.812 kB / 0.9606 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of SimCode: time 2.9e-07/0.9577, allocations: 0 / 0.9606 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of Templates: time 0.003602/0.9613, allocations: 0.5547 MB / 0.9611 GB, free: 2.508 MB / 0.7169 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Atan2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches