Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Atan2,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Atan2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Atan2,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Atan2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001117/0.001117, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001155/0.001155, allocations: 195 kB / 16.14 MB, free: 6.656 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.198/1.198, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.351/2.351, allocations: 461.8 MB / 0.7342 GB, free: 14.22 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001186, allocations: 69.8 kB / 0.8985 GB, free: 37.03 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2209/0.2221, allocations: 157.4 MB / 1.052 GB, free: 8.215 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Atan2): time 0.001641/0.2237, allocations: 0.765 MB / 1.053 GB, free: 7.445 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.000687/0.2244, allocations: 0.843 MB / 1.054 GB, free: 6.59 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.648e-05/0.2245, allocations: 0 / 1.054 GB, free: 6.59 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.571e-05/0.2245, allocations: 0 / 1.054 GB, free: 6.59 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.464e-05/0.2246, allocations: 3.938 kB / 1.054 GB, free: 6.586 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001067/0.2247, allocations: 11.98 kB / 1.054 GB, free: 6.574 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6e-05/0.2247, allocations: 43.8 kB / 1.054 GB, free: 6.531 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 7.34e-05/0.2248, allocations: 12 kB / 1.054 GB, free: 6.52 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 5.139e-05/0.2249, allocations: 23.91 kB / 1.054 GB, free: 6.496 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.216e-05/0.2249, allocations: 23.91 kB / 1.054 GB, free: 6.473 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.194e-05/0.2249, allocations: 0 / 1.054 GB, free: 6.473 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.008e-05/0.225, allocations: 4 kB / 1.054 GB, free: 6.469 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.419e-05/0.225, allocations: 4 kB / 1.054 GB, free: 6.465 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.808e-05/0.225, allocations: 19.86 kB / 1.054 GB, free: 6.445 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 6.285e-05/0.2251, allocations: 35.88 kB / 1.054 GB, free: 6.41 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.2251, allocations: 0 / 1.054 GB, free: 6.41 MB / 0.8106 GB Notification: Performance of FrontEnd: time 6.11e-07/0.2251, allocations: 0 / 1.054 GB, free: 6.41 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.056e-06/0.2251, allocations: 0 / 1.054 GB, free: 6.41 MB / 0.8106 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.0004145/0.2255, allocations: 359.7 kB / 1.054 GB, free: 6.008 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.392e-05/0.2256, allocations: 11.97 kB / 1.054 GB, free: 5.996 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.756e-05/0.2256, allocations: 38.73 kB / 1.054 GB, free: 5.949 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.116e-05/0.2256, allocations: 8.844 kB / 1.054 GB, free: 5.941 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.998e-05/0.2257, allocations: 176.2 kB / 1.055 GB, free: 5.73 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.254e-06/0.2257, allocations: 384 / 1.055 GB, free: 5.73 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.287e-06/0.2257, allocations: 384 / 1.055 GB, free: 5.73 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000219/0.226, allocations: 74.22 kB / 1.055 GB, free: 5.652 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.883e-06/0.226, allocations: 3.938 kB / 1.055 GB, free: 5.648 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.755e-06/0.226, allocations: 0 / 1.055 GB, free: 5.648 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-06/0.226, allocations: 0 / 1.055 GB, free: 5.648 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002639/0.2263, allocations: 63.92 kB / 1.055 GB, free: 5.586 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002718/0.2265, allocations: 276.8 kB / 1.055 GB, free: 5.266 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001775/0.2267, allocations: 62.47 kB / 1.055 GB, free: 5.195 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001367/0.2269, allocations: 36.92 kB / 1.055 GB, free: 5.156 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.643e-05/0.2269, allocations: 0 / 1.055 GB, free: 5.156 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.862e-05/0.2269, allocations: 34.56 kB / 1.055 GB, free: 5.113 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 9.92e-07/0.2269, allocations: 0 / 1.055 GB, free: 5.113 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0004755/0.2274, allocations: 129.5 kB / 1.055 GB, free: 4.98 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.575e-05/0.2274, allocations: 51.41 kB / 1.055 GB, free: 4.918 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.506e-05/0.2275, allocations: 117.8 kB / 1.055 GB, free: 4.793 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.122e-05/0.2275, allocations: 25.7 kB / 1.055 GB, free: 4.762 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.109e-05/0.2276, allocations: 84.14 kB / 1.055 GB, free: 4.676 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.998e-05/0.2276, allocations: 15.8 kB / 1.055 GB, free: 4.66 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.288e-05/0.2276, allocations: 17.66 kB / 1.055 GB, free: 4.637 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 7.508e-05/0.2277, allocations: 314.8 kB / 1.056 GB, free: 4.32 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001358/0.2279, allocations: 35.95 kB / 1.056 GB, free: 4.285 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001243/0.228, allocations: 31.97 kB / 1.056 GB, free: 4.254 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002488/0.2282, allocations: 72.72 kB / 1.056 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.492e-06/0.2282, allocations: 0 / 1.056 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003006/0.2285, allocations: 101.6 kB / 1.056 GB, free: 4.074 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/0.2286, allocations: 8 kB / 1.056 GB, free: 4.066 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.607e-06/0.2286, allocations: 0 / 1.056 GB, free: 4.066 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.274e-06/0.2286, allocations: 0 / 1.056 GB, free: 4.066 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001123/0.2287, allocations: 19.97 kB / 1.056 GB, free: 4.047 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.2287, allocations: 4 kB / 1.056 GB, free: 4.043 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.39e-05/0.2288, allocations: 7.984 kB / 1.056 GB, free: 4.035 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.195e-06/0.2288, allocations: 8.328 kB / 1.056 GB, free: 4.027 MB / 0.8106 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 6.021e-05/0.2289, allocations: 109.8 kB / 1.056 GB, free: 3.91 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.557e-05/0.2289, allocations: 7.906 kB / 1.056 GB, free: 3.902 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003334/0.2292, allocations: 109.4 kB / 1.056 GB, free: 3.785 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.2293, allocations: 0 / 1.056 GB, free: 3.785 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.868e-06/0.2293, allocations: 8 kB / 1.056 GB, free: 3.777 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.763e-06/0.2293, allocations: 0 / 1.056 GB, free: 3.777 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001376/0.2294, allocations: 177.5 kB / 1.056 GB, free: 3.555 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.2294, allocations: 0 / 1.056 GB, free: 3.555 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.155e-05/0.2295, allocations: 11.98 kB / 1.056 GB, free: 3.543 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.333e-06/0.2295, allocations: 0 / 1.056 GB, free: 3.543 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.546e-06/0.2295, allocations: 4 kB / 1.056 GB, free: 3.539 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.2295, allocations: 0 / 1.056 GB, free: 3.539 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.2295, allocations: 0 / 1.056 GB, free: 3.539 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003315/0.2299, allocations: 199.4 kB / 1.057 GB, free: 3.328 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 2.948e-05/0.2299, allocations: 81.02 kB / 1.057 GB, free: 3.23 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.357e-05/0.2299, allocations: 4 kB / 1.057 GB, free: 3.227 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001029/0.23, allocations: 11.92 kB / 1.057 GB, free: 3.215 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.453e-05/0.2301, allocations: 11.92 kB / 1.057 GB, free: 3.203 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.747e-06/0.2301, allocations: 4 kB / 1.057 GB, free: 3.199 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.514e-05/0.2301, allocations: 91.27 kB / 1.057 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2301, allocations: 0 / 1.057 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001999/0.2303, allocations: 4 kB / 1.057 GB, free: 3.105 MB / 0.8106 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.0005328/0.2309, allocations: 0.728 MB / 1.058 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002775/0.2312, allocations: 79.84 kB / 1.058 GB, free: 2.273 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.122e-06/0.2312, allocations: 0 / 1.058 GB, free: 2.273 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001351/0.2313, allocations: 35.97 kB / 1.058 GB, free: 2.238 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002212/0.2315, allocations: 4 kB / 1.058 GB, free: 2.234 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003124/0.2318, allocations: 173.3 kB / 1.058 GB, free: 2.023 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001761/0.232, allocations: 0.6809 MB / 1.059 GB, free: 1.316 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.572e-05/0.2321, allocations: 11.98 kB / 1.059 GB, free: 1.305 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.853e-05/0.2321, allocations: 11.44 kB / 1.059 GB, free: 1.297 MB / 0.8106 GB Notification: Performance of SimCode: time 2.41e-07/0.2321, allocations: 4 kB / 1.059 GB, free: 1.293 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01078/0.2429, allocations: 1.368 MB / 1.06 GB, free: 28 kB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001941/0.2431, allocations: 213.6 kB / 1.06 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.497/1.74, allocations: 7.875 kB / 1.06 GB, free: 15.76 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Atan2.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Atan2.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Atan2.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Atan2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Atan2_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Atan2_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Atan2.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Atan2.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Atan2_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Atan2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Atan2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches