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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.008553/0.008553, allocations: 101.1 kB / 15.73 MB, free: 5.555 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.002153/0.002153, allocations: 196.5 kB / 16.68 MB, free: 5.484 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.497/1.497, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.021/3.021, allocations: 482.4 MB / 0.7548 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001922/0.001922, allocations: 67.89 kB / 1.083 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2838/0.2858, allocations: 162.2 MB / 1.242 GB, free: 10.14 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Atan2): time 0.001745/0.2875, allocations: 0.7101 MB / 1.242 GB, free: 9.434 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.000936/0.2885, allocations: 0.8195 MB / 1.243 GB, free: 8.602 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.216e-05/0.2885, allocations: 4 kB / 1.243 GB, free: 8.598 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.343e-05/0.2886, allocations: 7.938 kB / 1.243 GB, free: 8.59 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 5.848e-05/0.2886, allocations: 3.938 kB / 1.243 GB, free: 8.586 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001304/0.2888, allocations: 15.97 kB / 1.243 GB, free: 8.57 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 8.042e-05/0.2889, allocations: 51.78 kB / 1.243 GB, free: 8.52 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.676e-05/0.289, allocations: 8 kB / 1.243 GB, free: 8.512 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 6.508e-05/0.289, allocations: 15.98 kB / 1.243 GB, free: 8.496 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.808e-05/0.2891, allocations: 27.8 kB / 1.243 GB, free: 8.469 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.585e-05/0.2891, allocations: 8 kB / 1.243 GB, free: 8.461 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.221e-05/0.2891, allocations: 4 kB / 1.243 GB, free: 8.457 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 1.924e-05/0.2892, allocations: 7.984 kB / 1.243 GB, free: 8.449 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 3.05e-05/0.2892, allocations: 11.94 kB / 1.243 GB, free: 8.438 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 9.195e-05/0.2893, allocations: 47.78 kB / 1.243 GB, free: 8.391 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.2893, allocations: 0 / 1.243 GB, free: 8.391 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.253e-06/0.2893, allocations: 0 / 1.243 GB, free: 8.391 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 3.808e-06/0.2893, allocations: 0 / 1.243 GB, free: 8.391 MB / 0.9981 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.0005326/0.2898, allocations: 371.3 kB / 1.244 GB, free: 7.977 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.428e-05/0.2899, allocations: 12.03 kB / 1.244 GB, free: 7.965 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.555e-05/0.2899, allocations: 34.69 kB / 1.244 GB, free: 7.922 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.12e-05/0.29, allocations: 4.891 kB / 1.244 GB, free: 7.918 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001405/0.2901, allocations: 168.4 kB / 1.244 GB, free: 7.715 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.332e-06/0.2901, allocations: 384 / 1.244 GB, free: 7.715 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.421e-05/0.2901, allocations: 8.375 kB / 1.244 GB, free: 7.707 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002431/0.2904, allocations: 62.22 kB / 1.244 GB, free: 7.641 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.2904, allocations: 3.938 kB / 1.244 GB, free: 7.637 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.477e-06/0.2904, allocations: 8 kB / 1.244 GB, free: 7.629 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.577e-06/0.2904, allocations: 0 / 1.244 GB, free: 7.629 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003153/0.2907, allocations: 63.92 kB / 1.244 GB, free: 7.566 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003539/0.2911, allocations: 272.8 kB / 1.244 GB, free: 7.25 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002026/0.2913, allocations: 54.55 kB / 1.244 GB, free: 7.188 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001609/0.2915, allocations: 40.91 kB / 1.244 GB, free: 7.145 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.515e-05/0.2915, allocations: 0 / 1.244 GB, free: 7.145 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.311e-05/0.2915, allocations: 30.56 kB / 1.244 GB, free: 7.105 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=3): time 8.22e-07/0.2915, allocations: 0 / 1.244 GB, free: 7.105 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3): time 0.0005584/0.2921, allocations: 133.5 kB / 1.244 GB, free: 6.969 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.947e-05/0.2921, allocations: 59.41 kB / 1.244 GB, free: 6.898 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.819e-05/0.2922, allocations: 105.8 kB / 1.245 GB, free: 6.785 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.499e-05/0.2923, allocations: 25.7 kB / 1.245 GB, free: 6.754 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 5.431e-05/0.2923, allocations: 100.1 kB / 1.245 GB, free: 6.652 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.852e-05/0.2923, allocations: 7.906 kB / 1.245 GB, free: 6.645 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.165e-05/0.2924, allocations: 21.64 kB / 1.245 GB, free: 6.617 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001332/0.2925, allocations: 314.8 kB / 1.245 GB, free: 6.301 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001589/0.2927, allocations: 27.97 kB / 1.245 GB, free: 6.273 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001477/0.2928, allocations: 35.95 kB / 1.245 GB, free: 6.238 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002967/0.2932, allocations: 73 kB / 1.245 GB, free: 6.164 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.2932, allocations: 0 / 1.245 GB, free: 6.164 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003465/0.2935, allocations: 101.5 kB / 1.245 GB, free: 6.059 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.203e-05/0.2935, allocations: 9.562 kB / 1.245 GB, free: 6.051 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.216e-06/0.2936, allocations: 4 kB / 1.245 GB, free: 6.047 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.197e-05/0.2936, allocations: 3.938 kB / 1.245 GB, free: 6.043 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001229/0.2937, allocations: 15.98 kB / 1.245 GB, free: 6.027 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.108e-06/0.2937, allocations: 0 / 1.245 GB, free: 6.027 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.518e-05/0.2938, allocations: 11.97 kB / 1.245 GB, free: 6.016 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.783e-06/0.2938, allocations: 4 kB / 1.245 GB, free: 6.012 MB / 0.9981 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 8.348e-05/0.2939, allocations: 114.3 kB / 1.245 GB, free: 5.891 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.923e-05/0.2939, allocations: 11.95 kB / 1.245 GB, free: 5.879 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003816/0.2943, allocations: 105.5 kB / 1.246 GB, free: 5.762 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.2943, allocations: 4 kB / 1.246 GB, free: 5.758 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.2943, allocations: 0 / 1.246 GB, free: 5.758 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.175e-06/0.2944, allocations: 0 / 1.246 GB, free: 5.758 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001897/0.2945, allocations: 169.6 kB / 1.246 GB, free: 5.543 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.88e-06/0.2946, allocations: 7.984 kB / 1.246 GB, free: 5.535 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001076/0.2947, allocations: 15.98 kB / 1.246 GB, free: 5.52 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.2947, allocations: 4 kB / 1.246 GB, free: 5.516 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.073e-06/0.2947, allocations: 0 / 1.246 GB, free: 5.516 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.2947, allocations: 0 / 1.246 GB, free: 5.516 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.2947, allocations: 0 / 1.246 GB, free: 5.516 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004116/0.2951, allocations: 203.3 kB / 1.246 GB, free: 5.301 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.234e-05/0.2952, allocations: 81.11 kB / 1.246 GB, free: 5.203 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.37e-05/0.2952, allocations: 4 kB / 1.246 GB, free: 5.199 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000112/0.2953, allocations: 7.984 kB / 1.246 GB, free: 5.191 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.513e-05/0.2954, allocations: 7.984 kB / 1.246 GB, free: 5.184 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.068e-06/0.2954, allocations: 0 / 1.246 GB, free: 5.184 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 5.366e-05/0.2954, allocations: 87.28 kB / 1.246 GB, free: 5.098 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2954, allocations: 0 / 1.246 GB, free: 5.098 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002253/0.2957, allocations: 8 kB / 1.246 GB, free: 5.09 MB / 0.9981 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.0007274/0.2964, allocations: 0.7318 MB / 1.247 GB, free: 4.332 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003493/0.2968, allocations: 75.86 kB / 1.247 GB, free: 4.258 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.2968, allocations: 0 / 1.247 GB, free: 4.258 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001667/0.2969, allocations: 35.95 kB / 1.247 GB, free: 4.223 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002745/0.2972, allocations: 11.94 kB / 1.247 GB, free: 4.211 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004103/0.2976, allocations: 167.5 kB / 1.247 GB, free: 4.008 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003015/0.298, allocations: 0.6807 MB / 1.248 GB, free: 3.301 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 2.665e-05/0.298, allocations: 0 / 1.248 GB, free: 3.301 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.451e-05/0.298, allocations: 15.44 kB / 1.248 GB, free: 3.285 MB / 0.9981 GB Notification: Performance of SimCode: time 2.6e-07/0.298, allocations: 3.938 kB / 1.248 GB, free: 3.281 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02107/0.3191, allocations: 1.634 MB / 1.249 GB, free: 1.738 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.666/7.985, allocations: 11.98 kB / 1.249 GB, free: 1.727 MB / 0.9981 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Atan2_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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